Jesse Carroll
2008-Feb-26 19:51 UTC
[dtrace-discuss] dtrace to show which lwp''s are waiting
In the vmstat output under the ''kthr'' colums I can see a good number of swapped out LWP''s (the ''w'') column. Is there a Dtrace tool (or other tool) that will show me which LWP''s are swapped? Jesse -- This message posted from opensolaris.org
przemolicc at poczta.fm
2008-Feb-27 08:35 UTC
[dtrace-discuss] dtrace to show which lwp''s are waiting
On Tue, Feb 26, 2008 at 11:51:07AM -0800, Jesse Carroll wrote:> In the vmstat output under the ''kthr'' colums I can see a good number of swapped out LWP''s (the ''w'') column. Is there a Dtrace tool (or other tool) that will show me which LWP''s are swapped?http://przemol.blogspot.com/2007/10/sunsolve-deeper-look-into-vmstat.html Regards przemol -- http://przemol.blogspot.com/ ---------------------------------------------------------------------- Wojna wampirow trwa - po ktorej jestes stronie? Zagraj >>> http://link.interia.pl/f1cf4
Jesse Carroll
2008-Feb-27 14:02 UTC
[dtrace-discuss] dtrace to show which lwp''s are waiting
Excellent, especially the referenced document http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-62-213108-1. -- This message posted from opensolaris.org
Jesse Carroll
2008-Feb-27 16:42 UTC
[dtrace-discuss] dtrace to show which lwp''s are waiting
Oh, and I forgot the details. The mdb command used: mdb -k <<EOF ::walk thread myvar|::print kthread_t t_schedflag|::grep .==0|::eval <myvar=K|:: print kthread_t t_procp->p_user.u_comm EOF What I found was that the threads where swapped out due to a memory shortfall and they where sleeping. Once swapped out they will not "un-swap" unless they go to running. The number displayed by the mdb output matched the ''w'' column from vmstat. -- This message posted from opensolaris.org