LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2008, 07:50 AM   #1
vinodhegde64
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
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...

Last edited by vinodhegde64; 02-26-2008 at 07:51 AM.
 
Old 02-26-2008, 08:02 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.

Last edited by Simon Bridge; 02-26-2008 at 08:04 AM.
 
Old 02-26-2008, 08:16 AM   #3
vinodhegde64
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
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..
 
Old 02-26-2008, 10:54 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to sort output at latest entries without disturbing the previous entries record nabmufti Programming 4 02-11-2008 11:36 PM
How to get details from task_struct imsandy_007 Programming 1 02-13-2007 11:08 AM
Displaying Process Information From task_struct smoothdogg00 Programming 1 12-19-2006 04:57 PM
differences in task_struct between 2.4 and 2.6 ploo Linux - Kernel 3 04-24-2006 04:09 AM
How to use task_struct to get process information?? Pratik H Pandya Programming 2 09-15-2005 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration