Why struct meta_page?
Posted Aug 4, 2007 9:30 UTC (Sat) by balbir_singh
In reply to: Why struct meta_page?
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).
to post comments)