public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/28050] New: RFE: Improve performance of malloc for virt librdb workload
@ 2021-07-02 15:43 carlos at redhat dot com
  2021-07-05  3:44 ` [Bug malloc/28050] " carlos at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: carlos at redhat dot com @ 2021-07-02 15:43 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28050

            Bug ID: 28050
           Summary: RFE: Improve performance of malloc for virt librdb
                    workload
           Product: glibc
           Version: 2.33
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: carlos at redhat dot com
  Target Milestone: ---

In the Red Hat bug we have a discussion about glibc malloc's performance in a
specific librdb workload:
https://bugzilla.redhat.com/show_bug.cgi?id=1717414

We should review the upstream workload and consider possible improvements to
malloc's implementation.

Quoting from the bug:
~~~
With the dummy librbd / rbd CLI tool, you can see the effect of the glibc
memory allocator:

# GLIBC MEMORY ALLOCATOR
$ rbd bench --io-type write --io-pattern rand --io-size 4K --io-total 5G image1
bench  type write io_size 4096 io_threads 16 bytes 5368709120 pattern random
  SEC       OPS   OPS/SEC   BYTES/SEC
    1    101200    101418   396 MiB/s
    2    202960    101589   397 MiB/s
    3    303488    101235   395 MiB/s
    4    404160    101094   395 MiB/s
    5    506112    101265   396 MiB/s
    6    611936    102146   399 MiB/s
    7    718464    103100   403 MiB/s
    8    817680    102838   402 MiB/s
    9    918384    102844   402 MiB/s
   10   1024544    103686   405 MiB/s
   11   1125680    102748   401 MiB/s
   12   1228208    101948   398 MiB/s
elapsed: 12   ops: 1310720   ops/sec: 102359   bytes/sec: 400 MiB/s

# TCMALLOC MEMORY ALLOCATOR
$ LD_PRELOAD=/usr/lib64/libtcmalloc.so rbd bench --io-type write --io-pattern
rand --io-size 4K --io-total 5G image1
bench  type write io_size 4096 io_threads 16 bytes 5368709120 pattern random
  SEC       OPS   OPS/SEC   BYTES/SEC
    1    128288    128818   503 MiB/s
    2    267456    134003   523 MiB/s
    3    408640    136400   533 MiB/s
    4    550352    137729   538 MiB/s
    5    692208    138555   541 MiB/s
    6    833984    141138   551 MiB/s
    7    975232    141554   553 MiB/s
    8   1117152    141701   554 MiB/s
    9   1258992    141727   554 MiB/s
elapsed: 9   ops: 1310720   ops/sec: 139973   bytes/sec: 547 MiB/s

The results show that the mocked IO benchmark under librbd is >25% slower when
using glibc's memory allocator as compared to tcmalloc. 
~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug malloc/28050] RFE: Improve performance of malloc for virt librdb workload
  2021-07-02 15:43 [Bug malloc/28050] New: RFE: Improve performance of malloc for virt librdb workload carlos at redhat dot com
@ 2021-07-05  3:44 ` carlos at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: carlos at redhat dot com @ 2021-07-05  3:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28050

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1717414

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-05  3:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 15:43 [Bug malloc/28050] New: RFE: Improve performance of malloc for virt librdb workload carlos at redhat dot com
2021-07-05  3:44 ` [Bug malloc/28050] " carlos at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).