How to calculate memory usage?

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

 



Hello.

Sorry for silly question.
I want to know how much memory are used by the kernel when configuration changes.

The following are outputs of dmesg from my environment.

2.6.16-rc2 without SELinux:
Memory: 2074660k/2096512k available (1872k kernel code, 20692k reserved, 680k data, 256k init, 1179008k highmem)

2.6.16-rc2 with SELinux:
Memory: 2074564k/2096512k available (1932k kernel code, 20788k reserved, 703k data, 256k init, 1179008k highmem)
            -96k                      +60k                +96k           +23k

By enabling SELinux, "available memory" decreased for 96kB and "reserved memory" increased for 96kB.
But however, "kernel code" + "data" = 83kB and is much smaller than "reserved memory" increased.

In this case, how much memory is consumed by SELinux? 83kB or 96kB or something else?

Regards.

--
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