From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C70E3CFF77 for ; Wed, 8 Jul 2026 19:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783537263; cv=none; b=PIvQq3Q1uAWWMK/5vaZx8bMZycMfAZITxqfhWEFnUqZUosEvm4ynTndpg4Tiy9hMO/WHiDf20pJuLOP6Uwl9wUFCOx9lpG8cRq7UeQd9Q/qZ7v6sA40Gr3nGVHEcwXnR+ve6/KtPin2n/YiwoYQ+EybInODRmeyZrMdTx+DAn98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783537263; c=relaxed/simple; bh=k3eMYQ2fgWM9eul1MhvdVNq2qZnIJPst3WSiSXllEgI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cuiuLg2kVYUre9jq4JSkz4aIbPc0Xszb+ZFGYKCPPlT1U/COq1gncL62SAFRqmHZTU/Lwq5gjmlY6xNCbmyv6tzDuIDdixr4DrHF4lsDtZBGYooyJerl/JAQ3lEQOtn2iwET2mmPiViZ2OQseKOOmSGdx7r39rU+7CopwhopOK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Oo3BT/bv; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Oo3BT/bv" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-493bfe9f886so5619105e9.0 for ; Wed, 08 Jul 2026 12:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783537256; x=1784142056; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=k3eMYQ2fgWM9eul1MhvdVNq2qZnIJPst3WSiSXllEgI=; b=Oo3BT/bvj/qIG5mtfWfiQM3aeUvzunXLkokRypDNrXYrVFgWl8KpL9+zFOpdo0dPYT yI7/mUEWcuc7Chk0NvyyCZXcXQ9CtL9Jd0xmjgogqapx71ybuogyUFCypb+y8w7z5wkt UaXwwTxZ+EZnKS18+rVzyQXsX0fiJqo9Vyn1Ov/rn3ZTH1JlorNCzErGIQ3NF6NnJisd h2o1t4ZBr+8HdQVwVlLmmVBWRatxoUzUzQWETcrwYKIOA9luh+R393ozJjoW6dS+n73d YUKU0DSM6He72hA8nEmp3/cZl3vtu547tA0K1lDuC+j3/4P5hbnf/sgV70j2ZLZ1NEli hBnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783537256; x=1784142056; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=k3eMYQ2fgWM9eul1MhvdVNq2qZnIJPst3WSiSXllEgI=; b=mVUDKD4hkSptCKxhS08pegsEsm4XC46TNG3eIneegYnhYD8NroFcTvTVpYlvPPu5pR 098EmeNqxfD7U33v9yslTuv1bqhxK7kK5enfFb+WxjLfmgqi4bbCx0DFM8kJM8ABiY66 Es9HAlZf4zVtKLnoKrytQ1y/z2NIMFS7SiDJBNGRFTPu2eQSXvByNTNgmyyunbot0OTU UeY5aa7ykr2kEX1BMD7in0lD2miikzwi33upkeXZGKsqMjSl0VaVD8qTJRQE9YGdYEBM 6LoGPWVPr7kPj6RmvxqhZ1Ox9/sqZhhKqWcSTWkfU2C3jcL97U14f5ya3TCxKoq8HoMt f/Yw== X-Forwarded-Encrypted: i=1; AHgh+Rqojd557La30p9yDIkT/lSM1rBLLWLwAEuNUC9sV2yMtmacPxVoKPPhzabxdKPY8VOpTMYDwwEoiNVKcKQ=@vger.kernel.org X-Gm-Message-State: AOJu0Ywd1aJN2qyulj7t/h1KqkINT42XNLTE09fTuxJarNOG9PURHahx XIcO7dRe+2jZVRFDWcpDWD4NfpFEyOVu+6N/mWu5XePuec8yrw88yJOkFBty6SV8a5Q= X-Gm-Gg: AfdE7ckoqGBFVz75PTOFwIpMgS5hoMp4g/L44vJeDesXVZa2d9O6CaXzqWsRwlzTt6e /Cw9iiHiguOwdWWsknstmOX+FAD5ATcfmWPPNZGDWGPib5OYS2VM4JSWsr0FbMwgN4JTUZPjrD9 yOkpr4Ge9/E1buVZr2RAkcHeln7I/LGOkKSNHOVdzyyPkGWBfxtycWTcagra1rVC/ESCL2yB+ca GKORTxA1grge//NMt1oWdWQkPC/OdmHfFeaQgNY/PS9fHdhkg92l0fx/T3HkK+wmMBJe5weS7ov sh6qYhs8gEF9y64sw2BdgG/jCSAnW4+/rQd2pLsj1R105c0bEIkVg+SPvZzLYoUK7RyxZF7XEil 8nWpxtx5Wb331jvbh4lmzI83Pmxcy8jEQD9gpLf1zTeZ0jcuP4ai7ErAIb0/o5NBCrBIltUzkkD gav773HxUdqZhvtetaD6K3Ol5pdiOSAtryw1FErA== X-Received: by 2002:a05:600c:6091:b0:493:c83b:50d7 with SMTP id 5b1f17b1804b1-493e6831575mr37343485e9.6.1783537256247; Wed, 08 Jul 2026 12:00:56 -0700 (PDT) Received: from localhost.localdomain (nat2.prg.suse.com. [195.250.132.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa039af67sm51255578f8f.17.2026.07.08.12.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 12:00:55 -0700 (PDT) Date: Wed, 8 Jul 2026 21:00:54 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Yosry Ahmed Cc: Nhat Pham , Zenghui Yu , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, hannes@cmpxchg.org, chengming.zhou@linux.dev, tj@kernel.org, Shuah Khan , mhocko@kernel.org, Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton Subject: Re: cgroup/test_zswap failed with "zswpout does not increase after test program" Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="65f7eg5vudklrash" Content-Disposition: inline In-Reply-To: --65f7eg5vudklrash Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: cgroup/test_zswap failed with "zswpout does not increase after test program" MIME-Version: 1.0 On Tue, Jul 07, 2026 at 02:49:56PM -0700, Yosry Ahmed wr= ote: > I would honestly rather use more memory. I think there might be cases > where the flusher is delayed. The flush being slightly delayed is not > technically a bug that we want to see a failure for, but if a large > stats change is not visible that's a user-noticeable behavior that we > want a failure for. >=20 > WDYT? There's already the (recent) page size-based scaling, so the idea with nr_cpus scaling could make the selftest useful on wider range of setups (even page size can be considered as a slight implementation detail leak, thus the justification of nr_cpus dependency). Also, I still think that internally the threshold should be changed to the "harmonic" formula [1] but the selftest can go with the linear dependency for more pronounced effects. Thanks, Michal [1] https://lore.kernel.org/lkml/n6mhkjsxsami3qmczkdh57eep4lmcgbtyl7ox3ajzv= eke44yf6@m4bjevvsr47k/ --65f7eg5vudklrash Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJEEABYKADkWIQRCE24Fn/AcRjnLivR+PQLnlNv4CAUCak6eYRsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDIACgkQfj0C55Tb+AjWUgD+NXLAQPqFouL0lAEWSdLH Q1TGxjtThGe45suKK7NoiLIBAM7klcnhnOTcn3O4JeLz/eHwfK1JWXaF9nVzAX65 8KEK =2aDV -----END PGP SIGNATURE----- --65f7eg5vudklrash--