Re: vmalloc performance

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Whitehouse
Date: Wednesday, April 14, 2010 - 5:49 am

Since this didn't attract much interest the first time around, and at
the risk of appearing to be talking to myself, here is the patch from
the bugzilla to better illustrate the issue:


diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index ae00746..63c8178 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -605,8 +605,7 @@ static void free_unmap_vmap_area_noflush(struct
vmap_area *va)
 {
 	va->flags |= VM_LAZY_FREE;
 	atomic_add((va->va_end - va->va_start) >> PAGE_SHIFT, &vmap_lazy_nr);
-	if (unlikely(atomic_read(&vmap_lazy_nr) > lazy_max_pages()))
-		try_purge_vmap_area_lazy();
+	try_purge_vmap_area_lazy();
 }
 
 /*


Steve.

On Mon, 2010-04-12 at 17:27 +0100, Steven Whitehouse wrote:

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
vmalloc performance, Steven Whitehouse, (Mon Apr 12, 9:27 am)
Re: vmalloc performance, Steven Whitehouse, (Wed Apr 14, 5:49 am)
Re: vmalloc performance, Steven Whitehouse, (Wed Apr 14, 7:24 am)
Re: vmalloc performance, Minchan Kim, (Wed Apr 14, 8:12 am)
Re: vmalloc performance, Minchan Kim, (Wed Apr 14, 8:13 am)
Re: vmalloc performance, Minchan Kim, (Wed Apr 14, 9:35 am)
Re: vmalloc performance, Steven Whitehouse, (Thu Apr 15, 1:33 am)
Re: vmalloc performance, Minchan Kim, (Thu Apr 15, 9:51 am)
Re: vmalloc performance, Nick Piggin, (Thu Apr 15, 11:12 pm)
Re: vmalloc performance, Minchan Kim, (Fri Apr 16, 12:20 am)
Re: vmalloc performance, Steven Whitehouse, (Fri Apr 16, 1:50 am)
Re: vmalloc performance, Steven Whitehouse, (Fri Apr 16, 7:10 am)
Re: vmalloc performance, Minchan Kim, (Sun Apr 18, 8:14 am)
Re: vmalloc performance, Steven Whitehouse, (Mon Apr 19, 5:58 am)
Re: vmalloc performance, Nick Piggin, (Mon Apr 19, 6:38 am)
Re: vmalloc performance, Minchan Kim, (Mon Apr 19, 7:09 am)
Re: vmalloc performance, Minchan Kim, (Mon Apr 19, 7:12 am)
Re: vmalloc performance, Steven Whitehouse, (Thu Apr 29, 6:43 am)
Re: [PATCH] cache last free vmap_area to avoid restarting ..., Steven Whitehouse, (Wed May 5, 5:48 am)
Re: [PATCH] cache last free vmap_area to avoid restarting ..., Steven Whitehouse, (Mon May 17, 5:42 am)
Re: [PATCH] cache last free vmap_area to avoid restarting ..., Steven Whitehouse, (Tue May 18, 6:44 am)
Re: [PATCH] cache last free vmap_area to avoid restarting ..., Steven Whitehouse, (Wed May 19, 6:54 am)
Re: [PATCH] cache last free vmap_area to avoid restarting ..., Steven Whitehouse, (Tue May 25, 8:48 am)