Re: [PATCH] mm: remove global locks from mm/highmem.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Peter Zijlstra <a.p.zijlstra@...>, <linux-kernel@...>, <linux-mm@...>
Date: Monday, January 29, 2007 - 3:08 pm

* Andrew Morton <akpm@osdl.org> wrote:



well, almost nobody profiles 32-bit boxes. I personally always knew that 
kmap() sucks on certain 32-bit SMP workloads (and -rt's scheduling model 
makes such bottlenecks even more apparent) - but many people acted in 
the belief that 64-bit is all that matters and 32-bit scalability is 
obsolete. Here are the numbers that i think changes the picture:

 http://www.fedoraproject.org/awstats/stats/updates-released-fc6-i386.total
 http://www.fedoraproject.org/awstats/stats/updates-released-fc6-x86_64.total

For every 64-bit Fedora box there's more than seven 32-bit boxes. I 
think 32-bit is going to live with us far longer than many thought, so 
we might as well make it work better. Both HIGHMEM and HIGHPTE is the 
default on many distro kernels, which pushes the kmap infrastructure 
quite a bit.


the problem is that everything that was easy to migrate was migrated off 
kmap() already - and it's exactly those hard cases that cannot be 
converted (like the pagecache use) which is the most frequent kmap() 
users.

While "it would be nice" to eliminate kmap(), but reality is that it's 
here and the patches from Peter to make it (quite a bit) more scalable 
are here as well.

plus, with these fixes kmap() is actually faster than kmap_atomic(). 
(because kunmap_atomic() necessiates an INVLPG instruction which is 
quite slow.)

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

Messages in current thread:
[PATCH] mm: remove global locks from mm/highmem.c, Peter Zijlstra, (Sun Jan 28, 10:11 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Sun Jan 28, 6:29 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Mon Jan 29, 3:08 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Nick Piggin, (Mon Jan 29, 10:02 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Mon Jan 29, 4:06 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Hugh Dickins, (Mon Jan 29, 3:19 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Mon Jan 29, 3:53 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Peter Zijlstra, (Mon Jan 29, 5:44 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Martin J. Bligh, (Mon Jan 29, 9:31 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Mon Jan 29, 9:41 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Martin J. Bligh, (Mon Jan 29, 9:49 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Mon Jan 29, 10:15 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Tue Jan 30, 8:44 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Tue Jan 30, 9:11 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Tue Jan 30, 11:22 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Fri Feb 2, 8:05 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Fri Feb 2, 7:14 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Matt Mackall, (Fri Feb 2, 3:24 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Fri Feb 2, 7:16 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Nick Piggin, (Sun Jan 28, 10:52 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Sun Jan 28, 10:49 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Sun Jan 28, 11:17 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Sun Jan 28, 11:28 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Sun Jan 28, 11:48 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Sun Jan 28, 11:54 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Sun Jan 28, 2:19 pm)