real 0m0.938s
user 0m7.363s
sys 0m0.064s
root@ff-lp1912652:~# apt install libc6-lse
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libc6-lse
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1035 kB of archives.
After this operation, 3244 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libc6-lse arm64 2.31-0ubuntu9.2 [1035 kB]
Fetched 1035 kB in 1s (1393 kB/s)
Selecting previously unselected package libc6-lse:arm64.
(Reading database ... 35769 files and directories currently installed.)
Preparing to unpack .../libc6-lse_2.31-0ubuntu9.2_arm64.deb ...
Unpacking libc6-lse:arm64 (2.31-0ubuntu9.2) ...
Setting up libc6-lse:arm64 (2.31-0ubuntu9.2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
root@ff-lp1912652:~# reboot
real 0m0.080s
user 0m0.181s
sys 0m0.441s
root@ff-lp1912652:~# dpkg -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===============-============-=================================
ii libc6:arm64 2.31-0ubuntu9.3 arm64 GNU C Library: Shared libraries
root@ff-lp1912652:~#
Verified glibc 2.31-0ubuntu9.3 on Focal.
root@ff- lp1912652: ~# gcc -O2 -o a.out a.c -lpthread -DITER=1000 -DTHREADS=64 lp1912652: ~# time ./a.out 15175.931641, mutexes_ locked= 224170, flips=12 31851.539062, mutexes_ locked= 105648, flips=1 581391. 875000, mutexes_ locked= 6158, flips=1000
root@ff-
thread 0: min=128, max=390014464, average=
...
thread 63: min=128, max=212314560, average=
server: min=128, max=249241888, average=
real 0m0.938s lp1912652: ~# apt install libc6-lse ports.ubuntu. com/ubuntu- ports focal-updates/main arm64 libc6-lse arm64 2.31-0ubuntu9.2 [1035 kB] lse_2.31- 0ubuntu9. 2_arm64. deb ... lp1912652: ~# reboot
user 0m7.363s
sys 0m0.064s
root@ff-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libc6-lse
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1035 kB of archives.
After this operation, 3244 kB of additional disk space will be used.
Get:1 http://
Fetched 1035 kB in 1s (1393 kB/s)
Selecting previously unselected package libc6-lse:arm64.
(Reading database ... 35769 files and directories currently installed.)
Preparing to unpack .../libc6-
Unpacking libc6-lse:arm64 (2.31-0ubuntu9.2) ...
Setting up libc6-lse:arm64 (2.31-0ubuntu9.2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
root@ff-
Session terminated, killing shell... ...killed. ip-172- 31-20-158: ~$ lxc shell ff-lp1912652 lp1912652: ~# time ./a.out 20925.992188, mutexes_ locked= 1371, flips=36 295146. 343750, mutexes_locked=96, flips=0 12458848. 000000, mutexes_locked=1, flips=0 27332.921875, mutexes_ locked= 1255, flips=9 19802.298828, mutexes_ locked= 1437, flips=1000
ubuntu@
root@ff-
thread 0: min=128, max=1119296, average=
...thread 61: min=128, max=15716704, average=
thread 62: min=1000000, max=12458848, average=
thread 63: min=128, max=9601760, average=
server: min=128, max=5040224, average=
real 0m0.014s lp1912652: ~# apt install libc-bin libc-dev-bin libc6 libc6-dev locales ports.ubuntu. com/ubuntu- ports focal-proposed/main arm64 libc6-dev arm64 2.31-0ubuntu9.3 [2068 kB] ports.ubuntu. com/ubuntu- ports focal-proposed/main arm64 libc-dev-bin arm64 2.31-0ubuntu9.3 [64.2 kB] ports.ubuntu. com/ubuntu- ports focal-proposed/main arm64 libc6 arm64 2.31-0ubuntu9.3 [2270 kB] ports.ubuntu. com/ubuntu- ports focal-proposed/main arm64 locales all 2.31-0ubuntu9.3 [3862 kB] ports.ubuntu. com/ubuntu- ports focal-proposed/main arm64 libc-bin arm64 2.31-0ubuntu9.3 [506 kB] dev_2.31- 0ubuntu9. 3_arm64. deb ... dev-bin_ 2.31-0ubuntu9. 3_arm64. deb ... 2.31-0ubuntu9. 3_arm64. deb ... 2.31-0ubuntu9. 3_all.deb ... bin_2.31- 0ubuntu9. 3_arm64. deb ... lp1912652: ~# time ./a.out 19436.712891, mutexes_ locked= 1334, flips=31 13251.751953, mutexes_ locked= 2115, flips=53
user 0m0.023s
sys 0m0.059s
root@ff-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
glibc-doc
The following packages will be REMOVED:
libc6-lse
The following packages will be upgraded:
libc-bin libc-dev-bin libc6 libc6-dev locales
5 upgraded, 0 newly installed, 1 to remove and 12 not upgraded.
Need to get 8770 kB of archives.
After this operation, 3159 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Fetched 8770 kB in 1s (7065 kB/s)
Preconfiguring packages ...
(Reading database ... 35813 files and directories currently installed.)
Removing libc6-lse:arm64 (2.31-0ubuntu9.2) ...
(Reading database ... 35769 files and directories currently installed.)
Preparing to unpack .../libc6-
Unpacking libc6-dev:arm64 (2.31-0ubuntu9.3) over (2.31-0ubuntu9.2) ...
Preparing to unpack .../libc-
Unpacking libc-dev-bin (2.31-0ubuntu9.3) over (2.31-0ubuntu9.2) ...
Preparing to unpack .../libc6_
Unpacking libc6:arm64 (2.31-0ubuntu9.3) over (2.31-0ubuntu9.2) ...
Setting up libc6:arm64 (2.31-0ubuntu9.3) ...
(Reading database ... 35769 files and directories currently installed.)
Preparing to unpack .../locales_
Unpacking locales (2.31-0ubuntu9.3) over (2.31-0ubuntu9.2) ...
Preparing to unpack .../libc-
Unpacking libc-bin (2.31-0ubuntu9.3) over (2.31-0ubuntu9.2) ...
Setting up libc-bin (2.31-0ubuntu9.3) ...
Setting up locales (2.31-0ubuntu9.3) ...
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
Setting up libc-dev-bin (2.31-0ubuntu9.3) ...
Setting up libc6-dev:arm64 (2.31-0ubuntu9.3) ...
Processing triggers for man-db (2.9.1-1) ...
root@ff-
thread 0: min=128, max=2640064, average=
thread 1: min=128, max=2480992, average=
...
thread 62: min=128, max=112618720, average= 94604.898438, mutexes_ locked= 2004, flips=25 88098.539062, mutexes_ locked= 3266, flips=14 140166. 890625, mutexes_ locked= 1347, flips=1000
thread 63: min=128, max=129409344, average=
server: min=128, max=94762112, average=
real 0m0.080s lp1912652: ~# dpkg -l libc6 Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ====-== ======= ======- ======= =====-= ======= ======= ======= ======= ==== lp1912652: ~#
user 0m0.181s
sys 0m0.441s
root@ff-
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii libc6:arm64 2.31-0ubuntu9.3 arm64 GNU C Library: Shared libraries
root@ff-