[Bug 2089789] Re: malloc performance degradation with CPU affinity masks

Mauricio Faria de Oliveira 2089789 at bugs.launchpad.net
Wed Nov 27 21:25:18 UTC 2024


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
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/2089789

Title:
  malloc performance degradation with CPU affinity masks

Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Jammy:
  Confirmed

Bug description:
  https://sourceware.org/bugzilla/show_bug.cgi?id=30945

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




More information about the foundations-bugs mailing list