AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Track memory usage linux8/31/2023 ![]() ![]() Slab is inline with /proc/slabinfo Slab + Shmem + KernelStack + PageTables = Kernelspace? (Out of interest I get a much, much larger Commited_AS on a 32bit debian 2.6.32-5-686) AnonPages + Mapped + Commited_AS = Userspace? Active + Inactive = UsedĬommited_AS here seems to track closely to the sum of userspace private/shared memory discounting shared files from /proc/*/smaps. If we add up the used: MemTotal - MemFree - Buffers - Cached = Usedġ6345780 - 16129940 - 10360 - 48444 = 157036Īll the Active*/Inactive* seem to be counters applied over some pages (not all) so could duplicate what is counted elsewhere. The /proc/meminfo documentation is also helpful but aging a bit too. The most detailed memory info I can find is this from 2007 which appears to have resulted in the addition of the Pss field to general kernel accounting for a process but their python code is for older kernels and unfortunately some of the /proc/k* files have disappeared since then. ![]() With not much running other than systemd and sshd to keep it simple $ ps aux | sort -n -k6 ![]() On an Arch 3.6.7 x86_64 kernel I am trying to account for the memory usage of the system, which the more I look at it, the more there appears to be a hole (in the accounting of used memory, a non-hole in the usage of). ![]()
0 Comments
Read More
Leave a Reply. |