- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: query on time and timex command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 09:21 PM
03-05-2009 09:21 PM
I have a query on time or timex command.
Take the below example. My query is that what are the real / user and sys signifies. I saw the man page to become more confused.. Please help. [ I assume that the real time is the one which is the time taken for the command execution ]
root@host1:>time find /app >/dev/null
real 2.7
user 0.3
sys 2.2
I have seen the man page small caption below:
DESCRIPTION : command is executed. Upon completion, time prints the elapsed time
during the command, the time spent in the system, and the time spent executing the command. Times are reported in seconds.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 09:24 PM
03-05-2009 09:24 PM
Re: query on time and timex command
Yes, the time you would measure if you used a stopwatch. This includes all of the wait times which aren't included in user or sys.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 09:25 PM
03-05-2009 09:25 PM
Re: query on time and timex command
And Upon completion, time prints the elapsed time
during the command, the time spent in the system, and the time spent executing the command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 09:33 PM
03-05-2009 09:33 PM
Re: query on time and timex command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 09:56 PM
03-05-2009 09:56 PM
Re: query on time and timex command
the system time is the time the cpu spent doing system related tasks (the kernel...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 10:50 PM
03-05-2009 10:50 PM
Re: query on time and timex command
In the contect of my example, what I assume and understand is : My command / script has got some system calls which have to be taken care by the kernel, in this case listing the files/dir from disk in /app area. So kernel took some time , that is sys time ?? is that correct .. I may be wrong .. then what is user time ?
root@host1:>time find /app >/dev/null
real 2.7
user 0.3
sys 2.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 11:08 PM
03-05-2009 11:08 PM
SolutionYes. System time is the time the kernel uses to manage the system. It could be swapping you in and out, setting up I/O, moving the data to your buffers, etc.
>then what is user time?
This is the time spent outside the kernel, in your executable or shlib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2009 02:41 AM
03-06-2009 02:41 AM