linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* SLUB: Reduce antifrag max order
@ 2007-05-05 16:26 Christoph Lameter
  2007-05-08 13:15 ` Mel Gorman
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Lameter @ 2007-05-05 16:26 UTC (permalink / raw)
  To: akpm; +Cc: Mel Gorman, linux-mm

My test systems fails to obtain order 4 allocs after prolonged use.
So the Antifragmentation patches are unable to guarantee order 4
blocks after a while (straight compile, edit load).

Reduce the the max order if antifrag measures are detected to 3.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

---
 mm/slub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: slub/mm/slub.c
===================================================================
--- slub.orig/mm/slub.c	2007-05-05 09:19:32.000000000 -0700
+++ slub/mm/slub.c	2007-05-05 09:22:00.000000000 -0700
@@ -129,7 +129,7 @@
  * If antifragmentation methods are in effect then increase the
  * slab sizes to increase performance
  */
-#define DEFAULT_ANTIFRAG_MAX_ORDER 4
+#define DEFAULT_ANTIFRAG_MAX_ORDER 3
 #define DEFAULT_ANTIFRAG_MIN_OBJECTS 16
 
 /*

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SLUB: Reduce antifrag max order
  2007-05-05 16:26 SLUB: Reduce antifrag max order Christoph Lameter
@ 2007-05-08 13:15 ` Mel Gorman
  2007-05-08 16:12   ` Christoph Lameter
  2007-05-09 18:25   ` Christoph Lameter
  0 siblings, 2 replies; 4+ messages in thread
From: Mel Gorman @ 2007-05-08 13:15 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: akpm, linux-mm

On Sat, 5 May 2007, Christoph Lameter wrote:

> My test systems fails to obtain order 4 allocs after prolonged use.
> So the Antifragmentation patches are unable to guarantee order 4
> blocks after a while (straight compile, edit load).
>

Anti-frag still depends on reclaim to take place and I imagine you have 
not altered min_free_kbytes to keep pages free. Also, I don't think kswapd 
is currently making any effort to keep blocks free at a known desired 
order although I'm cc'ing Andy Whitcroft to confirm. As the kernel gives 
up easily when order > PAGE_ALLOC_COSTLY_ORDER, prehaps you should be 
using PAGE_ALLOC_COSTLY_ORDER instead of DEFAULT_ANTIFRAG_MAX_ORDER for 
SLUB.

> Reduce the the max order if antifrag measures are detected to 3.
>
> Signed-off-by: Christoph Lameter <clameter@sgi.com>
>
> ---
> mm/slub.c |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: slub/mm/slub.c
> ===================================================================
> --- slub.orig/mm/slub.c	2007-05-05 09:19:32.000000000 -0700
> +++ slub/mm/slub.c	2007-05-05 09:22:00.000000000 -0700
> @@ -129,7 +129,7 @@
>  * If antifragmentation methods are in effect then increase the
>  * slab sizes to increase performance
>  */
> -#define DEFAULT_ANTIFRAG_MAX_ORDER 4
> +#define DEFAULT_ANTIFRAG_MAX_ORDER 3
> #define DEFAULT_ANTIFRAG_MIN_OBJECTS 16
>
> /*
>

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SLUB: Reduce antifrag max order
  2007-05-08 13:15 ` Mel Gorman
@ 2007-05-08 16:12   ` Christoph Lameter
  2007-05-09 18:25   ` Christoph Lameter
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Lameter @ 2007-05-08 16:12 UTC (permalink / raw)
  To: Mel Gorman; +Cc: akpm, linux-mm

On Tue, 8 May 2007, Mel Gorman wrote:

> Anti-frag still depends on reclaim to take place and I imagine you have not
> altered min_free_kbytes to keep pages free. Also, I don't think kswapd is
> currently making any effort to keep blocks free at a known desired order
> although I'm cc'ing Andy Whitcroft to confirm. As the kernel gives up easily
> when order > PAGE_ALLOC_COSTLY_ORDER, prehaps you should be using
> PAGE_ALLOC_COSTLY_ORDER instead of DEFAULT_ANTIFRAG_MAX_ORDER for SLUB.

Ok. So we need this one.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

---
 mm/slub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: slub/mm/slub.c
===================================================================
--- slub.orig/mm/slub.c	2007-05-08 09:10:54.000000000 -0700
+++ slub/mm/slub.c	2007-05-08 09:11:15.000000000 -0700
@@ -153,7 +153,7 @@ static inline void ClearSlabDebug(struct
  * If antifragmentation methods are in effect then increase the
  * slab sizes to increase performance
  */
-#define DEFAULT_ANTIFRAG_MAX_ORDER 3
+#define DEFAULT_ANTIFRAG_MAX_ORDER PAGE_ALLOC_COSTLY_ORDER
 #define DEFAULT_ANTIFRAG_MIN_OBJECTS 16
 
 /*

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SLUB: Reduce antifrag max order
  2007-05-08 13:15 ` Mel Gorman
  2007-05-08 16:12   ` Christoph Lameter
@ 2007-05-09 18:25   ` Christoph Lameter
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Lameter @ 2007-05-09 18:25 UTC (permalink / raw)
  To: Mel Gorman; +Cc: akpm, linux-mm

On Tue, 8 May 2007, Mel Gorman wrote:

> Anti-frag still depends on reclaim to take place and I imagine you have not
> altered min_free_kbytes to keep pages free. Also, I don't think kswapd is
> currently making any effort to keep blocks free at a known desired order
> although I'm cc'ing Andy Whitcroft to confirm. As the kernel gives up easily
> when order > PAGE_ALLOC_COSTLY_ORDER, prehaps you should be using
> PAGE_ALLOC_COSTLY_ORDER instead of DEFAULT_ANTIFRAG_MAX_ORDER for SLUB.

One other interesting item: I accidentally left a machine running with 
slub_min_order=6 (1G UP x86_64). It ran for at least a day while I 
prepped mm patches on it. Failed today when I tried to untar a kernel 
tarball.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-09 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-05 16:26 SLUB: Reduce antifrag max order Christoph Lameter
2007-05-08 13:15 ` Mel Gorman
2007-05-08 16:12   ` Christoph Lameter
2007-05-09 18:25   ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox