Sponsored Content
Top Forums UNIX for Advanced & Expert Users Process accounting and Shell process time Post 302302782 by santoshbr4 on Wednesday 1st of April 2009 03:10:26 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SA(8)							      System Manager's Manual							     SA(8)

NAME
sa, accton - system accounting SYNOPSIS
sa [ -abcdDfijkKlnrstu ] [ -v threshold ] [ -S savacctfile ] [ -U usracctfile ] [ file ] accton [ file ] DESCRIPTION
With an argument naming an existing file, accton causes system accounting information for every process executed to be placed at the end of the file. If no argument is given, accounting is turned off. Sa reports on, cleans up, and generally maintains accounting files. Sa is able to condense the information in /usr/adm/acct into a summary file /usr/adm/savacct which contains a count of the number of times each command was called and the time resources consumed. This condensation is desirable because on a large system /usr/adm/acct can grow by 100 blocks per day. The summary file is normally read before the accounting file, so the reports include all available information. If a file name is given as the last argument, that file will be treated as the accounting file; /usr/adm/acct is the default. Output fields are labeled: "cpu" for the sum of user+system time (in minutes), "re" for real time (also in minutes), "k" for cpu-time aver- aged core usage (in 1k units), "avio" for average number of i/o operations per execution. With options fields labeled "tio" for total i/o operations, "k*sec" for cpu storage integral (kilo-core seconds), "u" and "s" for user and system cpu time alone (both in minutes) will sometimes appear. There are near a googol of options: a Print all command names, even those containing unprintable characters and those used only once. By default, those are placed under the name `***other.' b Sort output by sum of user and system time divided by number of calls. Default sort is by sum of user and system times. c Besides total user, system, and real time for each command print percentage of total time over all commands. d Sort by average number of disk i/o operations. D Print and sort by total number of disk i/o operations. f Force no interactive threshold compression with -v flag. i Don't read in summary file. j Instead of total minutes time for each category, give seconds per call. k Sort by cpu-time average memory usage. K Print and sort by cpu-storage integral. l Separate system and user time; normally they are combined. m Print number of processes and number of CPU minutes for each user. n Sort by number of calls. r Reverse order of sort. s Merge accounting file into summary file /usr/adm/savacct when done. t For each command report ratio of real time to the sum of user and system times. u Superseding all other flags, print for each command in the accounting file the user ID and command name. v Followed by a number n, types the name of each command used n times or fewer. Await a reply from the terminal; if it begins with `y', add the command to the category `**junk**.' This is used to strip out garbage. S The following filename is used as the command summary file instead of /usr/adm/savacct. U The following filename is used instead of /usr/adm/usracct to accumulate the per-user statistics printed by the -m option. FILES
/usr/adm/acct raw accounting /usr/adm/savacct summary /usr/adm/usracct per-user summary SEE ALSO
ac(8), acct(2) BUGS
The number of options to this program is absurd. 4th Berkeley Distribution November 16, 1996 SA(8)
All times are GMT -4. The time now is 08:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy