Process accounting and Shell process time


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Process accounting and Shell process time
# 1  
Old 04-01-2009
Process accounting and Shell process time

Hi All,

I am running the following accounting on one of my executable,

$ accton /home/myexe-acct
$ ./myexe
$ accton

When I check the process timings I get the below result,
Shell process time: 300ms
myexe time: 100ms

I want to know on why the shell(sh) process is taking so much time more than the executable itself. Is the shell process time shown is the time to load the executable myexe in memory?

Let me know for any more information.

Thanks in advance.

Regards,
Santosh
# 2  
Old 04-08-2009
Try:
Code:
$ time ./myexe

and if you have it
Code:
$ timex ./myexe

These will give a break down of resource use that may give us a bit more of a clue
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies

2. UNIX for Dummies Questions & Answers

Get process's time value

Hi, I'm trying to learn csh so I've started to do some simple scrips. Now I'm kinda stuck in this one: I want to do a script that first search, for each user, if there's at least a process with a TIME >= something (30 mins, for example). There are 2 things that I cant figure out: - in the... (3 Replies)
Discussion started by: GarFunkel
3 Replies

3. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

4. Linux

Process start time not showing correct time

Process start time is not showing the correct time: I had started a process on Jun 17th at 23:30:00. Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41 Day/Date is setup correctly on the server. It... (2 Replies)
Discussion started by: hemangjani
2 Replies

5. UNIX for Dummies Questions & Answers

process accounting

When i run #acctadm command it shows it as inactive but /var/adm/pacct file has todays date such as -rw-r--r-- 1 adm adm 182397160 Mar 25 15:48 pacct # acctadm Task accounting: inactive Task accounting file: none Tracked task resources: none Untracked... (5 Replies)
Discussion started by: Tirmazi
5 Replies

6. Shell Programming and Scripting

Most time consumed process

Hi All, I have a simple question on unix command. Here, I need to find the most time consumed process running at present in my HP -UX server. Though it is possible through top command but to redirect the output I want the same done through some command like ps -aef. Also I need the user who... (2 Replies)
Discussion started by: Sreejith_VK
2 Replies

7. UNIX for Dummies Questions & Answers

how to Decrease priority of a particular process in time of process creation

how to decrease priority of a particular process in time of process creation... and also how to decrease priority of a particular process after process creation.. can any one please help me out... (2 Replies)
Discussion started by: Ramkum
2 Replies

8. Solaris

what time did my process die ??

Hi there I have a backup script that runs every night and for some reason ive been getting in in the morning and the process has died, Is there any way I can tell when it died? if not .....would anybody recommend some scripting that i could do that would be able to tell me this information ... (3 Replies)
Discussion started by: hcclnoodles
3 Replies

9. UNIX for Advanced & Expert Users

Accounting Process

Hi, I need to know , if there is some routine like a function "accton" to accounting process for HP-UX, because I need accounting the command executed for users and is necesary that include the argumments of command but the file "paccton" generated for function "accton" doesn't include them. ... (0 Replies)
Discussion started by: hvazquez
0 Replies

10. Programming

process time

Hi , I want to find the total time taken by the system for doing a particular process. Can u help me!!!!! thanx- bye (1 Reply)
Discussion started by: sathishkumar
1 Replies
Login or Register to Ask a Question