Received: by 10.223.185.116 with SMTP id b49csp24784wrg; Fri, 2 Mar 2018 12:57:05 -0800 (PST) X-Google-Smtp-Source: AG47ELuvLlLe303kTwHolcyQ7Oy3PCijHhwUveQ+1qdrDASQpxGoShRMQgHCXqQMqq1aEzavgm4f X-Received: by 10.99.168.8 with SMTP id o8mr5624961pgf.246.1520024225717; Fri, 02 Mar 2018 12:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520024225; cv=none; d=google.com; s=arc-20160816; b=G2/bYbO/+9svL5Q5AV675TKUyXGL6G1DGdLqiBaPvxnWn83hrbT0UVDcYtmvdJS6jt JTrnRAfE0YioQjclb2URkIHxOfx0ZzsnXjSNzpqJgFQJ/yCNuU9m0fTHah3vHc2YBHLn gjRXk/W7Yp2c9ZEdfNfYF0FCi+SHmMNWoQZFCrne3fNa3AFMQZRlR3WY9VX+GkECSa7X ZqDVo/epXwL0astU1KW1uJBkruHt2OX+M9HfRIntUMtDiV3qTtQonQCW7WeMt+zp6Ws1 hqBrenT9Y94VwlqjB9JxPD+U3gT2S2Aq4CmHYtdVV8CVTSkplUoY/Nx4VFtbe0hAxlFF wLCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=GBluWoZiDJgEys6gLNnMKVyosu6xrCG5pMTFZlBJwxA=; b=eyFhVMlFo501ny6cov8u1Xom6ifVpcjnivYp/idHJoi8htYSmQg3TOskjSEnPVr+k4 FpFbRElp2gtqzV4dqpfqZYzmQskCKDKLa6uoXrj9QFK7C5lq8c0AeBkjEoZqETty68Df J7nlKqST3x2QTwFAVkQdtRPTUo8hhb6Op2yGepVvcJjbceYHUnqDOtKI74UYwe1ir8l/ tc1IZjumk2+lymV6V8umehp2CRSK+4Ny9H6QmUxa+op1X+cpHYGcUeg+MCgzwpE6axij QWNBgfJkJ66Vy5FYOLe682OqeEX+OoQ8SoNAbHFHLcakJKbASBuQNIOxH/qHsXJ0tg+9 uNXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si4871659plh.392.2018.03.02.12.56.50; Fri, 02 Mar 2018 12:57:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426695AbeCBSJt (ORCPT + 99 others); Fri, 2 Mar 2018 13:09:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:57488 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423570AbeCBSJs (ORCPT ); Fri, 2 Mar 2018 13:09:48 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C5D30AE55; Fri, 2 Mar 2018 18:09:46 +0000 (UTC) Subject: Re: [PATCH v4 3/3] mm/free_pcppages_bulk: prefetch buddy while not holding lock To: Dave Hansen , Michal Hocko , Aaron Lu Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Huang Ying , Kemi Wang , Tim Chen , Andi Kleen , Mel Gorman , Matthew Wilcox , David Rientjes References: <20180301062845.26038-1-aaron.lu@intel.com> <20180301062845.26038-4-aaron.lu@intel.com> <20180301140044.GK15057@dhcp22.suse.cz> <2433e857-fea7-9af4-d124-538ad17de454@intel.com> From: Vlastimil Babka Message-ID: <787e53b9-20d3-a2df-44fc-ea8c31a6ced3@suse.cz> Date: Fri, 2 Mar 2018 19:08:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <2433e857-fea7-9af4-d124-538ad17de454@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2018 07:00 PM, Dave Hansen wrote: > On 03/02/2018 09:55 AM, Vlastimil Babka wrote: >> It's even stranger to me. Struct page is 64 bytes these days, exactly a >> a cache line. Unless that changed, Intel CPUs prefetched a "buddy" cache >> line (that forms an aligned 128 bytes block with the one we touch). > > I believe that was a behavior that was specific to the Pentium 4 > "Netburst" era. I don't think the 128-byte line behavior exists on > modern Intel cpus. I remember it on Core 2 something (Nehalem IIRC). And this page suggests up to Broadwell, and it can be disabled. And it's an L2 prefetcher indeed. https://software.intel.com/en-us/articles/disclosure-of-hw-prefetcher-control-on-some-intel-processors