mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Luck, Tony" <tony.luck@intel.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Junio C Hamano <junkio@cox.net>, "H. Peter Anvin" <hpa@zytor.com>,
	linux-kernel@vger.kernel.org
Subject: PIPE_BUFFERS - was Re: What to expect after 0.99.8
Date: Thu, 6 Oct 2005 11:44:28 -0700	[thread overview]
Message-ID: <20051006184428.GA6476@agluck-lia64.sc.intel.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0510041706330.31407@g5.osdl.org>

On Tue, Oct 04, 2005 at 05:10:18PM -0700, Linus Torvalds wrote:
> Just for performance reasons, I ended up doing merging anyway, so in fact 
> regardless of how you write the current pipe buffer size is up to 16 
> pages.

s/git@vger.kernel.org/linux-kernel@vger.kernel.org/ in the Cc: list, this
isn't a GIT issue.

Should that:

#define PIPE_BUFFERS (16)

really be a function of PAGE_SIZE?  Many systems have a 4K page size
so they get 64K of buffering per pipe.  But ia64 defaults to 16K page
size, so pipes are suddenly 256K ... and with a 64K page size we
have 1MB per pipe.

So perhaps:

#define PIPE_BUFFERS (65536 / PAGE_SIZE)

But that would leave PIPE_BUFFERS as "1" on a 64K page size system, is
there any double-buffering benefit from having more than one page on the
pipe list?  If so, then something like:

#define PIPE_BUFFERS min(2, (65536 / PAGE_SIZE))

but then gcc is unhappy using the super-type safe "min" in the
places that use PIPE_BUFFERS ... so we'd end up with:

#define PIPE_BUFFERS ((65536 / PAGE_SIZE) > 1 ? (65536 / PAGE_SIZE) : 2)

-Tony

           reply	other threads:[~2005-10-06 18:44 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <Pine.LNX.4.64.0510041706330.31407@g5.osdl.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051006184428.GA6476@agluck-lia64.sc.intel.com \
    --to=tony.luck@intel.com \
    --cc=hpa@zytor.com \
    --cc=junkio@cox.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®