[procps] Re: slabtop shows inccorect "CACHE SIZE" for specific case

  • From: Marcin Mirosław <marcin@xxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Mon, 9 May 2016 16:03:32 +0200

W dniu 16.04.2016 o 13:05, Craig Small pisze:

Hi Marcin,
  That's not how slabtop calculates the size.

You formula is cache = #objects * object_size

The way slabtop calculates it is: cache = #pages/slab * #slabs * page_size

8 * 35426 * 4096 / 1024 = 1133632K

Now, why the numbers are different, I'm not so sure. I don't quite
understand the memory management.


Hi Craig!
Thank you for reply:)
Marcin


Other related posts: