Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2508529ybt; Tue, 16 Jun 2020 07:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIdneb6ELgpzkSs1dEb6KCnOHiqp5rcdAD/eJs3nZvTLjnmT2/WY/DALuNfCmvGYtggywu X-Received: by 2002:a05:6402:1b01:: with SMTP id by1mr2906042edb.20.1592319226352; Tue, 16 Jun 2020 07:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592319226; cv=none; d=google.com; s=arc-20160816; b=PI0d4Yicqtb5OWF2jIdkX6ENNu/r4COeFZF8TNWwKrFiDq468H/+jJMMhR6yByAW1o 5lPEOYR4yWI/5jq7vi5knx0UNWqk/QQYb5/UfuwV7FxzJPzivrp5Oef7GZF4GLO/v0cl ZdfzK+X4xnTQFPRa8h6o1uHLaRvV8zQvwEtdDhsax3gnP8p3WMGaeOe92BV5JadfJJFm lOG2Dbu5Zj+d3cT10mFFmUIHMPYdj4Bo1U0e/hMhzT67yrp4VykbOTnrrEEp2pMSJqiq F4RV3gv2dfs4lCDvmJmhE9Bw7mkplaWLbbUIwX2WnexRcuWsKH5oEDNTdim2dba9XKNA voSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WFLTgGJ5LOxQenKARdYfCrtk1t6VepdL6VzhUDlajMc=; b=GIwn/0CsnxGrgaj6qORdvQVuxZhv9x+WQmKUbG+O8uoTCtfx2FAbdIKDV+wXuUKPTW /n465QcMTbhN9krVYzySekHIibGUa5s3OoeP5iHbURZ25YZJruAq5Irh/UYYnu8PEC7R 2NiYn8UlV2Iufo95/+AEadztlaj6S97rsgd6sbWYIFAVxTgIzIZ95pop1frsgSz7TP1E BTUlLYkfGp0luyU4y6cAdap8z2fL2b6S9hM2VgubgTFsDmNH8c0ZLvdgyil/Wa04AR0J 9oKnj8qY79E0dWQlP+AXEF4EhXEx7gOKUjFTRmdNPMuNGmkL5uxluxooEwMQj3KeYWhs iu3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=Kts+k6eu; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si11323910ejj.247.2020.06.16.07.53.23; Tue, 16 Jun 2020 07:53:46 -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; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=Kts+k6eu; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729279AbgFPOvR (ORCPT + 99 others); Tue, 16 Jun 2020 10:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbgFPOvQ (ORCPT ); Tue, 16 Jun 2020 10:51:16 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF2E8C061573 for ; Tue, 16 Jun 2020 07:51:13 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id c185so19381061qke.7 for ; Tue, 16 Jun 2020 07:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WFLTgGJ5LOxQenKARdYfCrtk1t6VepdL6VzhUDlajMc=; b=Kts+k6euY5oLtf5tmwXRNFGUhGHWkdA7OewYzlqCFmqsO+oP0gOkY9veTjBzlWEVYl UORvYhTCJc2coOGYzHiOfO209HA2dXWViqq2uItkXW9GiBStJbWAuyqNnAzsi87QFenO tVsl5e/8qY72GrV51aSGSGpp84hSGPA9tqRgdswktLogXcOb/mrl/DivaUgypINt6eJC Pqh79vjuddjzhus+huIbYxGlzNM3acc/mdoRsswn+fU0cHTCXQ0FzIsresCNiQRRfdo/ e1LGh8lQMxzk4O9P8KReJAj6xsnscr8TBP1awTvFnHlZY5Y6XPgzfsP32D7wG+lIbvnw kxfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WFLTgGJ5LOxQenKARdYfCrtk1t6VepdL6VzhUDlajMc=; b=YagMvvKJwgZZ+YDkiKPRmbGHZpJNNvN3hO+PvTy4BXGSvqdk5UXNDCDAkw8y+AExXO mZt6crl3xpn/8Lq4d2VXSPyXbh0bwsB4Oij1glmmYlZ/dtZCSiEk6ujKjBMVowSqTTWW fg8jlrwua0GpHuB9iQyk6UIb7jGrf9i4IkTHEnMsk0Q03mRLu6itztD1n6NxtLSnrxA2 6pcvpppFvhdoWCiWcChthjMOGj0z+i2LHIO7+4+2HuvTmfPGdHcjmKSI8iJ+HNnayoiA IVYJF5TzMMmNB4yQ8NfqeBB4Ja+jfxgQO8xByJxf4/txd+OOJF4RFzSyzj/Q9qbVH3Cj QmGA== X-Gm-Message-State: AOAM533gC7CiITs8kp+Nnv4Jk1Aj/Gz7d0Wx2RMPdzf2TEtb3ZfQjRWj Azu7M+gSYNNvCMpY7xm5efP8SQ== X-Received: by 2002:a05:620a:1114:: with SMTP id o20mr21147059qkk.120.1592319073084; Tue, 16 Jun 2020 07:51:13 -0700 (PDT) Received: from localhost (70.44.39.90.res-cmts.bus.ptd.net. [70.44.39.90]) by smtp.gmail.com with ESMTPSA id z19sm16357992qtz.81.2020.06.16.07.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 07:51:12 -0700 (PDT) Date: Tue, 16 Jun 2020 10:50:35 -0400 From: Johannes Weiner To: js1304@gmail.com Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Rik van Riel , Minchan Kim , Michal Hocko , kernel-team@lge.com, Joonsoo Kim Subject: Re: [PATCH for v5.8 3/3] mm/memory: fix IO cost for anonymous page Message-ID: <20200616145035.GC616830@cmpxchg.org> References: <1592288204-27734-1-git-send-email-iamjoonsoo.kim@lge.com> <1592288204-27734-4-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592288204-27734-4-git-send-email-iamjoonsoo.kim@lge.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 16, 2020 at 03:16:44PM +0900, js1304@gmail.com wrote: > From: Joonsoo Kim > > With synchronous IO swap device, swap-in is directly handled in fault > code. Since IO cost notation isn't added there, with synchronous IO swap > device, LRU balancing could be wrongly biased. Fix it to count it > in fault code. > > Signed-off-by: Joonsoo Kim Acked-by: Johannes Weiner