Received: by 10.223.185.116 with SMTP id b49csp16926wrg; Fri, 2 Mar 2018 12:46:56 -0800 (PST) X-Google-Smtp-Source: AG47ELtb0Mm0LlFgcoaYcu7vyem5fg/wS2pc7OpWovJ+95Z2ygMf3Cuh9gsVxV4mOD3x6zWTxudj X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr6183124pls.267.1520023616134; Fri, 02 Mar 2018 12:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520023616; cv=none; d=google.com; s=arc-20160816; b=UsmpubU4KoAVfB5v2srHeuybkfu7uBfRQxa27z8jqmDlmuRHpdqTPiWT4LDYsnj49b lWGdYFORPlaNfmBbnnabK/qqENFMMKawYddSQjQ8F6X4HApKvjnu+6s4N3VIkoNumHKd 6ZBJ6b4fLUYHImzhiBB9BU+I4olHrFcOFRCdLy5eaDJr2Uvz9mUJDUu+XdbcnDAkM7ky ti50b/eKziA5SospghAqsrYBuP94cBCCdowKYT/AQImdcc7utdVf+/Gi0o8qNYGMd1GA JAVJCMIuHnRdXBvFT1E/WMc+jKptMAbpIRjzTmA7fuCgP16j1V8cFYa5J1ft/ykyCrpO rheA== 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:cc:references:to:subject:arc-authentication-results; bh=KW0xCouK1EF9rUljGjdaksVdgN2Hro3aGVEPspTvxvE=; b=DzcF3gZ+FQRfCaow6E/Soq85H+4Go1/kkNwA//gpH1jW8uyT/Nj/XtP3xP8lG56V1L ZvN2NvH6Qqi4WD8wBQ4Z6qAP4P/+VMqX1E8uuokN9r3ePLkfCZhNJ0vZkWRn29C2AT/F EPp3xugzA76Tn60fkU/IMVJfdvBys/fNpDXBEg1SFmB3EH91p8BJVr0bOjV7KELFHIbp yUs7PppdcCGLNvF5Ho8yqNEY4/kuDQhZ2IlGHfK3EIlHuB+eTGyuASzzPj4ubBSiEu1b ypAsbcMc4IJIfd7GXB0c6i9HQfgTg8iLV8dHNj29DqKeaHTjnD8yS0jKJDbOsziZNDC9 ehLA== 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 o18si4444774pge.300.2018.03.02.12.46.39; Fri, 02 Mar 2018 12:46:56 -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 S1947123AbeCBSAa (ORCPT + 99 others); Fri, 2 Mar 2018 13:00:30 -0500 Received: from mga02.intel.com ([134.134.136.20]:9986 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1947104AbeCBSA0 (ORCPT ); Fri, 2 Mar 2018 13:00:26 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2018 10:00:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,413,1515484800"; d="scan'208";a="35471163" Received: from ray.jf.intel.com (HELO [10.7.201.20]) ([10.7.201.20]) by orsmga001.jf.intel.com with ESMTP; 02 Mar 2018 10:00:25 -0800 Subject: Re: [PATCH v4 3/3] mm/free_pcppages_bulk: prefetch buddy while not holding lock To: Vlastimil Babka , Michal Hocko , Aaron Lu References: <20180301062845.26038-1-aaron.lu@intel.com> <20180301062845.26038-4-aaron.lu@intel.com> <20180301140044.GK15057@dhcp22.suse.cz> 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 From: Dave Hansen Message-ID: <2433e857-fea7-9af4-d124-538ad17de454@intel.com> Date: Fri, 2 Mar 2018 10:00:24 -0800 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: 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 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.