Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2613007pxb; Sun, 17 Oct 2021 20:30:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2afsUkr5FythawMVweMWkTjSDPzW9KlZW9S4tnSdLjovekl9oQzoxHXX1zjBgqipSu7gb X-Received: by 2002:a17:902:9b8a:b0:13f:c286:a060 with SMTP id y10-20020a1709029b8a00b0013fc286a060mr1689927plp.66.1634527844583; Sun, 17 Oct 2021 20:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634527844; cv=none; d=google.com; s=arc-20160816; b=jkAwxF3rN1z4aVrCAWM9CikrgpNW1VQsxuXZlspSRLI/QhXmn71lDI6BxH80jtJ3yD olYpFRATHRH2QAQIVv5GelBMLAXzKf+o+ZeFK1YgCd41rjTfRXpgDwRWDlerEBVtlC+J H1QLwfQkloGNzTrkQX4Vb/3eRB+ahYeHnWSIEzr3iWe4/ASiAMTBPEbXaKBCmS0F2M2x lUsGLT/Wn4SYWB/GM/DF6PotQLMWScMQ7WFgIWaCna5s+3e+TF1KWJVq+hdOohTLq0br P7qn0UZS5hLk3d1JkNNTJQlTpJyspbObrUxcVD8kE7C6UrSFawhEReYI78Wwzq2mSU/5 Z1EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qBtpU0NGPIyDBRgcGwvLgPN1ll4gwJNEf+HjL9X73VA=; b=HL0LzqvMr2RYgSeM8TukB1+clQTlhM00lMcuzTKcDC2L+bOHB1Q25p01R/txhGcijU WCd6qeM92EvtBetgPT5ldr6OKzkLEGSi/fATw0Sf463s2fFh5Etbqb8+xldeWM21M8PO VdUuDLagZy/ppq9y4Ng+ZHfQrv/VRLNkYLEeWma2HGk3K4DbFfMTbAAXNAFsuTCt3UEI kYInXI7vXCUf10Td60BnV6eOdCJdlsVlofXaP3jZAPKAoIyCS/zyRNn+FJIgaZIDJuud DEoXdVhjqPSOP8ewzmtTZWrfQahhkja7ePakxh445him1pTCKKzUSgYsHIs7x0yaRLD3 wT+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Svky82E+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z8si23354763pgi.213.2021.10.17.20.30.32; Sun, 17 Oct 2021 20:30:44 -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=@gmail.com header.s=20210112 header.b=Svky82E+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239878AbhJPIUK (ORCPT + 98 others); Sat, 16 Oct 2021 04:20:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234696AbhJPIUJ (ORCPT ); Sat, 16 Oct 2021 04:20:09 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6CADC061570 for ; Sat, 16 Oct 2021 01:18:01 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id r15so10667573qkp.8 for ; Sat, 16 Oct 2021 01:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qBtpU0NGPIyDBRgcGwvLgPN1ll4gwJNEf+HjL9X73VA=; b=Svky82E+cm9/m7Rm3TkkYcCfLhrwFCLYape5s/vX7y1SArchGjSrpVdR4u04WcjJHC dxIV4TSQOFdrhl3b8UoWWEhlDceZy9zDEcSgxFKgo/5/TDJLazI+9oIPm15vCEHSW/W0 SPBI9BaeJ19e76aD/8agQF5wpyuPazOJbgu5RYbImd2UYIIvMXAA+e40dUrMH+ddholE bTp7J/IC7sw5oFglWoz64qD/011k1dzblixGkjH029lC/SI5fGqTmi6Hv5cj6iTadLhQ N8sN+asP+7vNqwxsXJJsqdhQlASS8S7F92xIUF7j7PYO9ADYbxvt6k8ky/Jq97FRzrZh cHdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qBtpU0NGPIyDBRgcGwvLgPN1ll4gwJNEf+HjL9X73VA=; b=YFqDmZL1k9y39nMrn+9pu6Up772HxEeEoJGGIcXANabAa9ZrepNkLIX9EsBdxm1Z0l D8aUFV3WxgOMS15/0X/3u7EhEsrUthF3dl22MXSjZcWbfVvfc1u61wlMMNCFZ/ZGo/0G jdLkaIy9djDMAFvxvnl+mOAAP+zEfMSzRxPTrciUdvECZDBbLvdC1xIsopQCHPksrQfD cmeCXc15QJYXjcJcVd52Fxfm62q1E8hqFge3esNckS4CLmebAFC8vT5qQls9MJlR9ok1 7CkFzUcma60u1SA4IYYDwftijYYzJTVAzD1Gv1hLc0E1GSI3OIm55iUgaYqTucPMLt6Z xzgw== X-Gm-Message-State: AOAM533FI049Z5MFlJ0RyBqo6xCEV8oNqhGMz2Pdj8UyFcFE2zmuwN/6 4WR7t7kT2i7SodSlRr9MrTNbHN1Jtia/q3BfUO8= X-Received: by 2002:a37:643:: with SMTP id 64mr13573728qkg.412.1634372280989; Sat, 16 Oct 2021 01:18:00 -0700 (PDT) MIME-Version: 1.0 References: <1634278529-16983-1-git-send-email-huangzhaoyang@gmail.com> <20211015130035.aacc18a4d1ee141b306c2272@linux-foundation.org> In-Reply-To: From: Zhaoyang Huang Date: Sat, 16 Oct 2021 16:17:39 +0800 Message-ID: Subject: Re: [PATCH] mm: skip current when memcg reclaim To: Matthew Wilcox Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Vladimir Davydov , Zhaoyang Huang , "open list:MEMORY MANAGEMENT" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 16, 2021 at 11:06 AM Matthew Wilcox wrote: > > On Fri, Oct 15, 2021 at 01:00:35PM -0700, Andrew Morton wrote: > > On Fri, 15 Oct 2021 14:15:29 +0800 Huangzhaoyang wrote: > > > > > From: Zhaoyang Huang > > > > > > Sibling thread of the same process could refault the reclaimed pages > > > in the same time, which would be typical in None global reclaim and > > > introduce thrashing. > > > > "None" -> "node", I assume? > > I think that's "non-global", ie memcg based. It is exactly what I mean. memcg based reclaim could be worse for page thrashing.