Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6307547rwb; Tue, 22 Nov 2022 11:26:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4bGmICnG0meg+YLY9pW7cKmCyCx4012Al3wsWrfD7rbC4g5Z/aZrIvGSQk/3zXPMc7dcTg X-Received: by 2002:a17:902:c38a:b0:189:393d:85eb with SMTP id g10-20020a170902c38a00b00189393d85ebmr2425268plg.37.1669145167794; Tue, 22 Nov 2022 11:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669145167; cv=none; d=google.com; s=arc-20160816; b=Gu4G1GZKR49a8GNJ+LQYba8j3aXjCbH4xRUMeLOf8u2IanN7Pm2xfmzzXzkdy6K8+O 4B/QlxzLDPFg/eM4ftcgV1jq5hRlPhC16IKnRxaYtZX5ah4+kRWMO+7cQ2nrvZuyYIq8 CnSlRej8QoFFFX2ky+QlBaegcDt14IzfSS1aoTLiGJ3jUveEIbzfGXTH3oE6A8asq+dX dJIsq0Dyrhi2a5fdLtNCSvac7XkxU7pNOzWoDFj9/7wNYYQlhvGpYzfbjIWloSdZ2F+C lj68UYewqCzZ4bQY5GwaEgLVnG0/v/3Ma02SOwXNo8A0ui1on9Al5lIepiAUPlPksVKS szaA== 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=9DTsq3fTwNbT6i34craZmfTRExedmDHXASu4ap4JQWc=; b=woyMsI0i3llFZxEIl00jeck5LHXocDNu0NW9UyFIvSQld24m5c/xucGPlRrrTYNM+O iuGjZsmgMIIG+bpmBlRjy3WDyi2phOO5jdBBk7slNQdYNDC7YD4xjKZLGajBg/JyPaqq hUovftAqhEbQKFkiR1UXp9N7HvdEB0h19ect+RfnP0nImAjeJ2NCWJW1oZn0hbyEVE9B 1Z0LUcu7kzkQ1crs3pNN83VK4BTeY72PVvL5oMOlmhUfwBlJnlBzx4+8esAJUXnsWhhJ PFps/4/Og/E7I6NIbKwx0LcI8NW3vTBANVa84KQt7GgLXtnNyFjnURRk7Hy53Pv0xkUm RJGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="euKH/+vJ"; 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 j13-20020a056a00174d00b0053b36138dc5si16614186pfc.222.2022.11.22.11.25.56; Tue, 22 Nov 2022 11:26:07 -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="euKH/+vJ"; 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 S232341AbiKVTAA (ORCPT + 91 others); Tue, 22 Nov 2022 14:00:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbiKVS75 (ORCPT ); Tue, 22 Nov 2022 13:59:57 -0500 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C056AE66 for ; Tue, 22 Nov 2022 10:59:56 -0800 (PST) Received: by mail-vs1-xe2f.google.com with SMTP id p4so15358490vsa.11 for ; Tue, 22 Nov 2022 10:59:56 -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=9DTsq3fTwNbT6i34craZmfTRExedmDHXASu4ap4JQWc=; b=euKH/+vJIk4jb5GYcwTIndpZtGrvZkOBeSQRk87xMjmZTH+RQ1pCNwnXJLB8r/oQO0 x4NbvARykKT5UQRTYNFqc4c4y2HLtlQ0gwBrOUmgIYxYGKBvSsLiYFxxHey3fT3w/9Vj HOQ7Qj5hpRKUloDQyonDJ8F2dOblLZMmhxyUfbRFBcyPMZ2uFWy1Izg4UvFn7gsqx2n1 ym1wloPvHbcVO13o21Vg+S93Kbo51YjBNfIYA2HBOkKEPJ/Z6SJ4/BP/QvHgGdHCxwvD QGOm47FEhjAWZAXMx2WhoKZKfiBjRMtZfj9QV6t+NhIB5xXw6qp1E8JC0TJGvherHUzh c4Uw== 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=9DTsq3fTwNbT6i34craZmfTRExedmDHXASu4ap4JQWc=; b=ZRSH6u8IA1hsO38wVYV/jc0a13nKjuEZFpeFhcXlb8l0TvOOm+vAKhiD2hrAF9mUuf uWgomsKP2yq7GmKZeaQCBsD5wJxMRvfjJ0iaF1Sp/t5MxQhJWWe9MZvBQ/1CItZ0LVGw t6A+rxLjfZmWjLquwfxkHVxgUk/1kkX9RIDpxgtDMPtmbDdAv9p1d+YRZbJOu1we/LNL lWjUrIvaNzwVxjXjwffoizUGmSzB2yF4Ypz69ZovOZ0ywCSfAhYfK9cc319ke+ZSNpPw H5zvUXHihEq4ZF3WkOxT+KGftvePVUh5+/9Ke+hW89FNIWNi7kIMfVsHD9anVD2m0bnd ODNg== X-Gm-Message-State: ANoB5pmZvVNELfdgGgotMMDj1NhcctK+jnHv/V2wH8jvZasyK0uhAPNF 1a3pmWceFN9Sni51UiPm/oApl3GdwBJs9KPklm1Ddg== X-Received: by 2002:a67:f8d4:0:b0:3aa:1a3a:6447 with SMTP id c20-20020a67f8d4000000b003aa1a3a6447mr4323889vsp.50.1669143595264; Tue, 22 Nov 2022 10:59:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Yu Zhao Date: Tue, 22 Nov 2022 11:59:18 -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=ham 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 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 :) Thanks.