Re: vmalloc performance

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Monday, April 19, 2010 - 6:38 am

On Mon, Apr 19, 2010 at 12:14:09AM +0900, Minchan Kim wrote:
 
Thanks, yep something like this is what I had in mind. Looks like you
have some really nice speed improvements which is great.



I think I would prefer to be a little smarter about using lower
addresses first. I know the lazy TLB flushing works against this, but
that is an important speed tradeoff, wheras there is not really any
downside to trying hard to allocate low areas first. Keeping virtual
addresses dense helps with locality of reference of page tables, for
one.

So I would like to see:
- invalidating the cache in the case of vstart being decreased.
- Don't unconditionally reset the cache to the last vm area freed,
  because you might have a higher area freed after a lower area. Only
  reset if the freed area is lower.
- Do keep a cached hole size, so smaller lookups can restart a full
  search.

Probably also at this point, moving some of the rbtree code (like the
search code) into functions would manage the alloc_vmap_area complexity.
Maybe do this one first if you're going to write a patchset.

What do you think? Care to have a go? :)

--
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)