From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mel Gorman Subject: Re: [PATCH 1/2] mm/page_alloc: free order-0 pages through PCP in page_frag_free() Date: Mon, 5 Nov 2018 09:26:42 +0000 Message-ID: <20181105092642.GF23537@techsingularity.net> References: <20181105085820.6341-1-aaron.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Andrew Morton , "=?utf-8:iso-8859-1?B?UGF3ZcWC?= Staszewski" , Jesper Dangaard Brouer , Eric Dumazet , Tariq Toukan , Ilias Apalodimas , Yoel Caspersen , Saeed Mahameed , Michal Hocko , Vlastimil Babka , Dave Hansen To: Aaron Lu Return-path: Content-Disposition: inline In-Reply-To: <20181105085820.6341-1-aaron.lu@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, Nov 05, 2018 at 04:58:19PM +0800, Aaron Lu wrote: > page_frag_free() calls __free_pages_ok() to free the page back to > Buddy. This is OK for high order page, but for order-0 pages, it > misses the optimization opportunity of using Per-Cpu-Pages and can > cause zone lock contention when called frequently. > > [1]: https://www.spinics.net/lists/netdev/msg531362.html > [2]: https://www.spinics.net/lists/netdev/msg531421.html > [3]: https://www.spinics.net/lists/netdev/msg531556.html > Reported-by: Paweł Staszewski > Analysed-by: Jesper Dangaard Brouer > Signed-off-by: Aaron Lu Well spotted, Acked-by: Mel Gorman -- Mel Gorman SUSE Labs