Received: by 10.223.185.116 with SMTP id b49csp3774472wrg; Tue, 6 Mar 2018 04:54:16 -0800 (PST) X-Google-Smtp-Source: AG47ELvupVjo1AlXAcpObajnPNwx4V0vzDHaQz5uEeBh+HdWrmorza3yeHtVKKBhFLNLZwIuHcB0 X-Received: by 10.101.100.200 with SMTP id t8mr15401481pgv.120.1520340856233; Tue, 06 Mar 2018 04:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520340856; cv=none; d=google.com; s=arc-20160816; b=uAG2neoorJ9/Jrdq5TSjKrB1+vBF7NpTVJLn8hJg1H/NiXQykpl/jyEUX1G4bpeVsi prxTBq1FnTjyR6xVthS9beZGG0oBDM9sWtkZMVyRxVof2QV9iF9RVurxSpSRlz+8Pjxr fluxRdNfg8nha6E3xMK3N2a9HUTnwNug2BbnFcsi/RJNRxG0CZ045r651B2boTmu3fmZ gR/UJeeqkv7ziLuGWU4GgmBOliLQq18PUtaY8qjh5bjfr5nSOSnBLpXszA4fAiXWIz9f w2B79lnct5gFdcORRnG7vG+q2ViSWjFQ2Mves5p9x8cSLzunLrPtf+xlYa8l+L1OgAaD IJMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=1SruFaU5ckrB2lYpBxny2/UuPqyd6HT2EZc7T1FTmps=; b=rHD6jv+RTA84vP4zyC3yBLPXDiqYaur/7VnTik+hFBmZFDjEEN5UDxLycQ0iamUuKq 8gX9CZX6Tjgp50LHjEQXWNOOaDc3IncEu5qwqAT/xqvThAuK7eXSm+iz6O7XlewYLj6q +K4Pvi0/36m6cMsg9rRu1mPeu2LiwV8/i0rESp/3I4ljh2SfrHZU7BEPYwmanZYl+wzH YLYH97vd5V8tza/WwZ6YjTNLhMqlI91t19ewL5078sW2FjsXzmP8nneiIsr6EQvaWSEE cOoHmKjg6DnfLF2USUro/J8390gM62+1OpKsM1hW43p4MI7rO4Map+0lsmNA3DGtil57 ZBUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=I8qDWT4t; 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 s187si11779519pfs.1.2018.03.06.04.54.01; Tue, 06 Mar 2018 04:54:16 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=I8qDWT4t; 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 S1753595AbeCFMxH (ORCPT + 99 others); Tue, 6 Mar 2018 07:53:07 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34034 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753223AbeCFMxG (ORCPT ); Tue, 6 Mar 2018 07:53:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1SruFaU5ckrB2lYpBxny2/UuPqyd6HT2EZc7T1FTmps=; b=I8qDWT4tdw57bUuArkO/Dl97F YUd7yhxc4/vimqQ5ztauKQC8UIU/pcm5UY64IqK63iEE2qLI4QMkTkyFq6yKRKlMju4m36aULkB1K TQfkcwkFNPwDAEl5k4SqthTezXxfjQOaV+3NNs6SjMxsxxDNvz3D8OGv0/NSEY7w15x1KmxLpK+aD hITJiG5M7Rkjs3+PGNUoKYIY2NehlyNUOscaxzLBY0R9R5dy2BYOe5xGLH+hbhzPC7xQSqswzjlJW 0s+Gy4EYzphjo7OCgYJtKEzQRLodBKL8OrAX+gQnCyoAKPGfSf8S5nSP2UlORsMEgsD9/vR9Pleqy 4w0PuGXGQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1etC5Y-0005IE-FV; Tue, 06 Mar 2018 12:53:04 +0000 Date: Tue, 6 Mar 2018 04:53:04 -0800 From: Matthew Wilcox To: Aaron Lu Cc: Vlastimil Babka , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Huang Ying , Dave Hansen , Kemi Wang , Tim Chen , Andi Kleen , Mel Gorman , David Rientjes Subject: Re: [PATCH v4 3/3] mm/free_pcppages_bulk: prefetch buddy while not holding lock Message-ID: <20180306125303.GA13722@bombadil.infradead.org> References: <20180301062845.26038-1-aaron.lu@intel.com> <20180301062845.26038-4-aaron.lu@intel.com> <20180301140044.GK15057@dhcp22.suse.cz> <20180305114159.GA32573@intel.com> <20180306122733.GA9664@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180306122733.GA9664@intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 08:27:33PM +0800, Aaron Lu wrote: > On Tue, Mar 06, 2018 at 08:55:57AM +0100, Vlastimil Babka wrote: > > So the adjacent line prefetch might be disabled? Could you check bios or > > the MSR mentioned in > > https://software.intel.com/en-us/articles/disclosure-of-hw-prefetcher-control-on-some-intel-processors > > root@lkp-bdw-ep2 ~# rdmsr 0x1a4 > 0 Technically 0x1a4 is per-core, so you should run rdmsr -a 0x1a4 in order to check all the cores. But I can't imagine they're being set differently on each core. > > instructions (calculated from itlb misses and insns-per-itlb-miss) shows > > less than 1% increase, so dunno. And the improvement comes from reduced > > dTLB-load-misses? That makes no sense for order-0 buddy struct pages > > which always share a page. And the memmap mapping should use huge pages. > > THP is disabled to stress order 0 pages(should have mentioned this in > patch's description, sorry about this). THP isn't related to memmap; the kernel uses huge pages (usually the 1G pages) in order to map its own memory.