Now with the patch [1] applied, it is back to normal.

$ dpkg -s libc6 | grep Version:
Version: 2.35-0ubuntu3.8+gd47c5e4db792

Without per-CPU affinity (average: 63ms) -- no regression

        $ ./test-glibc-malloc 56 false false
        nr_cpu: 56 pin: no fix: no
        thread average (ms): 69.927953

        $ ./test-glibc-malloc 56 false false
        nr_cpu: 56 pin: no fix: no
        thread average (ms): 60.017631

        $ ./test-glibc-malloc 56 false false
        nr_cpu: 56 pin: no fix: no
        thread average (ms): 63.712696

        $ ./test-glibc-malloc 56 false false
        nr_cpu: 56 pin: no fix: no
        thread average (ms): 61.139623

        $ ./test-glibc-malloc 56 false false
        nr_cpu: 56 pin: no fix: no
        thread average (ms): 63.322566

With per-CPU affinity (average: 58ms) -- improvement, back to normal

        $ ./test-glibc-malloc 56 true false
        nr_cpu: 56 pin: yes fix: no
        thread average (ms): 63.215897

        $ ./test-glibc-malloc 56 true false
        nr_cpu: 56 pin: yes fix: no
        thread average (ms): 58.465390

        $ ./test-glibc-malloc 56 true false
        nr_cpu: 56 pin: yes fix: no
        thread average (ms): 55.773076

        $ ./test-glibc-malloc 56 true false
        nr_cpu: 56 pin: yes fix: no
        thread average (ms): 57.536929

        $ ./test-glibc-malloc 56 true false
        nr_cpu: 56 pin: yes fix: no
        thread average (ms): 55.459689


[1]
https://sourceware.org/git/?p=glibc.git;a=commit;h=472894d2cfee5751b44c0aaa71ed87df81c8e62e

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089789

Title:
  malloc performance degradation with CPU affinity masks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2089789/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to