Why struct meta_page?
Posted Aug 4, 2007 9:30 UTC (Sat) by
balbir_singh (subscriber, #34142)
In reply to:
Why struct meta_page? by i3839
Parent article:
Controlling memory use in containers
Your calculation seems accurate, but remember not everyone wants to use the memory controller. For non-users of the feature, we could later add a boot option and the overhead would be (with config enabled)
nr_pages * sizeof(pointer)
without this, the overhead would clearly be
3 * nr_pages * sizeof(pointer)
I need to double check this, but the sizeof struct page is currently close to being aligned in one cacheline, continuous and uncontrolled extensions can hurt in the long run (may be even now).
(
Log in to post comments)