Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3946768ybh; Tue, 6 Aug 2019 04:01:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2bdb1Dwr97zamTDLxRMUt8XuyGEhzTKjAV6ahH/7hL4zUrBF59kkMuNYD5CSyYXuvR4yE X-Received: by 2002:a17:90a:c596:: with SMTP id l22mr2657850pjt.46.1565089315155; Tue, 06 Aug 2019 04:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565089315; cv=none; d=google.com; s=arc-20160816; b=SrhoGji2p9VAseheKiRqB8s4mlLs2/V0i9tTJFCFZ8AKBtIpaZipixpjCmN7ITxxUu p9UXGKXdTTR89kfmwWeLDlkVWP2wLSyI6pOQzU/7mAcbL+pwPLhnZ1neIj+3cYai50st 1bPfw8YUPymlzblI8/wr5bIL6Hy33jxy5bxxyiIx0ITFT8BLhchZU9lWqiOeDCA2ArbC iLkxLWouAsxtV6oSrOOdroBjangwfAGNyEGRh56G2pI2eRDPq14OUdnIxLfyR/OIz7OW KvYvGDJeeb1THk5fYsNiHCitSPUsQyQ2bRH70n+4nr0PTI8u62mD54rf3SviVXOI6VXZ ktQA== 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; bh=Ey/TDb+j3ulf/Kh0DyGVxExM26fXVHaeQeTsCyT/hWk=; b=nJFjt3oUb0YLpAte8dikvl15h9eLdK0sgta03LPIQlMxxA4NsGVo1AxMZawt9Jb+pm G4We7nPGHuBBYIBCEWLaCa+bIujZqIMF7amGV1HuG5YMBXn9MgC0SgxrN41lsD5or/o/ 80awSoo1ZtKsWJliIH+9JirbO3K2KwiAnwYPkFsnkt4vQfMRQD+rmiD5UZwf6K2rbUUQ goTzdAh2JIoodUrOMMz14uYuThVb7lypA8JQrVqO1qyGvCfhKNf9wKx4J1+lYZYgPCZa PNx+byuo1n5PUeWJkTR5eA2F2lcl9mN8eGshORBB1cfUpT3KUemnn7Rf/yy5JoMqeqDs 54zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KEqUYzrw; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24si48037501pgq.372.2019.08.06.04.01.38; Tue, 06 Aug 2019 04:01:55 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=KEqUYzrw; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732620AbfHFLAb (ORCPT + 99 others); Tue, 6 Aug 2019 07:00:31 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37229 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730902AbfHFLAb (ORCPT ); Tue, 6 Aug 2019 07:00:31 -0400 Received: by mail-pg1-f193.google.com with SMTP id d1so8585815pgp.4 for ; Tue, 06 Aug 2019 04:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ey/TDb+j3ulf/Kh0DyGVxExM26fXVHaeQeTsCyT/hWk=; b=KEqUYzrwilv1Xix2/euOGauUH6pBzvZDAJ4XqIXBsBhfjllP1rTaC1iedXkybgFWVI NuMwON0aP//RoKcdjSA3dRQrQKNvYN/1Y2MYcf940QORKaAvbupp2Dx6yWU5xmTL4Th5 vlOw7wW8DQtzPv1skB7m53NKoknnmnnaScTAb2DBaq3uglPOGK3lJFdmoFgPzMybnbMq TTvdH3aS0wrGOwWIPqGP1qwP9Qz31APO31T9pIgCWihZj5ZZ24R14KIZdixbp3KuerIR SZrwo0GgH7W1mjrvAYXO7Ry7+OPPirPAZpeoopuq+ieLHQIjfaH0uej/b0BprddCl/LC topg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Ey/TDb+j3ulf/Kh0DyGVxExM26fXVHaeQeTsCyT/hWk=; b=lH27o5X/IzGzeyyl/lWVR1O7nGaAGv4rcQmJTXWtMEYiI+n84qES+qH34Foj1mI6Dy fVsiLDy53IdwSs8gwZA8DxA4RUPZ4aJnWOcTpEnGJpWpYS78cmynnVJueuvBGsz1Uvvu b4iXLgMW+olTw7WXymClZbrl8/LNHaFV4S4hHXJoi1EBSnNp1zNz02e3p1Ytk+cWY7hz IUz0c/trMncRkvFYpAgII33U/vkCDV2q9g7qhOPNNOrgRhZkW9jTbWq+hEZzvn3KHyFh 7xLjuQthbSRemwx3FyQt2WU8Cyovwy5cnf5Z3VQvjMqRkWi2a2Q6ufsCf5VXjx5hHkah nqNw== X-Gm-Message-State: APjAAAX9SROzF9vAladN72jEvy9JZ0yl4Xjf+/Of3uKc/4GvmSIO3arV BSDb0TSP6R9AjDUoXK1UCYs= X-Received: by 2002:a17:90a:bb8b:: with SMTP id v11mr2575447pjr.64.1565089230260; Tue, 06 Aug 2019 04:00:30 -0700 (PDT) Received: from google.com ([2401:fa00:d:0:98f1:8b3d:1f37:3e8]) by smtp.gmail.com with ESMTPSA id p1sm92628404pff.74.2019.08.06.04.00.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 04:00:29 -0700 (PDT) Date: Tue, 6 Aug 2019 20:00:24 +0900 From: Minchan Kim To: Michal Hocko Cc: kernel test robot , Andrew Morton , LKML , linux-mm , Miguel de Dios , Wei Wang , Johannes Weiner , Mel Gorman , lkp@01.org Subject: Re: [mm] 755d6edc1a: will-it-scale.per_process_ops -4.1% regression Message-ID: <20190806110024.GA32615@google.com> References: <20190729071037.241581-1-minchan@kernel.org> <20190806070547.GA10123@xsang-OptiPlex-9020> <20190806080415.GG11812@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190806080415.GG11812@dhcp22.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 06, 2019 at 10:04:15AM +0200, Michal Hocko wrote: > On Tue 06-08-19 15:05:47, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed a -4.1% regression of will-it-scale.per_process_ops due to commit: > > I have to confess I cannot make much sense from numbers because they > seem to be too volatile and the main contributor doesn't stand up for > me. Anyway, regressions on microbenchmarks like this are not all that > surprising when a locking is slightly changed and the critical section > made shorter. I have seen that in the past already. I guess if it's multi process workload. The patch will give more chance to be scheduled out so TLB miss ratio would be bigger than old. I see it's natural trade-off for latency vs. performance so only thing I could think is just increase threshold from 32 to 64 or 128? > > That being said I would still love to get to bottom of this bug rather > than play with the lock duration by a magic. In other words > http://lkml.kernel.org/r/20190730125751.GS9330@dhcp22.suse.cz Yes, if we could remove mark_page_accessed there, it would be best. I added a commen in the thread.