Is there a command which can tell me whats in the Solaris run queue?
I can get a count using vmstat, but I need to know what processes/threads are in there.
Is there a command which can tell me whats in the Solaris run queue?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The run-queue is always changing, so it’s almost impossible to get the set of processes in the current run-queue.
That said, you can get an approximation by looking at the
STAT(state) field of the process list fromps. When running the command below:…the if the
STATfield begins withR, then the process is markedRUNNABLEby the kernel, which on most operating systems means that it is in the run-queue. Here’s what a runnable process looks like on my machine:On solaris, you can also use the
prstatcommand and look at theSTATEcolumn. The valuerunindicates that the process is on the run-queue. (Also note that the valuecpuNindicates that the process is currently running on processor N.For example: