lkml.org 
[lkml]   [1997]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Big malloc's.
Date
John Carter <john@dwaf-hri.pwv.gov.za> writes:

> How do I write a program that will ask the kernel how much free
> physical memory there is available to me without causing a lot of
> swapping?

In "the old days" experiments showed that the syscall overhead was
negligibly different for 8k I/O buffers vs. 64k buffers. Nowadays you
can just use 1M buffers and assume the system can deal with it. Can
you really show that operating on 8M buffers gives you noticably
better performance than 1M buffers?

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.017 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site