Re: Space taken by kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 12 Apr 2006, kernel learner wrote:

> How can we calculate that how much space has been taken by kernel on a 
> machine? (current usage)

Basic kernel memory used:
	physical memory in system - MemTotal (from /proc/meminfo)

Add to that the Slab and PageTables memory use from /proc/meminfo
and you have the total memory use by the kernel.

> What is the maximum limit for that?
> How can we change that limit?

There is no set limit, so nothing to change.

Are you running into any memory leaks maybe?

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux