Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6365463rwb; Tue, 22 Nov 2022 12:18:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf69FTv4jAhwIFQCX5PzimPmK9zHFEtYk/FaEl3z4Mi43P/9fjLBP+VwIeQ95IfYkLPUyY86 X-Received: by 2002:a17:907:50a2:b0:7ad:a34f:1efe with SMTP id fv34-20020a17090750a200b007ada34f1efemr21085246ejc.350.1669148280997; Tue, 22 Nov 2022 12:18:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669148280; cv=none; d=google.com; s=arc-20160816; b=rbi7Aah0jGvpjgswF4gPftk9vQEDUcFtAgAet4rlDq8bScpDGSSrwSJsghhgy9Utki zin4JGFYMJNVKrfkIQK5+vLAxvgG71RAJDLSuRhsdFDec3kNXrrFfm0q+IuuWqyZ9I19 tMhGUUcflKsmPykE711pjHyNxg2oniX+D5KmGm1pdtmxJQ8xVH/x5xynqw9Bp/KgUIM9 Ws5BbR74//uGZQObP9DQeqpi6U4YFZVFv9rQ8+laSE5vmuu/2Lxv3Sjh4mk/ypa30E0L LIzNr+gpPjjl02dr/1eXa9YOGRiQbzl9CnPgIOSYh6syE9mWlodVdM7W1DsZMTEwhNBb q35g== 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=UH8CULqws8EURCcGLdD3MqO4szk6ZDfTwbWJ1BRasAg=; b=z3D2lLf7hAUk281JDYHv+7Rf3Uk1wagqCKD6XcTi+UhUqYnbQn/lBc87u6AhLXNeNk hpbRDQGxq0+rX12hd4Wo0ir7ZHGTUAp2FHBuz1fzm6srY/0sqdQZtqtpC9piyEksvhaz MB+RiPnULKoo7lET1hYlsaheVJPf/DPPmGdJaU3gK7OSzfzH+IzgjXm7Ve3qBSg+8Mmh YTj4HRjAs68EEMC2uk4Q1Zc4bMjzsLAHYggoQhv4o+K2MEbN84WXkbrxDUFUFo5tbUYW JGby022TkRgzr/TZkzBy5b4QWQJHivfqYNUOM+pI81eklLpVes+S7cF+hV4dPgW9qA3d AsPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b="aHU/4rTL"; 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=cloudflare.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a1709064ac100b00781dbee4273si7158534ejt.514.2022.11.22.12.17.35; Tue, 22 Nov 2022 12:18:00 -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=@cloudflare.com header.s=google header.b="aHU/4rTL"; 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=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234722AbiKVTGg (ORCPT + 90 others); Tue, 22 Nov 2022 14:06:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234759AbiKVTGQ (ORCPT ); Tue, 22 Nov 2022 14:06:16 -0500 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD9008CFFB for ; Tue, 22 Nov 2022 11:05:57 -0800 (PST) Received: by mail-yb1-xb2b.google.com with SMTP id y83so1854335yby.12 for ; Tue, 22 Nov 2022 11:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UH8CULqws8EURCcGLdD3MqO4szk6ZDfTwbWJ1BRasAg=; b=aHU/4rTLIP2Roaj3oaDqTP6BsSgt/v+o233yVnztvkFamUnTqO8lqNGVxX/atHUwpT 0pwGoQ2WKh6tm6+rl6WR91tXJ/1tcpEPv3HIXZCPN6kJbNQzq6rIT91BX3dv+tQCuXjy BMucSc5zV6VYfU/4Qe5UZ0aJpEz7PT7LlfCmc= 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=UH8CULqws8EURCcGLdD3MqO4szk6ZDfTwbWJ1BRasAg=; b=pfggOrQFqAlIwuaElxf6x6tXeV74z3ReFJf2DuVS3yohXH1RW3dDHSnTVLcRgSyrVX 5ZzOpjOetrCW3bC9IlGbdjvZbGk5Uaf7KdojBZuomaR8btFXRVKpR+Frwb0MYZF/i2aY eRd0jLhSXEnCsYSQQO/Cy6GPQk3qWAaunUFjim0lXOKl4r1DBIuGfKN31Npb3i2efB5F +UyOUUcyENAS5BaD6Ft7BhYo2eEgFvO5xEKFQYWCggbNoYw4Pid12IIQDX6WWHXu66sX JjJQIqpwVPy8bF1siYWb1OxUQK2ghWK4uqABkb4/WU8i3xjeSF02qaNdj8hSkkXy2n3W G+hg== X-Gm-Message-State: ANoB5pnIyZKyg6zVO5Q//yUj4NRbZum/p1hV0+fA35bqFOd+kBTffrSW UN2dGAKNv5EmpEX/JisBJXgiulXU6E1w6ZUaBg7it7AMl07rsg== X-Received: by 2002:a25:1a57:0:b0:6ca:468d:18fe with SMTP id a84-20020a251a57000000b006ca468d18femr5482863yba.224.1669143956921; Tue, 22 Nov 2022 11:05:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ivan Babrou Date: Tue, 22 Nov 2022 11:05:46 -0800 Message-ID: Subject: Re: Low TCP throughput due to vmpressure with swap enabled To: Yu Zhao 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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 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.