Re: [dtrace-discuss] about sched interrupt

2010-01-24 Thread Qihua Wu
Hi Max/Jim, Based on your script, I created the following script to print which pid is interrupted how many times every 2 second. The result shows pid 0 is interrupted most: about 50k every 2 second, that's 25k per second. How could it be interrupted so frequently? For the clock interrupt, it

Re: [dtrace-discuss] about sched interrupt

2010-01-24 Thread Jim Mauro
PID 0 isn't really a process. It's the kernel - that's something of an oversimplification, but for the purposes of this discussion, just know that pid 0 is not a process. Interrupts do not target processes. Devices bind interrupts to CPU at initialization time. Use 'echo ::interrupts | mdb -k