<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Picking some parts of the strace from attached
strace-lspci-dmesg-dpkg-config-pulse.tar.bz2/buster/nouveau-hdmi/terminal-output</p>
<pre>ludovic@lud-mn1:~$ strace -fftttTAo /dev/shm/gn-sh -p "$(pidof gnome-shell)" & strace -fftttTAo /dev/shm/pulse -p "$(pidof pulseaudio)" &
[1] 8271
[2] 8272
ludovic@lud-mn1:~$ strace: Process 6509 attached with 26 threads
strace: Process 6556 attached with 4 threads
<b>qwert<tab>ggg^C</b>
ludovic@lud-mn1:~$ kill %1 %2
strace: Process 6509 detached
[...]
ludovic@lud-mn1:~$ grep -vE '(futex|poll)' /dev/shm/* | sed -ne 's/^\(.*\)<\([0-9.]\+\)>/\2 \1/p' | sort -rn | head
grep: /dev/shm/mb: est un dossier
<b>2.380555</b> /dev/shm/pulse.6557:1556048473.471096 openat(AT_FDCWD, "<b>/dev/snd/pcmC0D3p</b>", O_RDWR|O_NONBLOCK|O_CLOEXEC) = 29
0.189954 /dev/shm/pulse.6557:1556048475.853690 ioctl(29, SNDRV_PCM_IOCTL_PREPARE, 0x199d) = 0
0.000499 /dev/shm/gn-sh.6509:1556048476.717525 ioctl(13, DRM_IOCTL_NOUVEAU_GEM_NEW, 0x7ffd0f29c110) = 0
[...]
ludovic@lud-mn1:~$ grep . /dev/shm/* | sed -ne 's/^\(.*\)<\([0-9.]\+\)>/\2 \1/p' | grep ^2
2.578621 /dev/shm/gn-sh.6509:1556048473.467013 futex(<b>0x55d9a144852c</b>, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
2.578165 /dev/shm/gn-sh.6555:1556048473.467158 poll([{fd=43, events=POLLIN}, {fd=46, events=POLLIN}, {fd=47, events=POLLIN}], 3, 30000) = 1 (<b>[{fd=47, revents=POLLIN}]</b>)
2.574173 /dev/shm/pulse.6556:1556048473.469774 futex(0x5627a9e5ef10, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY) = 0
2.380555 /dev/shm/pulse.6557:1556048473.471096 openat(AT_FDCWD, "/dev/snd/pcmC0D3p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = 29
ludovic@lud-mn1:~$ grep -F 0x55d9a144852c /dev/shm/*
/dev/shm/gn-sh.6509:1556048473.467013 futex(0x55d9a144852c, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 <2.578621>
/dev/shm/gn-sh.6555:1556048476.045573 futex(0x55d9a144852c, FUTEX_WAKE_PRIVATE, 2147483647) = 1 <0.000019>
ludovic@lud-mn1:~$ lsof -np $(pidof gnome-shell) > /dev/shm/gn-sh.lsof
lsof: WARNING: can't stat() ext4 file system /media/lpouzenc/Debian9-gaming
Output information may be incomplete.
[...]
gnome-she 6509 ludovic 41u unix 0x000000008eb7907f 0t0 71920 type=STREAM
gnome-she 6509 ludovic 42u a_inode 0,13 0 8365 [eventfd]
gnome-she 6509 ludovic 43r FIFO 0,12 0t0 71923 pipe
gnome-she 6509 ludovic 44w FIFO 0,12 0t0 71923 pipe
gnome-she 6509 ludovic 45u a_inode 0,13 0 8365 [eventfd]
gnome-she 6509 ludovic 46u unix 0x0000000046a9941d 0t0 71926 type=STREAM
gnome-she 6509 ludovic 47u a_inode 0,13 0 8365 [eventfd]
gnome-she 6509 ludovic 48u a_inode 0,13 0 8365 [timerfd]
[...]
ludovic@lud-mn1:~$ lsof -np $(pidof pulseaudio) > /dev/shm/pulse.lsof
lsof: WARNING: can't stat() ext4 file system /media/lpouzenc/Debian9-gaming
Output information may be incomplete.
[...]
pulseaudi 6556 ludovic 22u unix 0x00000000dfc5bc44 0t0 102049 /run/user/1001/pulse/native type=STREAM
pulseaudi 6556 ludovic 23u CHR 116,13 0t0 26845 /dev/snd/controlC0
pulseaudi 6556 ludovic 24u CHR 116,7 0t0 21579 /dev/snd/controlC1
pulseaudi 6556 ludovic 25u a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic 26u a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic 27u a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic <b>28u</b> a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic <b>31u</b> CHR 116,7 0t0 21579 /dev/snd/controlC1
pulseaudi 6556 ludovic 32u a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic 33u a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic 34u a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic 35u a_inode 0,13 0 8365 [eventfd]
pulseaudi 6556 ludovic 36u CHR 116,7 0t0 21579 /dev/snd/controlC1
[...]
ludovic@lud-mn1:~$ dpkg -l | grep -E '^ii (gnome-shell|dbus|pulseaudio|linux-image-4.19.0-4-amd64) '
ii dbus 1.12.12-1 amd64 simple interprocess messaging system (daemon and utilities)
ii gnome-shell 3.30.2-7 amd64 graphical shell for the GNOME desktop
ii linux-image-4.19.0-4-amd64 4.19.28-2 amd64 Linux 4.19 for 64-bit PCs (signed)
ii pulseaudio 12.2-4 amd64 PulseAudio sound server
</pre>
Regards,<br>
<pre class="moz-signature" cols="72">--
Ludovic Pouzenc
<a class="moz-txt-link-abbreviated" href="http://www.pouzenc.fr">www.pouzenc.fr</a>
This is GNU/Linux land. In silent nights you can hear the Windows machines rebooting.
</pre>
</body>
</html>