LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Any chance to get length of run queue and swap queue? (https://www.linuxquestions.org/questions/programming-9/any-chance-to-get-length-of-run-queue-and-swap-queue-842163/)

emJ4y 11-03-2010 01:57 PM

Any chance to get length of run queue and swap queue?
 
Hi there,

is it possible to get the length or even the items of both queues, the run queue and the swap queue? I've googled a lot but had no luck. Maybe I havn't used the correct search words...

Is there any header and/or code example to use structures or any API to get these information from the kernel or the scheduler?

Many thanks,

Markus

stress_junkie 11-03-2010 02:13 PM

There are some utilities to provide this kind of information such as ps and vmstat. These utilities are typically just a way to search for specific information in the /proc area. You might try looking for what information is kept in this area and which "files" contain the information that you seek.


All times are GMT -5. The time now is 11:35 PM.