From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E084C36014 for ; Wed, 2 Apr 2025 06:45:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8ED68280005; Wed, 2 Apr 2025 02:45:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 899ED280001; Wed, 2 Apr 2025 02:45:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 71638280005; Wed, 2 Apr 2025 02:45:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 50E64280001 for ; Wed, 2 Apr 2025 02:45:29 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id DE6FABA82A for ; Wed, 2 Apr 2025 06:45:28 +0000 (UTC) X-FDA: 83288167536.21.026D05C Received: from server4.hayhost.am (server4.hayhost.am [2.56.206.6]) by imf02.hostedemail.com (Postfix) with ESMTP id 5E13F80010 for ; Wed, 2 Apr 2025 06:45:26 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=beldev.am header.s=default header.b=Ti+HbzXm; dmarc=pass (policy=none) header.from=beldev.am; spf=pass (imf02.hostedemail.com: domain of igor.b@beldev.am designates 2.56.206.6 as permitted sender) smtp.mailfrom=igor.b@beldev.am ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1743576327; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=6UunIdc2OsmEond98DgIVMq3uM4v7x1rc6VtErWL2g4=; b=nIGTITGGP/5voA2UGIhfy9lKn+JK8UKulBmMdmnn9YSmv/qulyXXYG6dygJTLQjdfNFrn7 IHRpNufISIEpLGpMc8mtqzG3HE4K0ertvpMisF/1j+0n13vTA5+SdhszKIxyMeH+qXlnHl itihFYIKM3j3au3TknRA79eWbrH62FE= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=beldev.am header.s=default header.b=Ti+HbzXm; dmarc=pass (policy=none) header.from=beldev.am; spf=pass (imf02.hostedemail.com: domain of igor.b@beldev.am designates 2.56.206.6 as permitted sender) smtp.mailfrom=igor.b@beldev.am ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1743576327; a=rsa-sha256; cv=none; b=Ga8FXNd/Wm3dhiOLVW8UhNTfc80VzlouMvJOnyshF1C6QHpnL3DB0MR/xLPMrNMuEmrtvJ dM/hi9fTDvo0RtKC+NbFYk9IOPe2nV9dRfIKxvOXj3YconiUMlHmn4YempmgHpAtsC/F/1 ZOH4t5RFw5HaE6GpV7zAoUiNqaOul5o= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=beldev.am; s=default; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6UunIdc2OsmEond98DgIVMq3uM4v7x1rc6VtErWL2g4=; b=Ti+HbzXmCyv/5RI3mSTO5lL6MR ylGkuat8ODqxFkMSoo3K/+lLlrOjy1TbA4oK4BEDgL1JyAKJwelQL3EiBBms6RiodQyCMnC4zMNiL GWf+Q/2ua9YDNu5Bltxgp/lSlVUrGro9GKOp2xuRu+yGgyMgqh06KhEbVeP5t/Ose5/IOv3Ilfnlz a6l859EXXIlU3U75KvOmjaFcBu56r1voOUVtgBHEzw0L0aKO0VRyzXiLkXxkY7FW/lT/vvtlf65Nz e8VWv7rCp8989SXET5ZUW7Yzv/dHzXl18PrOq7wyTY/9Cad1WksE7bN9EwURz2I/nN7TnUTtrbjcR fHUG50AQ==; Received: from [::1] (port=23272 helo=server4.hayhost.am) by server4.hayhost.am with esmtpa (Exim 4.98.1) (envelope-from ) id 1tzrqp-000000008Gl-06XN; Wed, 02 Apr 2025 10:45:27 +0400 MIME-Version: 1.0 Date: Wed, 02 Apr 2025 10:45:25 +0400 From: igor.b@beldev.am To: Shakeel Butt Cc: Vitaly Wool , linux-mm@kvack.org, akpm@linux-foundation.org Subject: Re: [PATCH] mm: add zblock allocator In-Reply-To: References: <20250401171754.2686501-1-vitaly.wool@konsulko.se> User-Agent: Roundcube Webmail/1.6.9 Message-ID: <6d5ed99eb91c5d13b8c16dde6f8df4d9@beldev.am> X-Sender: igor.b@beldev.am Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server4.hayhost.am X-AntiAbuse: Original Domain - kvack.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - beldev.am X-Get-Message-Sender-Via: server4.hayhost.am: authenticated_id: igor.b@beldev.am X-Authenticated-Sender: server4.hayhost.am: igor.b@beldev.am X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 5E13F80010 X-Stat-Signature: 84d64bbot5qhsr93a6hryi6c4hqzz9fg X-Rspam-User: X-HE-Tag: 1743576326-611505 X-HE-Meta: U2FsdGVkX1/iF2jae4AEiiOTgGwTQq4rkTUq5qSNOr9Nh38IGvxDxq6md66C8RgcA3S0j6C95I9y9+KQjwrv+oQODF72ft45xrtBAdUazA8R+AC1cip7ckpC520bxIZhGyiNlVdqDO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kbnyAwITusrUieSQJUigt7dam1UCpyw+7tBKZxbx1a48LoI7CfX+CsWxRGhF2OqTzXNFi82HsPHxUZW37D87X95B2PjCLM1d73b5KHK0mE6W6/wovOB96fSg2UKTsdqP7vMGokEgBnqmxZ4PYv4fpsLaXWnW86m9o6qNvOcBsArhJ7nMOn1pIGD2YKRQUwSS8y/koKCjFS5s7Bu8m0iO/CozWI7mn0ijEzetPVygZ1q9x0Fa18Hz6uMrD50R6epGpZGwIAaMnIHcF6ADKbygxqKj8O2gw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Shakeel, 2025-04-02 03:16 Shakeel Butt wrote: > Hi Vitaly, > > On Tue, Apr 01, 2025 at 07:17:54PM +0200, Vitaly Wool wrote: >> zblock is a special purpose allocator for storing compressed pages. >> It stores integer number of compressed objects per its block. These >> blocks consist of several physical pages (2**n, i. e. 1/2/4/8). >> >> With zblock, it is possible to densely arrange objects of various >> sizes >> resulting in low internal fragmentation. Also this allocator tries to >> fill incomplete blocks instead of adding new ones, in many cases >> providing a compression ratio substantially higher than z3fold and >> zbud >> (though lower than zmalloc's). >> >> zblock does not require MMU > > Can you explain why not requiring MMU is important for your use-case? > Also what exactly is your use-case? Are you planning to use zblock > through zram or zswap or something new? We have 2 use cases for a zpool backend: data centers (zswap) and small MMU less devices, this is where zram comes ito play. We know that zram over zpool patch is still out of tree but we also know the story behind that :) >> to operate and also is superior to zsmalloc >> with regard to average performance and worst execution times, thus >> allowing for better response time and real-time characteristics of the >> whole system. >> >> E. g. on a series of stress-ng tests run on a Raspberry Pi 5, we get >> 5-10% higher value for bogo ops/s in zblock/zsmalloc comparison. > > Can you explain a bit more on this test? How is this test using zblock? We're running stress-ng on a number of devices. The results published in the previous message are from the run on Raspberry Pi 5. zpool's settings used for comparison are lz4/80%. Thanks, Igor