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

> My question is then...
>
> 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?

How about checking the source code of vmstat? It's not setuid, so
whatever it's doing, you can do too.

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