Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1180579lqs; Fri, 14 Jun 2024 19:59:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+AK5jLaeM8llYTRUZodtD3h03+0nvJhn0oOAflcobXayfbe6KC9h7rn8hp9uBQEG1tXFTSTINDvhZcfLbBIXN7gm0KGoS4XlfeXsMkQ== X-Google-Smtp-Source: AGHT+IGj1zuc0f3mUiNn8YgAAALgl/zSDme333tguwR8AIgV+bhj8xYB0hVig56CoFkrxpD61XxX X-Received: by 2002:aa7:c2d9:0:b0:57c:bfc5:9204 with SMTP id 4fb4d7f45d1cf-57cbfc59358mr2386645a12.14.1718420369756; Fri, 14 Jun 2024 19:59:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718420369; cv=pass; d=google.com; s=arc-20160816; b=ry6MSL9yN0OvGEUE5edeuxLqoS2NFTs00dUd7ccBqvqdoc8HBDZPYXiwjqMkxN42vi Ob0L3U7yJ7nYSiP/GTkFMpIuMjwEfSD+FBPDG5H4EawY6SbFCAap+SbKGHc4X4Axdax4 bwb2pRkKdLa21o9cA/5a5R8FDBFrIDbD4WQN2AFy6m4Bx0AnXrHVT0I79t5M48U35Km8 tTkul/PB8IDzao8dFBIWh5Q/WKCwXQYH1fsxRdOGp/RsYCq4/cdxT3f2mlL06S0DB3OS 3ub/JPYOMbAE+Um2ExqpNEBsbt5aAar2gbQssAC9AtqKPfaUA5llp3F0LeeFfWj7f/YI BJkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=SqklnsYxW7khpXpZ5EDDVWOEsaFd4nRdXazI1FkI6BY=; fh=cB0ARDoyBDj2uwKFAdgs/cUmfEbyxRcHL/OcIjC3n3A=; b=y5hjaDEymhWG0dEnChSB3AzvC0W5vnU8rnbvX9b7lV9uuate8dnSGQxgBHsc/MtfnS RXMu7NRL9frD+1SgRx4GHwlqDJtIIs56UHJTFKhO+rHvIzHzCk2lVv6S02/R1drpaDLp Qio1jmQe8ccwigWk3j1cYWC4XHcS6hVt1UFPEytXecZb0xrZg56UCpcoHKHHFYj7fifn xwWArGzp79rjNbjXIyUHxgRXM0HQoFbgJWqu03/r+wXbtPS9zcZjrY+jUZBQNMpldxVT 96SQizMDA32WqoNRr7p6ip/47FBU7kkGDesi7rAdhi5sC6yFfDR9sE1yG1zqlO/Z9DXl DGQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=hx7Duybr; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-215675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215675-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7476a0esi2309703a12.628.2024.06.14.19.59.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 19:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=hx7Duybr; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-215675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215675-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 64A9A1F224FE for ; Sat, 15 Jun 2024 02:59:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64572DDA9; Sat, 15 Jun 2024 02:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="hx7Duybr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8546AD26D for ; Sat, 15 Jun 2024 02:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718420362; cv=none; b=th4iHccpRZk/COdbxFbOGeGYYeD6Snm/dlX6HvV4ST/LVzNC8pg37R+gNK6mJnRfPrHwb1vb0pC+mWfQowuQO/cwVnGXCO/goX8jedr1ecYbmPwKfrYHimNcKJajJsencFREUOtgqCrxIbSsMjN8NJTy6rL3sNeSqE64gCVoY0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718420362; c=relaxed/simple; bh=mkjvUJdS5vqjmt9WAxPq2GEHmcIbM2iUAlz3+HnWaMY=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=meDiHebTnGjPzPAF9St/8lQChhigDSw52VUNd7tFpl60NHPcTvqb1MxAVS45VTCfV7ldbQLyu5K0hoWRll0bZtyuXPJPfguqge8cmX8m8PVZchIKX/LRRVSa0PvrWuCK9rikLJLNsuP5MZnCwfOJUxWaNX3ZZQ4AAxl4Qbu6ZUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=hx7Duybr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0AD4C2BD10; Sat, 15 Jun 2024 02:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718420362; bh=mkjvUJdS5vqjmt9WAxPq2GEHmcIbM2iUAlz3+HnWaMY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hx7Duybr78IeEsr/EImsxu6uIAwwA+fZXVTBNX+bBzb8Q2ioN/qZ9CLLDLhVYy14b 206BpUY4e94wgEIV7RPj5R7hhMB5+kIvC/h7akfAYKg0lpbAR5yqTvAqlkKDbYyiwz +xq/GFmEmVU5K7t5GoxPq2YcHdlYz7gDfH19fAlM= Date: Fri, 14 Jun 2024 19:59:21 -0700 From: Andrew Morton To: Chris Li Cc: Kairui Song , Ryan Roberts , "Huang, Ying" , Kalesh Singh , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Barry Song Subject: Re: [PATCH v2 0/2] mm: swap: mTHP swap allocator base on swap cluster order Message-Id: <20240614195921.a20f1766a78b27339a2a3128@linux-foundation.org> In-Reply-To: References: <20240614-swap-allocator-v2-0-2a513b4a7f2f@kernel.org> <20240614180606.5f3b6f4a6cd515df30b7a0e4@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 14 Jun 2024 19:51:11 -0700 Chris Li wrote: > > I'm having trouble understanding the overall impact of this on users. > > We fail the mTHP swap allocation and fall back, but things continue to > > operate OK? > > Continue to operate OK in the sense that the mTHP will have to split > into 4K pages before the swap out, aka the fall back. The swap out and > swap in can continue to work as 4K pages, not as the mTHP. Due to the > fallback, the mTHP based zsmalloc compression with 64K buffer will not > happen. That is the effect of the fallback. But mTHP swap out and swap > in is relatively new, it is not really a regression. Sure, but it's pretty bad to merge a new feature only to have it ineffective after a few hours use. > > > > > There is some test number in the V1 thread of this series: > > > https://lore.kernel.org/r/20240524-swap-allocator-v1-0-47861b423b26@kernel.org > > > > Well, please let's get the latest numbers into the latest patchset. > > Along with a higher-level (and quantitative) description of the user impact. > > I will need Barray's help to collect the number. I don't have the > setup to reproduce his test result. > Maybe a follow up commit message amendment for the test number when I get it? Yep, I alter changelogs all the time. > > > > I'll add this into mm-unstable now for some exposure, but at this point > > I'm not able to determine whether it should go in as a hotfix for > > 6.10-rcX. > > Maybe not need to be a hotfix. Not all Barry's mTHP swap out and swap > in patch got merged yet. OK, well please let's give appropriate consideration to what we should add to 6.10-rcX in order to have this feature working well.