I am already using sysinfo:::pswitch and sysinfo::preempt:inv_swtch to profile voluntary and involuntary context switches. The output for voluntary switches seems to be ok (i see them on system calls like doorfs(), lwp_park(), yield() etc). But I was not really sure about the output for involuntary context switches. Sometimes I see them happening without any system calls which is fine. But many times I see them happening with many other system calls such as read(), fstat() etc and with lwp_park() as well. I was expecting voluntary switches with system calls!!
I have another confusion, is lwp_park() always followed by a context switch or not? Thanks, Neelam -- This message posted from opensolaris.org _______________________________________________ dtrace-discuss mailing list [email protected]
