Messages in this thread Patch in this message | | | From | KOSAKI Motohiro <> | Subject | Re: Free memory never fully used, swapping | Date | Tue, 30 Nov 2010 09:25:23 +0900 (JST) |
| |
> On Thu, 25 Nov 2010, KOSAKI Motohiro wrote: > > Please try SLAB instead SLUB (it can be switched by kernel build option). > > SLUB try to use high order allocation implicitly. > > SLAB uses orders 0-1. Order is fixed per slab cache and determined based > on object size at slab creation. > > SLUB uses orders 0-3. Falls back to smallest order if alloc order cannot > be met by the page allocator. > > One can reduce SLUB to SLAB orders by specifying the following kernel > commandline parameter: > > slub_max_order=1
This?
From 3edd305fc58ac89364806cd60140793d37422acc Mon Sep 17 00:00:00 2001 From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Date: Fri, 24 Dec 2010 18:04:10 +0900 Subject: [PATCH] slub: reduce slub_max_order by default
slab is already using order-1.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> --- mm/slub.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/mm/slub.c b/mm/slub.c index 8c66aef..babf359 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1964,7 +1964,8 @@ static struct page *get_object_page(const void *x) * take the list_lock. */ static int slub_min_order; -static int slub_max_order = PAGE_ALLOC_COSTLY_ORDER; +/* order-1 is maximum size which we can assume to exist always. */ +static int slub_max_order = 1; static int slub_min_objects; /* -- 1.6.5.2
| |