Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1063552pxt; Fri, 6 Aug 2021 23:17:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztTPUVVTEs670QZyFyG+YoUSGsgmyuOoAh9vkoC6lvEzJvHOIro5Eo0FbLPWi/aPkYeC9X X-Received: by 2002:a17:907:1006:: with SMTP id ox6mr13423068ejb.476.1628317027694; Fri, 06 Aug 2021 23:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628317027; cv=none; d=google.com; s=arc-20160816; b=mqE8q7t1o/seblcXspY916BqANcMcAo76bpRDxsyvmwiMuCrVs7VIkG1zQ+fg6PTtf V7ZmC8NpQUC8s08ED56wQltYCoUjVpM/fLky409tt1Bwv5Xnbfu0k29WvegMQx+W64OQ HQaC6/5+a2mCMek4AxYHhQ6chb9iUeBRKSGihVSapd+hu6p2KJlMhkb2Ch1P4RdPc/ty 3PkAdmAwjTdL1E6nejl9rID3Rp+yxkcXpNd5VUbVNLnaOAZ98h7xWdPf0yd99jOltAFJ TP262SD5Rk7AlfUAmvb+J5pKg+lpg4x/6Xw19CzO6C6n9u6tercBiPWrv9KONUh5Mzlk 8BXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=xMUM3Joe8wRyb4pyCNq3gbftK3L6gOankrzZjFDgKPI=; b=kWmj9rrHt+FZURYoMW5E9QdwJKeHcmhhjmtqw5We8IQyQU4ZBejI5jtivdnSo5RIX5 gTIwi5t94J8xqzf2jLZmtPMWnLp+IqgizmWJjnIZsEP3N8EtpmcF5jyddglShVbTqqms katI5/x5KsxRaBoWuhwNfFfEQn+naILP8tS7T8GvzM4ptCjXr7h5PJhFRvTrnkefE6ya aII3u+jElc8v/BkwHQgN06blzo/2fYuA1MxYhaP0vcIJ+Gi6M++hFffGtPiiSIkEaPp9 mGncxcruELPeg0LLq/9Qor8/2cyaU1WsQHyNts9J9D81Oje+8fPrPC+RYiLqgFIuuIDK Wq8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inbox.lv header.s=30062014 header.b=AQZNnGoA; 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=QUARANTINE sp=NONE dis=NONE) header.from=inbox.lv Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si12021306ejb.599.2021.08.06.23.16.32; Fri, 06 Aug 2021 23:17:07 -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=@inbox.lv header.s=30062014 header.b=AQZNnGoA; 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=QUARANTINE sp=NONE dis=NONE) header.from=inbox.lv Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbhHGGPI (ORCPT + 99 others); Sat, 7 Aug 2021 02:15:08 -0400 Received: from shark3.inbox.lv ([194.152.32.83]:47138 "EHLO shark3.inbox.lv" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbhHGGPI (ORCPT ); Sat, 7 Aug 2021 02:15:08 -0400 Received: from shark3.inbox.lv (localhost [127.0.0.1]) by shark3-out.inbox.lv (Postfix) with ESMTP id 4860C2800E0; Sat, 7 Aug 2021 09:14:50 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=inbox.lv; s=30062014; t=1628316890; bh=Ptap/6l1yZ7EnO/jIDCw2RESpsUNpoGTIwGUz06W0Gc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=AQZNnGoAhYTSW2QNsWn0dhCY5G07WVDq7EPHtiwwi0KpvM5yo+c5zQd/8nQk/yLd4 g1hhkUqltPaNIXvVnlbB41RmZhQq+U1o+iZ0yVv9OCBbS/VcRMmWZxhzSA+sCuG9hr q5BwtI1NSCIJ49AJ/e79rzXxPHliPRx8T5G6oJj0= Received: from localhost (localhost [127.0.0.1]) by shark3-in.inbox.lv (Postfix) with ESMTP id 424A12800F5; Sat, 7 Aug 2021 09:14:50 +0300 (EEST) Received: from shark3.inbox.lv ([127.0.0.1]) by localhost (shark3.inbox.lv [127.0.0.1]) (spamfilter, port 35) with ESMTP id 7kLTAMNmrYQB; Sat, 7 Aug 2021 09:14:50 +0300 (EEST) Received: from mail.inbox.lv (pop1 [127.0.0.1]) by shark3-in.inbox.lv (Postfix) with ESMTP id 0F0412800E0; Sat, 7 Aug 2021 09:14:50 +0300 (EEST) Received: from mail.inbox.lv (unknown [79.105.9.99]) (Authenticated sender: hakavlad@inbox.lv) by mail.inbox.lv (Postfix) with ESMTPA id A4E043E6019B; Sat, 7 Aug 2021 09:14:47 +0300 (EEST) Date: Sat, 7 Aug 2021 15:14:24 +0900 From: Alexey Avramov To: Nico Pache Cc: linux-mm@kvack.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, hannes@cmpxchg.org, aquini@redhat.com, shakeelb@google.com, llong@redhat.com Subject: Re: [PATCH v2] vm_swappiness=0 should still try to avoid swapping anon memory Message-ID: <20210807151424.76b4ee3a@mail.inbox.lv> In-Reply-To: <20210807022129.8842-1-npache@redhat.com> References: <20210807022129.8842-1-npache@redhat.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: OK X-ESPOL: EZeEAiZdhRsytcG4Kodl4OvixdOvJSku30Lmt9097ntHt7PErddreWaJeffiER4= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >vm_swappiness=0 should still try to avoid swapping anon memory Swapping with swappiness=0 depends on vm.watermark_scale_factor. Decrease vm.watermark_scale_factor to avoid swapping and get OOM, and increase vm.watermark_scale_factor to get successful swapping even with swappiness=0. Maybe I misunderstood you and you are solving some new problem?