swiftgri...@gmail.com (Swift Griggs) writes:
>Folks, I recently installed NetBSD on a Lenovo M83 Tiny machine and from
>time to time, I notice the "[system]" (appears to be a kernel thread?)
>getting up to 80% of the CPU while the box is doing nothing.
[system] is all the kernel threads. In top you can switch to thread
display and get more details. Kernel threads are also displayd with 'ps -s'
and you can augment the display with the thread name using '-o lname'.
80% CPU for doing nothing however is bad. The top display probably tells
you which thread is misbehaving.
>On another system, I have a question about a 1.8Ghz CoreDuo based 32-bit
>i386 laptop with 2GB of RAM. I noticed that '[system]' accumulates the
>most time on the host, but it's never "on the board" when I run top or
>other tools.
The kernel threads are only active for very short time intervals
and therefore appear rarely as active. But since they run all the
time, their usage accumulates. E.g.
a system with 59 days uptime:
0 ? OKl 678:30.07 [system]
that's less than 1% overall. Here are the kernel threads reports by 'ps':
% ps asx -o uid,pid,ppid,cpu,pri,nice,vsz,rss,wchan,stat,tty,time,comm,lname |
grep system
0 0 0 0 123 0 0 7728 -OKl ? 678:30.22 [system
(zombie)
0 0 0 0 96 0 0 7728 vndbpOKl ? 678:30.22 [system
vnd0
0 0 0 0 96 0 0 7728 nfsiod OKl ? 678:30.22 [system
nfsio
0 0 0 0 96 0 0 7728 nfsiod OKl ? 678:30.22 [system
nfsio
0 0 0 0 96 0 0 7728 nfsiod OKl ? 678:30.22 [system
nfsio
0 0 0 0 96 0 0 7728 nfsiod OKl ? 678:30.22 [system
nfsio
0 0 0 0 123 0 0 7728 physiod OKl ? 678:30.22 [system
physiod
0 0 0 0 96 0 0 7728 lnxcmplt OKl ? 678:30.22 [system
VCHIQka-0
0 0 0 0 125 0 0 7728 aiodoned OKl ? 678:30.22 [system
aiodoned
0 0 0 0 124 0 0 7728 syncer OKl ? 678:30.22 [system
ioflush
0 0 0 0 126 0 0 7728 pgdaemon OKl ? 678:30.22 [system
pgdaemon
0 0 0 0 123 0 0 7728 data OKl ? 678:30.22 [system
vcaudio
0 0 0 0 96 0 0 7728 semacv OKl ? 678:30.22 [system
VCHIQs-0
0 0 0 0 96 0 0 7728 semacv OKl ? 678:30.22 [system
VCHIQr-0
0 0 0 0 96 0 0 7728 semacv OKl ? 678:30.22 [system
VCHIQ-0
0 0 0 0 96 0 0 7728 cleanup OKl ? 678:30.22 [system
iscsi_cleanup
0 0 0 0 96 0 0 7728 sccomp OKl ? 678:30.22 [system
scsibus0
0 0 0 0 96 0 0 7728 usbevt OKl ? 678:30.22 [system
usb0
0 0 0 0 96 0 0 7728 npfgccv OKl ? 678:30.22 [system
npfgc
0 0 0 0 96 0 0 7728 unpgcOKl ? 678:30.22 [system
unpgc
0 0 0 0 222 0 0 7728 nd6_time OKl ? 678:30.22 [system
nd6_timer
0 0 0 0 222 0 0 7728 rt_timer OKl ? 678:30.22 [system
rt_timer
0 0 0 0 43 0 0 7728 vcmbox0 OKl ? 678:30.22 [system
vcmbox0
0 0 0 0 125 0 0 7728 vmem_reh OKl ? 678:30.22 [system
vmem_rehash
0 0 0 0 123 0 0 7728 mmctaskq OKl ? 678:30.22 [system
sdmmc0
0 0 0 0 96 0 0 7728 usbtsk OKl ? 678:30.22 [system
usbtask-dr
0 0 0 0 96 0 0 7728 usbtsk OKl ? 678:30.22 [system
usbtask-hc
0 0 0 0 43 0 0 7728 dwc2 OKl ? 678:30.22 [system
dwc2
0 0 0 0 96 0 0 7728 iicintr OKl ? 678:30.22 [system
iic0
0 0 0 0 127 0 0 7728 xcallOKl ? 678:30.22 [system
xcall/3
0 0 0 0 223 0 0 7728 -OKl ? 678:30.22 [system
softser/3
0 0 0 0 220 0 0 7728 -OKl ? 678:30.22 [system
softclk/3
0 0 0 0 221 0 0 7728 -OKl ? 678:30.22 [system
softbio/3
0 0 0 0 222 0 0 7728 -OKl ? 678:30.22 [system
softnet/3
0 0 0 0 0 0 0 7728 -OKl ? 678:30.22 [system
idle/3
0 0 0 0 127 0 0 7728 xcallOKl ? 678:30.22 [system
xcall/2
0 0 0 0 223 0 0 7728 -OKl ? 678:30.22 [system
softser/2
0 0 0 0 220 0 0 7728 -OKl ? 678:30.22 [system
softclk/2
0 0 0 0 221 0 0 7728 -OKl ? 678:30.22 [system
softbio/2
0 0 0 0 222 0 0 7728 -OKl ?