LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   information about task_struct entries.. (https://www.linuxquestions.org/questions/linux-newbie-8/information-about-task_struct-entries-623929/)

vinodhegde64 02-26-2008 07:50 AM

information about task_struct entries..
 
Hi Everyone,

I am trying to analyse the process parameters by collecting them periodically. But I could not get much information about the entries in /linux/sched.h about task_struct.

So could you please guide me about the resources where much of the information is available on task_struct.

Thanks in Advance...

Simon Bridge 02-26-2008 08:02 AM

Well, it's better than your last attempt.

GIYF:
http://people.clarkson.edu/~pryzbyj/...sk_struct.html
http://www.cs.rochester.edu/~sanders...ler/node3.html

But what do you want to keep track of exactly?
What information are you trying to collect?
Why do you need "at least two lines for each one?

This still looks like homework - we can help you help yourself, but won't actually write the thing.

vinodhegde64 02-26-2008 08:16 AM

Hi,

Actually, I want to get the statistics about the process, about the stack growth, virtual memory allocations and deallocations, network traffic information corresponding to the process, context switches and so on.. i am trying to write resource utilization analyser.
If I can get exact information about the entries, i would be able to select the parameters to record..

I tried lots in google , but could not find much.
Please guide me with some resources..

Thanks a lot..

Simon Bridge 02-26-2008 10:54 AM

OK... that's actually quite a wide brief - many of these things (like network traffic) have tools to monitor them already. There are also logs. So what you are looking for is probably not usefully served by sched.h stuff.

Monitoring stack useage of a running process is tricky.
http://forums11.itrc.hp.com/service/...readId=1184297

vmstat(8) is used to monitor virtual memory. etc.

But your request is too general to provide decent answers. Identify the resources you want to track in your program, then you will be able to find how those resources are normally tracked. You program will collect and parse the information already available.


All times are GMT -5. The time now is 10:23 PM.