Check Kernel Memory Allocation

2011-06-03 Thread Dev Null
Hello,

I wanted to know how much kernel and userspace memory is available on the
Linux system during run-time either by some C code or some procfile.

Do you know how to do that?

Thanks,
Dev
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Fwd: Check Kernel Memory Allocation

2011-06-02 Thread Dev Null
-- Forwarded message --
From: Dev Null devnull...@gmail.com
Date: Tue, May 31, 2011 at 4:08 PM
Subject: Check Kernel Memory Allocation
To: kernelnewbies Newbies kernelnewb...@nl.linux.org


Hello,

I wanted to know how much kernel and userspace memory is available on the
Linux system during run-time either by some C code or some procfile.

Do you know how to do that?

Thanks,
Dev
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Check Kernel Memory Allocation

2011-06-02 Thread Mulyadi Santosa
On Fri, Jun 3, 2011 at 01:05, Dev Null devnull...@gmail.com wrote:
 I wanted to know how much kernel and userspace memory is available on the
 Linux system during run-time either by some C code or some procfile.

have you checked /proc/meminfo and its handler?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Check Kernel Memory Allocation

2011-06-02 Thread Dave Hylands
Hi Dev,

 I wanted to know how much kernel and userspace memory is available on the
 Linux system during run-time either by some C code or some procfile.

 Do you know how to do that?

You can look in /proc/meminfo
http://unixfoo.blogspot.com/2008/02/know-about-procmeminfo.html

The memory is shared between userspace and kernel space and the amount
of memory available changes dynamically as the system is running.

Be aware that Cached memory is quite dynamic, and the system will
throw away cache pages to make space if it needs to.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies