Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp177593ybz; Thu, 16 Apr 2020 22:20:04 -0700 (PDT) X-Google-Smtp-Source: APiQypJI3OaLgqoSvBuJwgE8FMVC1lo6YdG17wI/e8AWAvVn3awg17EA29diKsgZgL9GdiVioqvu X-Received: by 2002:a17:906:2511:: with SMTP id i17mr1405103ejb.165.1587100804057; Thu, 16 Apr 2020 22:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587100804; cv=none; d=google.com; s=arc-20160816; b=n4nuz+vXXwTHUd56DkGNn8Cvu34S3pG0R9nA82EU4XtoAZ81IlJ6ZGyzn5K2g7uyax D7BSe8lFuVPeDrak3halIjp0nlcBP8qcYxqGYY+M7Q+5SYZrRf0eI6bEgpC5OzD/mP+W SsPTBv/H1K+eIFexZtOCdkmY3kLQL9VykwyousrDjtnIze8GWCGQaqPtj++NwSg+1NdV Yww/h69WjYzHWC/TcWYi2m3XKnjYIsCIVPj7n6hdqD1tlQMlsyp/lWv8OpbmXs7fYe9f NM6HsgQG6McI+L9jYSs0L9AUOc4CFYXW1u4QkaMK33akYsvKUr4412cEJGStEuFRZojr HmhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=XWeg2Hm4aAFjF+dETXv63fKeqrt4kr0WfBHfdecDeaM=; b=iXXiPHy1EK9O6Yd/txtZ7RP9pSUo5rXU3/C/fhH+LjdXh5C5sid8L/yM3mLj7j9i1S n37nsk2t/o0avMSDQ6GK718iHlLlaczhuE28Mv4PAKB0VitncEfbQ/18joLsi/8bHT6s pl6TPVK42gcTi7JGt8temkS8M6FZCSv5oqFdl0TozRqIsgT3drwLU5oGypzEQNClk+/u eCxxfQCVnXQhiCHfV29s2ztwUtm+alHFWR8z/3/5tSzjHdKyWAtJX1iLUotjrUjaE3y7 00TNlKx1dhuYa2zHmv8elFdCPJ1rEnkdHqfr4uJiypHocS5vaOeDO+WKr2Q1cDAI7CAv BkGQ== 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 8si13860962ejw.151.2020.04.16.22.19.40; Thu, 16 Apr 2020 22:20:04 -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 S1726720AbgDQFSk (ORCPT + 99 others); Fri, 17 Apr 2020 01:18:40 -0400 Received: from mga07.intel.com ([134.134.136.100]:12615 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbgDQFSk (ORCPT ); Fri, 17 Apr 2020 01:18:40 -0400 IronPort-SDR: /rGaqSomH6JQ5IaYpGBV+w2iwUE5gVD3OvTPRLnQFMEJV6NETE1SBaCWV2BBFf5HGTquhCPx5F FDRkn1f4EEHQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 22:18:39 -0700 IronPort-SDR: +8q+macfzoj/N2yw0IIxmAGyRLpsfCjBnl+JlEA8LbLjUnvsb5Yf0/G791k12W+LlekB2AY143 QV1s76f9+Z8A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,393,1580803200"; d="scan'208";a="454603579" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.159.23]) by fmsmga005.fm.intel.com with ESMTP; 16 Apr 2020 22:18:38 -0700 From: "Huang\, Ying" To: Andrew Morton Cc: Andrea Righi , Minchan Kim , Anchal Agarwal , , Subject: Re: [PATCH v3] mm: swap: properly update readahead statistics in unuse_pte_range() References: <20200416180132.GB3352@xps-13> <871romvmrh.fsf@yhuang-dev.intel.com> <20200416210646.774bae8c321e3a44d6ffa8c3@linux-foundation.org> Date: Fri, 17 Apr 2020 13:18:37 +0800 In-Reply-To: <20200416210646.774bae8c321e3a44d6ffa8c3@linux-foundation.org> (Andrew Morton's message of "Thu, 16 Apr 2020 21:06:46 -0700") Message-ID: <87sgh2u1ua.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew Morton writes: > On Fri, 17 Apr 2020 11:01:22 +0800 "Huang\, Ying" wrote: > >> Andrea Righi writes: >> >> > In unuse_pte_range() we blindly swap-in pages without checking if the >> > swap entry is already present in the swap cache. >> > >> > By doing this, the hit/miss ratio used by the swap readahead heuristic >> > is not properly updated and this leads to non-optimal performance during >> > swapoff. >> >> It's more important to describe why we need this patch in the patch >> description. So, please add some information about your use case. And >> please focus on the technical part instead of the business part. > > Confused. I thought the changelog was quite good. If "business part" > means "end user effect of the patch" then that's a very important > thing. Previously, Andrea has described their use case in the cloud environment to hiberate the guest and swapoff after resuming. So swapoff performance is important for them. I think that should be included. For the business part, I mean something like "Ubuntu used in AWS EC2", I think that isn't important for the patch description. >> Thanks! But you don't need to do this. You can add my Reviewed-by after >> we have finished the work on patch description. > > Can you be more specific about how you want this changed? Please use Reviewed-by: "Huang, Ying" Best Regards, Huang, Ying