All of lore.kernel.org
 help / color / mirror / Atom feed
* Check Kernel Memory Allocation
@ 2011-05-31 23:08 Dev Null
  2011-06-02 18:05 ` Fwd: " Dev Null
  0 siblings, 1 reply; 4+ messages in thread
From: Dev Null @ 2011-05-31 23:08 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110531/84471e18/attachment.html 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fwd: Check Kernel Memory Allocation
  2011-05-31 23:08 Check Kernel Memory Allocation Dev Null
@ 2011-06-02 18:05 ` Dev Null
  2011-06-02 22:45   ` Mulyadi Santosa
  2011-06-02 22:47   ` Dave Hylands
  0 siblings, 2 replies; 4+ messages in thread
From: Dev Null @ 2011-06-02 18:05 UTC (permalink / raw)
  To: kernelnewbies

---------- Forwarded message ----------
From: Dev Null <devnullfin@gmail.com>
Date: Tue, May 31, 2011 at 4:08 PM
Subject: Check Kernel Memory Allocation
To: kernelnewbies Newbies <kernelnewbies@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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110602/2ac2e51e/attachment.html 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Check Kernel Memory Allocation
  2011-06-02 18:05 ` Fwd: " Dev Null
@ 2011-06-02 22:45   ` Mulyadi Santosa
  2011-06-02 22:47   ` Dave Hylands
  1 sibling, 0 replies; 4+ messages in thread
From: Mulyadi Santosa @ 2011-06-02 22:45 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Jun 3, 2011 at 01:05, Dev Null <devnullfin@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Check Kernel Memory Allocation
  2011-06-02 18:05 ` Fwd: " Dev Null
  2011-06-02 22:45   ` Mulyadi Santosa
@ 2011-06-02 22:47   ` Dave Hylands
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Hylands @ 2011-06-02 22:47 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-02 22:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-31 23:08 Check Kernel Memory Allocation Dev Null
2011-06-02 18:05 ` Fwd: " Dev Null
2011-06-02 22:45   ` Mulyadi Santosa
2011-06-02 22:47   ` Dave Hylands

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.