Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965525AbbBCA0h (ORCPT ); Mon, 2 Feb 2015 19:26:37 -0500 Received: from smtp2.provo.novell.com ([137.65.250.81]:42915 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965354AbbBCA0g (ORCPT ); Mon, 2 Feb 2015 19:26:36 -0500 Message-ID: <1422923185.14964.2.camel@stgolabs.net> Subject: Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints From: Davidlohr Bueso To: Andrew Morton Cc: Mel Gorman , linux-mm@kvack.org, Minchan Kim , Vlastimil Babka , linux-kernel@vger.kernel.org Date: Mon, 02 Feb 2015 16:26:25 -0800 In-Reply-To: <20150202143541.1efdd2b571413200cb9a4698@linux-foundation.org> References: <20150202165525.GM2395@suse.de> <20150202140506.392ff6920743f19ea44cff59@linux-foundation.org> <20150202221824.GN2395@suse.de> <20150202143541.1efdd2b571413200cb9a4698@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 26 On Mon, 2015-02-02 at 14:35 -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 22:18:24 +0000 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 stupid? What is it actually doing? > Something like > > pthread_routine() > { > p = malloc(X); > do_some(work); > free(p); Ebizzy adds a time based loop in there. But yeah, pretty much a standard pthread model. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/