Re: SLUB and maximum PAGE_SIZE

2010-07-10 Thread GoatZilla
On Fri, Jul 9, 2010 at 8:01 PM, Mulyadi Santosa wrote: > On Sat, Jul 10, 2010 at 06:53, GoatZilla wrote: >> When it hits slab_order: >> >> http://lxr.linux.no/linux+v2.6.34.1/mm/slub.c#L1958 >> >> It finds that the minimum page order can hold more than >> MAX_OBJS_PER_PAGE, so it then requests th

Re: SLUB and maximum PAGE_SIZE

2010-07-09 Thread Mulyadi Santosa
On Sat, Jul 10, 2010 at 06:53, GoatZilla wrote: > When it hits slab_order: > > http://lxr.linux.no/linux+v2.6.34.1/mm/slub.c#L1958 > > It finds that the minimum page order can hold more than > MAX_OBJS_PER_PAGE, so it then requests the order of the page that > holds the max objects. > > In our cas

SLUB and maximum PAGE_SIZE

2010-07-09 Thread GoatZilla
Let's say I set my PAGE_SIZE to be a massive 1MB. This is a huge page size, so it seems to make sense to have the min order for SLUB be 0. While booting, the kernel sets up the kmalloc caches for, say, the 8 byte size type. When it hits slab_order: http://lxr.linux.no/linux+v2.6.34.1/mm/slub.c#