Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp170387pxu; Thu, 15 Oct 2020 00:23:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5A5Ooy1lQ++bxTn/MC9hGG6epTUppx6nPjpADOQHbefcRBU/lVZ2CneGnJAJbWus6O7b8 X-Received: by 2002:a05:6402:1298:: with SMTP id w24mr2824616edv.280.1602746583646; Thu, 15 Oct 2020 00:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602746583; cv=none; d=google.com; s=arc-20160816; b=S2BqXqUim2ozIkkQtjStuKK5UYqTkSwB+MGEMQogruWwoQsoaHBttntYnhtT9ENeFK YUC2BPNCMJBpcksZFkZVJ6WDipbMjXhcS/CuBZLSnB6qYzS3tnjkQcf+gwYyOh/07Bs1 wlKSKdhhuyj7K9+KYramLzSNg7Nt7W9WWycGzv45uKctIRzLLf9h0LBNjZXVmSWzBJot oy2+SVdDUGP3f6muppPVWqggPPGOwI23o/d38bcrMvftKVQS2XdSiwzTxhiGi1+Lz2eD TOO3uc7L05m+gHRO++r89jqyvq6ZAc5OXzuYlqyCzUkemO/lngn6HDQKCZYPQ6svfG09 SBoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:references:in-reply-to :subject:cc:date:to:from; bh=HU24Dsfh0id2I5021U0AkWSHrGs47zilEBxUnn0tAyM=; b=WXJE9SMVKfQfRnFbv0RZekqFnxqN9ylC4vH/nW/8vQErocOfLTG8NUujESxOr+IzzR ziEnfEI1f10aDRpqyWG4vmFMVCGJJgWjAwolKx5dHkFTuibBACUzY9bvg/R4QqGEk1Wn F/6s7GApJtYl6a3ok15OjAQd8Z6/nr1xb9gRUXg99QNmzZ5pehc/AEAWwZM4a48oDEHz xxU8fA5H1beXgUfRuxtcRsQ3i19OGiHWb5OcxH8IL81/swOuHa2mi+PeUFZ2js2jqKpw nb0hFfq1zPUDeZaTyOtPJ1hKUXLFXS5pHy/4U7WsoSigdTih0m+jOtRYkiy4ejKdrzKb Em9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk23si1541396ejb.202.2020.10.15.00.22.41; Thu, 15 Oct 2020 00:23:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387991AbgJNVqN (ORCPT + 99 others); Wed, 14 Oct 2020 17:46:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:52206 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgJNVqN (ORCPT ); Wed, 14 Oct 2020 17:46:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A2AB2AF49; Wed, 14 Oct 2020 21:46:11 +0000 (UTC) From: NeilBrown To: Jan Kara , kernel test robot Date: Thu, 15 Oct 2020 08:46:01 +1100 Cc: Linus Torvalds , Andrew Morton , Jan Kara , Christoph Hellwig , Trond Myklebust , Chuck Lever , LKML , lkp@lists.01.org, lkp@intel.com, ying.huang@intel.com, feng.tang@intel.com, zhengjun.xing@intel.com Subject: Re: [mm/writeback] 8d92890bd6: will-it-scale.per_process_ops -15.3% regression In-Reply-To: <20201014101904.GA11144@quack2.suse.cz> References: <20201014084706.GB11647@shao2-debian> <20201014101904.GA11144@quack2.suse.cz> Message-ID: <87pn5kfply.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, Oct 14 2020, Jan Kara wrote: > On Wed 14-10-20 16:47:06, kernel test robot wrote: >> Greeting, >>=20 >> FYI, we noticed a -15.3% regression of will-it-scale.per_process_ops due >> to commit: >>=20 >> commit: 8d92890bd6b8502d6aee4b37430ae6444ade7a8c ("mm/writeback: discard >> NR_UNSTABLE_NFS, use NR_WRITEBACK instead") >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > Thanks for report but it doesn't quite make sense to me. If we omit > reporting & NFS changes in that commit (which is code not excercised by > this benchmark), what remains are changes like: > > nr_pages +=3D node_page_state(pgdat, NR_FILE_DIRTY); > - nr_pages +=3D node_page_state(pgdat, NR_UNSTABLE_NFS); > nr_pages +=3D node_page_state(pgdat, NR_WRITEBACK); > ... > - nr_reclaimable =3D global_node_page_state(NR_FILE_DIRTY) + > - global_node_page_state(NR_UNSTABL= E_NFS); > + nr_reclaimable =3D global_node_page_state(NR_FILE_DIRTY); > ... > - gdtc->dirty =3D global_node_page_state(NR_FILE_DIRTY) + > - global_node_page_state(NR_UNSTABLE_NFS); > + gdtc->dirty =3D global_node_page_state(NR_FILE_DIRTY); > > So if there's any negative performance impact of these changes, they're > likely due to code alignment changes or something like that... So I don't > think there's much to do here since optimal code alignment is highly spec= ific > to a particular CPU etc. I agree, it seems odd. Removing NR_UNSTABLE_NFS from enum node_stat_item would renumber all the following value and would, I think, change NR_DIRTIED from 32 to 31. Might that move something to a different cache line and change some contention? That would be easy enough to test: just re-add NR_UNSTABLE_NFS. I have no experience reading will-it-scale results, but 15% does seem like a lot. NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCAAsFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl+HcZoOHG5laWxiQHN1 c2UuZGUACgkQOeye3VZigbktnQ//Wz7j0MLuDVxAX0s3N1XVhdNL1RjAH1dvVmsa c4OeECJNbY9O4OubfR7krntaLWPj8rzOGaQy/13/WR1FxvJWlsmv/NYcPoUxZLAx pe+Srawhz0KsZ2peL0kGdYXtg/Es7UV/2IrKIOv75WxGZvpj9q58e0H4wBpRIVwK avg6W0OX4Lb+0M98llSL38f0oXrZCDhA55VEBeRTgclEKZp9O49eUg5LPGxLhZfe PMFyUDYaL7Rq+jP4kMNvpikbJabi/jyMbYA/AnuL8mf6Hxiu9+SN4OX9CKUXH7pt CbqDnXhQNWIk+Wl31YP2Qm8qlLbIynY3RDh/Se7S2m/o4ZrT2dbpAG67G5LMhv2h tM9dBr1JBjOpuB0IW97prQ7zeR39RS3o7nbrqQLz/NyGmKfZJuIoXj/3gUj0Ilc8 0q1U0/MwpANNMjwqw6z58c/Ds9Z1qTrPvKfIF7fmFNw03prRHHUDu9BA2eT8SGBY WxfPN/8SoxOLg6hcADt1GSm6l8g/vuFaFx5ac/Y6CA1Fp+kanUXTES08pTM71FeW FxSsLPqtTUhWPsY3nKV0kDx9FACaDnW38J96FKwYB1h/5nLXa7LCwYsaDjjF+ax7 lmF8hWr39BD4dLs0GbSoQ/B+KP5+9lMSPK0LFSmf7B/nWhkmGnvEHgpan7m/j4tE HQLQrcU= =Pelj -----END PGP SIGNATURE----- --=-=-=--