From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from abb.hmeau.com (abb.hmeau.com [180.181.231.80]) (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 5EB8F2DF131 for ; Tue, 6 Jan 2026 05:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=180.181.231.80 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767676115; cv=none; b=Q5nCTVa642eTpMcl4eNq7rZlWSKtv90/QzmFs5IqAfCBRGyQ1L3h2B0tP5lHDSxZ9qPY1BnkQBQTXsvgFnX0/Fz63zez/IJQA0ODIsg+WXFB69EFw4pMArYPbTSfWDshs3LKRe5OMChkHluwBrLLVhyIUP7WwpkSTBOGr/aacSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767676115; c=relaxed/simple; bh=5US8VzHM9fVL926FQaMLESRJRjnbYCQUj5Fy6hWBPS0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ux1OfBQs9G78UMmXIzAWFHl07nLO/vTv4voqKnjUKL6xRVgP7E1rT5VFoVaMAbdeJ7oHitaJ+vwy7ZM4RJE1DObBc/GvwilU7y8J21mvP8+183UTLp5EQPsbYn9gcF3P9gu14rxD4QLNq0wBT+jwLJM1XcgyDIha6R5rn7wmebI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au; spf=pass smtp.mailfrom=gondor.apana.org.au; dkim=pass (2048-bit key) header.d=gondor.apana.org.au header.i=@gondor.apana.org.au header.b=aiQiW5Ty; arc=none smtp.client-ip=180.181.231.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gondor.apana.org.au header.i=@gondor.apana.org.au header.b="aiQiW5Ty" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gondor.apana.org.au; s=h01; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:cc:to:subject:message-id:date: from:content-type:reply-to; bh=pFbnawxlHXDDkgXSSpYv3ae8u1dbcbfkYb5iiUdscbY=; b=aiQiW5TyILuzYRMyoEsy0Vst58yDyzhehww90uNxQtv0BmNiISBPEmO6Gwt4lj6PiPwoGEZsaK9 yP8RNgft85zHS98sF9U+9biJyL+FLGh2Rm4022NbWNyzNRG32linDyN0LnmHu+dTwZ1KzlwKWw0/z 3vlG+3Z59GStyqhblp8jF0AtEDBl8HQuQEMaOVs6UFYKcFOso4KLySpCtYEKI2PU6CEjnyDTOBMAx /46WYAiK78baEj9eVpMpcj8v++DebputBqe/yT2NyMqONRdheHdvUNq0LQyCNBiKO89s8xkXQRG9c z6v9/m+0nuoxdY2GmLp6dyha8YHHQuRdppHQ==; Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.96 #2 (Debian)) id 1vczIf-00EaDb-0Y; Tue, 06 Jan 2026 13:08:10 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 06 Jan 2026 13:08:09 +0800 Date: Tue, 6 Jan 2026 13:08:09 +0800 From: Herbert Xu To: Sergey Senozhatsky Cc: Yosry Ahmed , Andrew Morton , Nhat Pham , Minchan Kim , Johannes Weiner , Brian Geffon , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 2/2] zsmalloc: chain-length configuration should consider other metrics Message-ID: References: <20260101013814.2312147-1-senozhatsky@chromium.org> <20260101013814.2312147-3-senozhatsky@chromium.org> <5p4iyah6zlrnxpbsis32c4m5lrjj3pq7xwcugq35d2entwfai2@n2r6y3ga2ie5> <7q5gqpfshnc3lfhzxughpks3fc2knw2delpm5io2oe54monydl@5isuxnjputjr> 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-Disposition: inline In-Reply-To: <7q5gqpfshnc3lfhzxughpks3fc2knw2delpm5io2oe54monydl@5isuxnjputjr> On Tue, Jan 06, 2026 at 01:22:45PM +0900, Sergey Senozhatsky wrote: > On (26/01/06 13:20), Sergey Senozhatsky wrote: > [..] > > > I am not sure tbh, adding Herbert here. I remember looking at the code > > > in scomp_acomp_comp_decomp() at some point, and I think it will take > > > care of non-contiguous SG-lists. Not sure if that's the correct place to > > > look tho. > > > > Ah, so it does kmap under the hood. I suppose that can work. > > I'm hallucinating, sorry. Yeah, let's hear from Herbert what's > the direction here. I have not implemented the underlying SG support yet because there are no users in the kernel as of now. But if this is useful for you then we can certainly do this, at least for LZO which is fairly simple. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt