Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751890Ab2E3J4I (ORCPT ); Wed, 30 May 2012 05:56:08 -0400 Received: from casper.infradead.org ([85.118.1.10]:42606 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172Ab2E3J4F convert rfc822-to-8bit (ORCPT ); Wed, 30 May 2012 05:56:05 -0400 Message-ID: <1338371727.26856.234.camel@twins> Subject: Re: [PATCH 13/35] autonuma: add page structure fields From: Peter Zijlstra To: KOSAKI Motohiro Cc: Rik van Riel , Andrea Arcangeli , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Hillf Danton , Dan Smith , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter Date: Wed, 30 May 2012 11:55:27 +0200 In-Reply-To: <4FC5EB3C.7040505@gmail.com> References: <1337965359-29725-1-git-send-email-aarcange@redhat.com> <1337965359-29725-14-git-send-email-aarcange@redhat.com> <1338297385.26856.74.camel@twins> <4FC4D58A.50800@redhat.com> <1338303251.26856.94.camel@twins> <4FC5D973.3080108@gmail.com> <1338368763.26856.207.camel@twins> <4FC5EB3C.7040505@gmail.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1051 Lines: 21 On Wed, 2012-05-30 at 05:41 -0400, KOSAKI Motohiro wrote: > > Yes, and we all know objects allocated in one thread are never shared > > with other threads.. the producer-consumer pattern seems fairly popular > > and will destroy your argument. > > THP also strike producer-consumer pattern. But, as far as I know, people haven't observed > significant performance degression. thus I _guessed_ performance critical producer-consumer > pattern is rare. Just guess. Not so, as long as the areas span PMDs THP can back them using huge pages, regardless of what objects live in that virtual space (or indeed if its given out as objects at all or lives on the free-lists). THP doesn't care about what lives in the virtual space, all it cares about is ranges spanning PMDs that are populated densely enough. -- 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/