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
10 More Discussions You Might Find Interesting
1. Programming
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
2. UNIX for Advanced & Expert Users
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
3. Solaris
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
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
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
6. UNIX for Dummies Questions & Answers
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
7. Linux
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
8. Shell Programming and Scripting
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
9. UNIX for Dummies Questions & Answers
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
10. Shell Programming and Scripting
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
LEARN ABOUT CENTOS
dump-acct
DUMP_ACCT(8) System Manager's Manual DUMP_ACCT(8)
NAME
dump-acct - print an acct/pacct file in human-readable format
SYNOPSIS
dump-acct [-r|--reverse] [-R|--raw] [-n|--num recs] [--byte-swap] [--format] [--ahz freq] [-h|--help] [files]
DESCRIPTION
The dump-acct command transforms the output file from the accton format to the human-readable format: one record per line. Each record
consists of severald fields which are separated by character "|" (the meaning of concreate field depends on the version of kernel package -
with which the accton file was created).
OPTIONS
The following options are supported:
-r, --reverse
Print the output in reverse order.
-R, --raw
The records will be printed without any parsing.
-n, --num NUMRECS
Display only the first NUMRECS number of records.
--byteswap
Swap the bytes (relative to your system's native byte order) in --raw output.
--format
Set output format with --raw option.
--ahz FREQ
Set the AHZ (platform dependent frequency in Hertz) to FREQ.
-h, --help
Print a help message and the default location of the process accounting file and exit.
SEE ALSO
accton (8), lastcomm (1)
Linux accounting system 2009 December 2 DUMP_ACCT(8)