LinuxQuestions.org
Visit Jeremy's Blog.
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 03-11-2009, 05:42 AM   #1
haseit
LQ Newbie
 
Registered: Jan 2009
Location: Colombo / Sri Lanka
Posts: 14

Rep: Reputation: 0
Get the username , memoery size and thread count for a given PID


Hello all,

I need to get some useful information about process.
my question is,

1. How to get the UID from PID?
2. How to get the process size from PID?
3. How to get the Thread count for a PID?

Please help me on this matter.

Thanks
Hasantha
 
Old 03-11-2009, 05:49 AM   #2
Matey
Member
 
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
Quote:
Originally Posted by haseit View Post
Hello all,

I need to get some useful information about process.
my question is,

1. How to get the UID from PID?
2. How to get the process size from PID?
3. How to get the Thread count for a PID?

Please help me on this matter.

Thanks
Hasantha
Hi;
ps -aux does a lot for me.

I guess there are lots of functions under ps if run as root but I dont know most of them.
 
Old 03-11-2009, 10:12 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,661

Rep: Reputation: 485Reputation: 485Reputation: 485Reputation: 485Reputation: 485
haseit:

issue command: ps axu
1st column left is the owner ID, next is the ProcessID, next the percentage of CPU usage, then the memory used (%) and so on. description at the last column.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Get Process size and Thread count for a particular running process haseit Linux - Newbie 2 01-22-2009 11:09 PM
thread ID: how reliable is current->pid ? andersonfobr Programming 4 02-01-2006 01:31 AM
Thread subscription count Matir LQ Suggestions & Feedback 2 01-11-2006 10:07 AM
obtain pid of a kernel thread ratwings Linux - Software 0 02-11-2005 03:54 PM
Getting thread count for proc in linux vladS Linux - General 2 03-31-2004 04:28 PM

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

All times are GMT -5. The time now is 04:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration