Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6351850rwb; Tue, 22 Nov 2022 12:06:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf7t4RPFGgzrcrm80gfb+eSKp6lzpvbmWyhFgSbPMmAgdVZ6GZGVP+p13B9YdWomshyHgQQU X-Received: by 2002:a17:906:cd10:b0:7ad:c0e7:7a99 with SMTP id oz16-20020a170906cd1000b007adc0e77a99mr20055030ejb.689.1669147598432; Tue, 22 Nov 2022 12:06:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669147598; cv=none; d=google.com; s=arc-20160816; b=CzHPku04qWy3p9+PxRv24dosJdkyRVqOoepSI93ZiIw1gXHrISbPE8qnlvuSyYiXLO 2fTgsVn1UduAo87MgAmjhKzMo7RiN2H5ah/hHGPqM1axXuhfBfLZTF1IorL/Xg/OJnlt A2zUIfSF4uCxj+DK3AdP+BH4YGGY/EK+PtEzi74w0O5s5LTGQxpEOxt1fWulr7mFZAUe JRq7jv7dpSJYhYT+hOeVYx2mgLt2/d9To74qxexkXE8wmyicU7w8jOzPuw3I+Un0/+xT +NtS3u+ie7Yx9froPug2W6ILT9akAEJFHDQ0RjILeFhAOIJky8uMrMqNcdplwG4AHd9N 828Q== 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=fKEisOcCxxrkfHjW9WxsM8SkyONoJunCQr/mSNvg18w=; b=SJWtdVkaXB73/7Fw0MQHxBXZq0PVCyG0gnT/kMg4M7dgJiwQNZ5j0kcybgx7OJwooz 5Ac4VGQsuRNtAK3CA5u7Qx8v2X2FqvzhIP9K7m4ZqnPq1DFEJbxzrdWezbCC2eLkLjDK +/+xc2LwsNSDUH/RunYI7KdWiEhCwMxSaZO9s2GQ9mnDP6u5A1weiUFxtNfKjr7n5VWK jNbfCf0JqMOXFCFQxeqi7xbI7lHBZ+bSHwvZihCyy7+w6vRGmWCGyRryWpDG2+4N4JjH oMYtZh3+22Yce3VLzp9SPjJLlXNC8sYQHDlnRo4j/zDSRTdqHl33tDItIDQ3C5EiyWRW PLIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mv1vO6EV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk30-20020a1709077f9e00b0078da5f6ed9esi9564863ejc.779.2022.11.22.12.06.15; Tue, 22 Nov 2022 12:06:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mv1vO6EV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233871AbiKVTIw (ORCPT + 90 others); Tue, 22 Nov 2022 14:08:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234478AbiKVTIq (ORCPT ); Tue, 22 Nov 2022 14:08:46 -0500 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA0D97ECAE for ; Tue, 22 Nov 2022 11:08:44 -0800 (PST) Received: by mail-vs1-xe32.google.com with SMTP id d185so15443861vsd.0 for ; Tue, 22 Nov 2022 11:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fKEisOcCxxrkfHjW9WxsM8SkyONoJunCQr/mSNvg18w=; b=mv1vO6EVJFQHmOOPSto15ifvc0zcEe34ioOnM5MyYbCpS7QbKucnzT6UaTsnTf5CxU tWRPFwXHVHphMm1FODx/9niRsHYLf71qs0kMmREw/jSZ6idKI06kHWAGrIxinqsXv0c7 6p23QtcPBpkHBgWP+kblIIB3gaaUln2L40fy6NnWeLTTK9iMYhP730afCEVnW5dP6rcg jKUKEeHB78cVPoapdl1gSBPnSH2y/w2z+T4lmWO2jzVbFI0goi6foKF+0O/2xAypEKek +P4aw8o6DBuP73QHlRXdpjMD9Un3Va0nJmSBL44jF6Z7qOHnZPtkhTH8oK0ZIfGrkNni OASQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fKEisOcCxxrkfHjW9WxsM8SkyONoJunCQr/mSNvg18w=; b=fOBH8gdeCKlC9maxdMHo/zSS6Hh6jN4lPGkq/W3OIV9Dqxy4m1oFrAgzjJgrrAuuMO 2dQrLTq4GW/bUCQYckCzz5xsGtGk9r8xfNQeIvKd5UUacyNdthz6G5lmSJfBQANzoA3X 5bHg4A/TLmYL+g7snw1pSIAZ6lLGoJGufMH11vMapz4iUVJdl5ii1WBvy9K7kOHlnkh/ dxifkH/87he0bFoWuvePBCDj7DbVqGySr0UQBVI35wCFRSlwe8EYF7ZzVt6K7lThZzMU PHRmc41MBjgZVPC6/0jMrnrg1lD8d4vA0BArqFs5aL+nDYAWXOrPCkhYRNF2+r2bAkyM Kgcg== X-Gm-Message-State: ANoB5pkx7KyI7TsbRkK/rlKgxwNAIKXX4QDBvKOP6MFJajN8wIad0dyK uC2YgTNx4zjzOORkm4g3QDgrHHPg9y3ZfLb8eIi8qg== X-Received: by 2002:a67:fbd6:0:b0:3ac:38c7:1bdd with SMTP id o22-20020a67fbd6000000b003ac38c71bddmr4789726vsr.9.1669144123684; Tue, 22 Nov 2022 11:08:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Yu Zhao Date: Tue, 22 Nov 2022 12:08:07 -0700 Message-ID: Subject: Re: Low TCP throughput due to vmpressure with swap enabled To: Ivan Babrou Cc: Linux MM , Linux Kernel Network Developers , linux-kernel , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Eric Dumazet , "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Paolo Abeni , cgroups@vger.kernel.org, kernel-team Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 22, 2022 at 12:05 PM Ivan Babrou wrote: > > On Tue, Nov 22, 2022 at 10:59 AM Yu Zhao wrote: > > > > On Mon, Nov 21, 2022 at 5:53 PM Ivan Babrou wrote: > > > > > > Hello, > > > > > > We have observed a negative TCP throughput behavior from the following commit: > > > > > > * 8e8ae645249b mm: memcontrol: hook up vmpressure to socket pressure > > > > > > It landed back in 2016 in v4.5, so it's not exactly a new issue. > > > > > > The crux of the issue is that in some cases with swap present the > > > workload can be unfairly throttled in terms of TCP throughput. > > > > > > I am able to reproduce this issue in a VM locally on v6.1-rc6 with 8 > > > GiB of RAM with zram enabled. > > > > Hi Ivan, > > > > If it's not too much trouble, could you try again with the following? > > CONFIG_LRU_GEN=y > > CONFIG_LRU_GEN_ENABLED=y > > > > I haven't tried it myself. But I'll fix whatever doesn't work for you, > > since your team is on the top of my customer list :) > > We don't have it in production, since there we have 5.15 LTS (our > kernel team is testing v6.1). > > I do have it enabled in my VM running v6.1-rc6 where I was able to > replicate this, so it doesn't seem to help. Thanks. I'll look into this and get back to you.