I happened to be rebuilding some packages on amd64/8.0 while I was reading your article, so I thought I might as well measure something myself. My results are not directly comparable to yours. I build from local rotating disk, not a ram disk. But I have 32 GB of RAM so there should be a lot of caching. From the caller list, I get the impression that the statistics include (potentially) all system activity, not just work being done by/on behalf of the specified program. Otherwise I can't explain the network related names. All distfiles should have been there already (it was a rebuild of existing packages but for 8.0). NetBSD murthe.falu.nl 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64 pkg_comp:default.conf# lockstat -L kernel_lock pkg_chk -ak ... Elapsed time: 47954.90 seconds. -- Kernel lock spin Total% Count Time/ms Lock Caller ------ ------- --------- ---------------------- ------------------------------ 100.00 618791 375442.52 kernel_lock <all> 29.41 59522 110425.74 kernel_lock cdev_poll+72 21.96 24626 82447.93 kernel_lock ip_slowtimo+1a 20.04 23020 75230.65 kernel_lock frag6_slowtimo+1f 10.09 26272 37891.06 kernel_lock frag6_fasttimo+1a 7.50 58970 28150.68 kernel_lock VOP_POLL+93 3.16 11940 11860.16 kernel_lock sleepq_block+1b5 2.99 56296 11207.05 kernel_lock VOP_LOCK+b2 1.69 104084 6338.54 kernel_lock bdev_strategy+7f 0.88 3939 3311.60 kernel_lock fileassoc_file_delete+20 0.72 5289 2700.97 kernel_lock VOP_IOCTL+65 0.45 703 1680.33 kernel_lock nd6_timer_work+49 0.40 3102 1500.71 kernel_lock VOP_LOOKUP+5e 0.26 17808 967.32 kernel_lock VOP_UNLOCK+70 0.14 6354 514.59 kernel_lock VOP_WRITE+61 0.06 115 236.77 kernel_lock tcp_timer_keep+48 0.04 7082 168.23 kernel_lock tcp_rcvd_wrapper+18 0.04 85504 144.38 kernel_lock callout_softclock+2b0 0.03 4775 103.15 kernel_lock kevent1+692 0.02 3725 79.60 kernel_lock kqueue_register+419 0.01 41908 56.07 kernel_lock intr_biglock_wrapper+16 0.01 56054 50.86 kernel_lock biodone2+6d 0.01 94 43.05 kernel_lock cdev_read+72 0.01 23 40.65 kernel_lock udp_send_wrapper+2b 0.01 6199 38.81 kernel_lock VOP_READ+61 0.01 20 32.44 kernel_lock cdev_ioctl+88 0.01 178 30.20 kernel_lock VOP_GETATTR+5e 0.01 1050 27.36 kernel_lock knote_detach+134 0.01 60 25.10 kernel_lock VFS_SYNC+65 0.01 43 21.64 kernel_lock VOP_READDIR+6d 0.01 635 19.13 kernel_lock tcp_send_wrapper+22 0.00 101 16.98 kernel_lock cdev_open+be 0.00 2 13.49 kernel_lock ip_drain+e 0.00 23 11.60 kernel_lock udp6_send_wrapper+2b 0.00 6764 9.57 kernel_lock softint_dispatch+dc 0.00 9 9.09 kernel_lock tcp_timer_rexmt+52 0.00 3 5.78 kernel_lock tcp_attach_wrapper+18 0.00 2 5.37 kernel_lock mld_timeo+16 0.00 21 5.10 kernel_lock tcp_detach_wrapper+16 0.00 28 5.07 kernel_lock VOP_FCNTL+64 0.00 1 5.03 kernel_lock tcp_drain+1d 0.00 31 3.28 kernel_lock bdev_ioctl+88 0.00 484 2.70 kernel_lock doifioctl+8f3 0.00 107 1.22 kernel_lock VOP_ACCESS+5d 0.00 809 0.91 kernel_lock ip6intr+1f 0.00 1 0.65 kernel_lock rip6_send_wrapper+34 0.00 101 0.47 kernel_lock udp6_detach_wrapper+14 0.00 62 0.37 kernel_lock udp_attach_wrapper+16 0.00 55 0.31 kernel_lock udp_detach_wrapper+16 0.00 261 0.18 kernel_lock kqueue_register+25b 0.00 37 0.13 kernel_lock udp6_attach_wrapper+1a 0.00 144 0.13 kernel_lock ipintr+37 0.00 216 0.11 kernel_lock VOP_SEEK+9c 0.00 32 0.08 kernel_lock udp6_ctloutput_wrapper+1f 0.00 12 0.03 kernel_lock udp_ctloutput_wrapper+1f 0.00 5 0.02 kernel_lock tcp_ctloutput_wrapper+1f 0.00 33 0.02 kernel_lock usb_transfer_complete+122 0.00 6 0.02 kernel_lock tcp_peeraddr_wrapper+1b 0.00 10 0.02 kernel_lock tcp_disconnect_wrapper+18 0.00 5 0.02 kernel_lock udp6_bind_wrapper+1e 0.00 10 0.01 kernel_lock tcp_delack+5b 0.00 9 0.01 kernel_lock wqinput_work+7b 0.00 3 0.00 kernel_lock route_intr+2c 0.00 3 0.00 kernel_lock tcp_ctloutput_wrapper+1f 0.00 3 0.00 kernel_lock arpintr+21 0.00 1 0.00 kernel_lock uiomove+de 0.00 1 0.00 kernel_lock syn_cache_timer+20 0.00 1 0.00 kernel_lock udp6_sockaddr_wrapper+17 0.00 1 0.00 kernel_lock udp_bind_wrapper+1e 0.00 1 0.00 kernel_lock VOP_ABORTOP+94 0.00 1 0.00 kernel_lock route_send_wrapper+2b 0.00 1 0.00 kernel_lock tcp_sockaddr_wrapper+1b 0.00 1 0.00 kernel_lock udp_disconnect_wrapper+1a -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly.
Attachment:
signature.asc
Description: PGP signature