Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932359AbVJCQmx (ORCPT ); Mon, 3 Oct 2005 12:42:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932356AbVJCQmx (ORCPT ); Mon, 3 Oct 2005 12:42:53 -0400 Received: from fmr15.intel.com ([192.55.52.69]:34740 "EHLO fmsfmr005.fm.intel.com") by vger.kernel.org with ESMTP id S932359AbVJCQmw (ORCPT ); Mon, 3 Oct 2005 12:42:52 -0400 Subject: Re: [PATCH]: Clean up of __alloc_pages From: Rohit Seth To: Nick Piggin Cc: akpm@osdl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <433F4F67.4090800@yahoo.com.au> References: <20051001120023.A10250@unix-os.sc.intel.com> <433F4F67.4090800@yahoo.com.au> Content-Type: text/plain Organization: Intel Date: Mon, 03 Oct 2005 09:50:01 -0700 Message-Id: <1128358201.8472.7.camel@akash.sc.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 (2.2.2-5) Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Oct 2005 16:42:37.0234 (UTC) FILETIME=[763D3120:01C5C839] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1292 Lines: 36 On Sun, 2005-10-02 at 13:09 +1000, Nick Piggin wrote: > Perhaps splitting it into 2 would be a good idea - ie. first > patch does the cleanup, second does the direct pcp list alloc. > > Regarding the direct pcp list allocation - I think it is a good > idea, because we're currently already accounting pcp list pages > as being 'allocated' for the purposes of the reclaim watermarks. > Right. > Also, the structure is there to avoid touching cachelines whenever > possible so it makes sense to use it early here. Do you have any > performance numbers or allocation statistics (e.g. %pcp hits) to > show? > No, I don't have any data at this point to share. > Also, I would really think about uninlining get_page_from_freelist, > and inlining buffered_rmqueue, so that the constant 'replenish' > argument can be propogated into buffered_rmqueue and should allow > for some nice optimisations. While not bloating the code too much > because your get_page_from_freelist becomes out of line. I will do that. Thanks for your feedback, -rohit - 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/