[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
[LI] can't read /proc/meminfo
Hi,
one strange thing I observed. you can't read /proc/meminfo through
program ( which uses open, read
kind of stuff to read /proc/meminfo). you even can't determine the
size of file/proc/meminfo through lseek(fd, 0,2)
May be because the file is continuously changing.
Bye
> -----Original Message-----
> From: Arun Sharma [SMTP:adsharma@xxxxxxxx]
> Sent: Wednesday, September 29, 1999 4:31 AM
> To: linux-india@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [LI] what is sys call??
>
> On Tue, Sep 28, 1999 at 01:04:35PM +0530, Guruprasad, Mahendrakar V
> (IE10) wrote:
> >
> >
> > > Hi,
> > > What is the system call (not command like 'free')used to find out
> > > amout of memory being used & free
>
> There isn't any. You'll have to read /proc/meminfo and parse it. This
> is what free does.
>
> Sucks doesn't it ?
>
> -Arun
>
> --------------------------------------------------------------------
> For more information on Linux in India visit http://www.linux-india.org/
> The Linux India mailing list does not accept postings in HTML format.
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.
------------------------------