Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-05 Thread Rik van Riel
On 02/02/2015 05:18 PM, Mel Gorman wrote: > On Mon, Feb 02, 2015 at 02:05:06PM -0800, Andrew Morton wrote: >> On Mon, 2 Feb 2015 16:55:25 + Mel Gorman wrote: >> >>> glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas >>> instead of creating new areans if the existing ones we

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Mel Gorman
On Tue, Feb 03, 2015 at 12:47:56PM +0200, Kirill A. Shutemov wrote: > On Tue, Feb 03, 2015 at 09:47:18AM +, Mel Gorman wrote: > > On Mon, Feb 02, 2015 at 02:22:36PM -0800, Dave Hansen wrote: > > > On 02/02/2015 08:55 AM, Mel Gorman wrote: > > > > This patch identifies when a thread is frequentl

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Mel Gorman
On Mon, Feb 02, 2015 at 02:35:41PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 22:18:24 + Mel Gorman wrote: > > > > Is there something > > > preventing this from being addressed within glibc? > > > > I doubt it other than I expect they'll punt it back and blame either the > > applicati

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Kirill A. Shutemov
On Tue, Feb 03, 2015 at 09:47:18AM +, Mel Gorman wrote: > On Mon, Feb 02, 2015 at 02:22:36PM -0800, Dave Hansen wrote: > > On 02/02/2015 08:55 AM, Mel Gorman wrote: > > > This patch identifies when a thread is frequently calling MADV_DONTNEED > > > on the same region of memory and starts ignori

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Mel Gorman
On Mon, Feb 02, 2015 at 02:22:36PM -0800, Dave Hansen wrote: > On 02/02/2015 08:55 AM, Mel Gorman wrote: > > This patch identifies when a thread is frequently calling MADV_DONTNEED > > on the same region of memory and starts ignoring the hint. On an 8-core > > single-socket machine this was the imp

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Davidlohr Bueso
On Mon, 2015-02-02 at 14:35 -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 22:18:24 + Mel Gorman wrote: > > > > Is there something > > > preventing this from being addressed within glibc? > > > > I doubt it other than I expect they'll punt it back and blame either the > > application for

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 22:18:24 + Mel Gorman wrote: > > Is there something > > preventing this from being addressed within glibc? > > I doubt it other than I expect they'll punt it back and blame either the > application for being stupid or the kernel for being slow. *Is* the application being

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Dave Hansen
On 02/02/2015 08:55 AM, Mel Gorman wrote: > This patch identifies when a thread is frequently calling MADV_DONTNEED > on the same region of memory and starts ignoring the hint. On an 8-core > single-socket machine this was the impact on ebizzy using glibc 2.19. The manpage, at least, claims that w

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Mel Gorman
On Mon, Feb 02, 2015 at 02:05:06PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 16:55:25 + Mel Gorman wrote: > > > glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas > > instead of creating new areans if the existing ones were contended. > > The decision appears to hav

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 16:55:25 + Mel Gorman wrote: > glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas > instead of creating new areans if the existing ones were contended. > The decision appears to have been made so the allocator scales better but the > downside is that mad