Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3757070ybt; Sun, 5 Jul 2020 06:01:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpv1fILDGp/b0jBMOKS4draxebgGvKFplrJEoA/TMuUlTe4jcPHs6pi6N8a6U9gSLS05bs X-Received: by 2002:a50:b5e3:: with SMTP id a90mr11896958ede.381.1593954111993; Sun, 05 Jul 2020 06:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593954111; cv=none; d=google.com; s=arc-20160816; b=yQ9fVVjJPW4je1Nh93/DVqvGhJfTuD2WQgRWWWZeH/mynmC8xGc/d+ri24ThPF8uCB GTYqdwRhwadwLAyaimdDHCU0j9xfolGQIlJKFCzfH72pw9wn72iWMEwXDhjeZj0M2sB0 zY9lwGPrn120j3v1tRRVLVEKsq6u3Qhh2EC0S8wudWEz7zKKFA07/lXgVxWhGVUKGfp4 tYdHRn2R5RAemX/vueWapjVfPgLiKJnuYhKGjqCxSOzD1kruWxMiMghEn6O+3Ux82LUA ovzTv+YYRbc2M+Roynf2p19lFHpvk0P/Peyeoi93RoeSmRZ1ksOyxKmjhW/zbc+/TFOm xBMg== 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:ironport-sdr:ironport-sdr; bh=mI3vGLjYflIWKGQz4/wLGmszm3VnQ/21XVD88F5Zih0=; b=d+eycS3tMdHY3TwURq1TEVD9VDCidZH01fKGCYPIQXjL38N9yiTQEWUylaPuZfYt0d vy7LVEzKtbscZTUI5yFB/i52SVn9ZOqy1hYjo4LmwOMm9zs3ZJ4KMCUW8pdBkn0ZisjN IWA11ijk+WQaF/PPPZJter/V8PrVZZItGPcnvGRh6qJrapsm/QofQ6Z6MMYj/cHzXz8b Gqydc6XWThrsqZgtNtQZUeQCCuLhx2vQ5YrMGVQyoXIXHLAUTWmo4EgAkgxgVVMXdP9P EI5u/85sQCdxlX7m4q6cUWYvIsu7qi3DQfb70sDuvgOseMypePa8w4Oc92gd7jdR0mNp r0bA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs10si10910210edb.548.2020.07.05.06.01.29; Sun, 05 Jul 2020 06:01:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727051AbgGEM7D (ORCPT + 99 others); Sun, 5 Jul 2020 08:59:03 -0400 Received: from mga11.intel.com ([192.55.52.93]:50378 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbgGEM7A (ORCPT ); Sun, 5 Jul 2020 08:59:00 -0400 IronPort-SDR: xcYtSbfWxKcK7yhbnb/dGmuEAe30AHDtEsh2/9n8mKa7cfi/lzKimJwqv0kzFGO60OBA3BGlaI LfC3AnJKc+xQ== X-IronPort-AV: E=McAfee;i="6000,8403,9672"; a="145424684" X-IronPort-AV: E=Sophos;i="5.75,316,1589266800"; d="scan'208";a="145424684" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2020 05:58:59 -0700 IronPort-SDR: OeUWEir2wMUVDpL1KgIbZoJz3NKkIave0HxqjfxLXRQ0+GCxHjhVAdNJEqhDR/DfvM3UFqk4Ik mhzsftua3R1w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,316,1589266800"; d="scan'208";a="456398582" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.146.107]) by orsmga005.jf.intel.com with ESMTP; 05 Jul 2020 05:58:55 -0700 Date: Sun, 5 Jul 2020 20:58:54 +0800 From: Feng Tang To: Qian Cai Cc: kernel test robot , Andrew Morton , Michal Hocko , Johannes Weiner , Matthew Wilcox , Mel Gorman , Kees Cook , Luis Chamberlain , Iurii Zaikin , andi.kleen@intel.com, tim.c.chen@intel.com, dave.hansen@intel.com, ying.huang@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, lkp@lists.01.org Subject: Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail Message-ID: <20200705125854.GA66252@shbuild999.sh.intel.com> References: <20200705044454.GA90533@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 05, 2020 at 08:15:03AM -0400, Qian Cai wrote: > > > > On Jul 5, 2020, at 12:45 AM, Feng Tang wrote: > > > > I did reproduce the problem, and from the debugging, this should > > be the same root cause as lore.kernel.org/lkml/20200526181459.GD991@lca.pw/ > > that loosing the batch cause some accuracy problem, and the solution of > > adding some sync is still needed, which is dicussed in > > Well, before taking any of those patches now to fix the regression, we will need some performance data first. If it turned out the original performance gain is no longer relevant anymore due to this regression fix on top, it is best to drop this patchset and restore that VM_WARN_ONCE, so you can retry later once you found a better way to optimize. The fix of adding sync only happens when the memory policy is being changed to OVERCOMMIT_NEVER, which is not a frequent operation in normal cases. For the performance improvment data both in commit log and 0day report https://lore.kernel.org/lkml/20200622132548.GS5535@shao2-debian/ it is for the will-it-scale's mmap testcase, which will not runtime change memory overcommit policy, so the data should be still valid with this fix. Thanks, Feng