svn commit: r184471 - in head/bin: cat cp

Giorgos Keramidas keramida at freebsd.org
Mon Nov 3 10:05:46 PST 2008


On Mon, 3 Nov 2008 18:58:18 +1100, Peter Jeremy <peterjeremy at optushome.com.au> wrote:
> On 2008-Nov-03 00:34:47 +0100, Ivan Voras <ivoras at freebsd.org> wrote:
>>2008/10/31 Giorgos Keramidas <keramida at freebsd.org>:
>>The difference between the best and the worst is 247 context switches
>>(total, not per second).
>>
>>> It looks like it's probably worth pushing the limit up to 8 MB when we
>>> have lots of memory :)
>>
>>Yes, it's an improvement, but who will ever notice? :)
>
> Note that you will eventually hit a limit and start getting worse
> performace:  Once the buffer size exceeds the available free RAM
> then cp/cat will start eating into inactive pages or (worse) active
> pages for other processes.

Yes, that's a possibility.  Ivan is right that shaving 1-2 hundred more
context _total_ context switches may be a small gain for the extra cost
in buffer memory :)




More information about the svn-src-all mailing list