linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Vitaly" <vitaly.wool@konsulko.se>
To: "Nhat Pham" <nphamcs@gmail.com>
Cc: <linux-mm@kvack.org>, <akpm@linux-foundation.org>,
	"Igor Belousov" <igor.b@beldev.am>
Subject: Re: [PATCH] mm: add zblock allocator
Date: Tue, 01 Apr 2025 23:44:01 +0200	[thread overview]
Message-ID: <1743543841269.7.128@webmail-backend-production-66c6df7957-sjk44> (raw)
In-Reply-To: <CAKEwX=Mu5Or=9gA68PvXf37XA73YTUR5YTi8gqWKOiPjeG=_eQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

Hi Nhat,

On Tuesday, April 1, 2025 at 8:24:15 pm +02:00, Nhat Pham <nphamcs@gmail.com> wrote:
>> 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).

>> Do we have data for comparison here?

Yeah, for instance we normally run *stress-ng --vm 4 --vm-bytes 4G --vm-keep --timeout 10m --metrics-brief*

zblock:
stress-ng: metrc: [499] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: metrc: [499] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: metrc: [499] vm 43755994 600.53 2382.34 15.19 72861.92 18250.50

zsmalloc:
stress-ng: metrc: [491] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: metrc: [491] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: metrc: [491] vm 41769859 601.37 2381.85 16.56 69457.56 17415.62

which gives just a little short of 5% of advantage for zblock.

>> with regard to average performance and worst execution times, thus
>> allowing for better response time and real-time characteristics of the
>> whole system.

>> By performance, do you mean latency or throughput or storage density?

Latency and throughput. It's hard to compete with zsmalloc in storage density indeed.

~Vitaly




[-- Attachment #2.1: Type: text/html, Size: 2274 bytes --]

  reply	other threads:[~2025-04-01 21:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-01 17:17 Vitaly Wool
2025-04-01 18:24 ` Nhat Pham
2025-04-01 21:44   ` Vitaly [this message]
2025-04-01 23:16 ` Shakeel Butt
2025-04-02  6:45   ` igor.b
2025-04-02 16:24     ` Shakeel Butt
2025-04-03 21:54     ` Nhat Pham
2025-04-02 13:03 ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1743543841269.7.128@webmail-backend-production-66c6df7957-sjk44 \
    --to=vitaly.wool@konsulko.se \
    --cc=akpm@linux-foundation.org \
    --cc=igor.b@beldev.am \
    --cc=linux-mm@kvack.org \
    --cc=nphamcs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox