Sponsored Content
Full Discussion: Help with prstat
Top Forums UNIX for Dummies Questions & Answers Help with prstat Post 68797 by Perderabo on Thursday 7th of April 2005 06:41:57 AM
Old 04-07-2005
Just lower the priority of your program. Then let kernel decide when to run your program. See "man nice".
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script using prstat

Hi, I need a script which uses prstat command to check the performance . if a load averages crosses some threshold means I should receive the mail. this script should always run in back ground. Kindly help me on this. (1 Reply)
Discussion started by: jayaramanit
1 Replies

2. Solaris

prstat log

Hi All, Operating System and Version: SunOS,Solaris 10 sparc(64 bit) RDBMS Version: 10.2.0.4.0 But the prstat logs of my system shows:- NPROC USERNAME SWAP RSS MEMORY TIME CPU 83 cemsbin 5204M 3604M 22% 53:46:00 6.7% 2 adm 244M 240M 1.5% 15:13:53 3.5% 77 oracle 17G 10G 65% 4:24:47... (0 Replies)
Discussion started by: dipashre
0 Replies

3. Solaris

prstat O/P

Good Evening everyone, I am confused about prstat O/P as it shows memory values which are different from actual value.Below is the O/P of prstat command and swap commands. NPROC USERNAME SIZE RSS MEMORY TIME CPU 48 root 2113M 1590M 1.2% 45:09.39 32% 31 daemon ... (7 Replies)
Discussion started by: vvpotugunta
7 Replies

4. Shell Programming and Scripting

prstat output in GB

Hi, Is there any way by which the unit of size and rss will be only GB while I am running the prstat command? (2 Replies)
Discussion started by: King Nothing
2 Replies

5. Shell Programming and Scripting

prstat

hi all, am writing a ksh script on solaris 9 to get the number of threads taken by a process. am using the prstat -p command to do this. output i get is : :"/export/home/user" > prstat -p 25528 | cut -f2 -d/ NLWP 203 Total: 1 processes, 203 lwps, load averages: 2.58, 3.24, 3.62... (2 Replies)
Discussion started by: cesarNZ
2 Replies

6. Solaris

prstat

hi all, was trying to figure out how busy my app was by looking at the performance of the app server. did a 'prstat -s rss' command to find the app servers using most memory. Found a command 'prstat -m' which is meant to show more details on each pid but the output of this command... (1 Reply)
Discussion started by: cesarNZ
1 Replies

7. Shell Programming and Scripting

prstat output

hi all, have a ksh script where i am doing a prstat -m -u osuser 1 1 >> $FILE_NAME but for some reason it only writes 15 lines wheres when i run the same command manually from command prompt it prints out 60 lines. why is it not writing the full 60 lines to the file ?? ta. (1 Reply)
Discussion started by: cesarNZ
1 Replies

8. Shell Programming and Scripting

prstat from ptree ...

Hi, I know how to figure out the list of PID from my application name : ptree `pgrep MyApp` | awk '{print $1}' But I dont know how to pipe it for prstat -p <pidlist> ptree `pgrep MyApp` | awk '{print $1}' | prstat -p ??? I would like to monitor every ptree PID from my application. ... (4 Replies)
Discussion started by: RickTrader
4 Replies

9. Shell Programming and Scripting

prstat with ksh

trying to have prstat into a file on a Solaris machine. Would like to have the prstat run from a cron every 30 min. print 300 lines+ date. Date is not printed, only the prstat, and ksh does not end, it stays running... #!/bin/ksh # ---------------------------------------------------- #... (4 Replies)
Discussion started by: pointer
4 Replies

10. Solaris

prstat on Solaris 8

On Solaris 8, when I try to run prstat 30 5 as a background process, the command exits 1-2 seconds after it's initiated instead of the 30 seconds I specified. It runs fine in interactive mode. Is there a workaround to this I could use? (Upgrading the package is not an option) A link to... (1 Reply)
Discussion started by: Devyn
1 Replies
pset_getloadavg(3C)					   Standard C Library Functions 				       pset_getloadavg(3C)

NAME
pset_getloadavg - get system load averages for a processor set SYNOPSIS
#include <sys/pset.h> #include <sys/loadavg.h> int pset_getloadavg(psetid_t pset, double loadavg[], int nelem); DESCRIPTION
The pset_getloadavg() function returns the number of processes assigned to the specified processor set that are in the system run queue, averaged over various periods of time. Up to nelem samples are retrieved and assigned to successive elements of loadavg[]. The system imposes a maximum of 3 samples, representing averages over the last 1, 5, and 15 minutes, respectively. The LOADAVG_1MIN, LOADAVG_5MIN, and LOADAVG_15MIN indices, defined in <sys/loadavg.h>, can be used to extract the data from the appropri- ate element of the loadavg[] array. If pset is PS_NONE, the load average for processes not assigned to a processor set is returned. If pset is PS_MYID, the load average for the processor set to which the caller is bound is returned. If the caller is not bound to a pro- cessor set, the result is the same as if PS_NONE was specified. RETURN VALUES
Upon successful completion, the number of samples actually retrieved is returned. If the load average was unobtainable or the processor set does not exist, -1 is returned and errno is set to indicate the error. ERRORS
The pset_getloadavg() function will fail if: EINVAL The number of elements specified is less than 0, or an invalid processor set ID was specified. The caller is in a non-global zone, the pools facility is active, and the specified processor set is not that of the zone's pool. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ |MT-Level |Async-Signal-Safe | +-----------------------------+-----------------------------+ SEE ALSO
uptime(1), w(1), psrset(1M), prstat(1M), pset_bind(2), pset_create(2), Kstat(3PERL), attributes(5) SunOS 5.10 28 Jun 2004 pset_getloadavg(3C)
All times are GMT -4. The time now is 08:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy