LinuxQuestions.org
Review your favorite Linux distribution.
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 11-21-2011, 09:12 AM   #1
eidbadrlt
LQ Newbie
 
Registered: Nov 2011
Posts: 11

Rep: Reputation: Disabled
user and system time per process


is there a command to get the user and system time per each process?
 
Old 11-21-2011, 09:51 AM   #2
eidbadrlt
LQ Newbie
 
Registered: Nov 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
is it even possible to get those values per each process?
 
Old 11-21-2011, 12:20 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by eidbadrlt View Post
is there a command to get the user and system time per each process?
'ps' should, with the "--noheader -C [Process_Name] -o cstime,cutime" args, but those are deprecated. 'procstat', this or this version, should show utime and stime. Of course you could also just 'awk '{print "proc: "$2" state: "$3" user: "$14" kernel: "$15}' /proc/{Process_Id}/stat;'.


Quote:
Originally Posted by eidbadrlt View Post
is it even possible to get those values per each process?
The fact that nobody responds immediately should not be a reason to bump your thread by posting a reply yourself: edit your original post instead. The other reason for not posting a first reply yourself is the thread gets dropped out of the 0-reply pool.
 
  


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
user time, system time, real time .. reg chaitanyajun12 Linux - Newbie 7 03-14-2016 05:43 PM
how do i get the values for the user time and system time for a process. aloktiagi Linux - Newbie 3 08-04-2009 06:55 PM
Running a process at boot time under a regular user account geek.ksa Linux - Newbie 3 07-06-2009 02:31 PM
Process System Time from ps? kmand Linux - Software 4 04-21-2009 09:53 AM
Debian: top process under user root uses all CPU time jlinkels Linux - Software 7 01-22-2009 09:02 PM

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

All times are GMT -5. The time now is 07:43 PM.

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