02-24-2009
shared = used by more than one process
memory = you know it
segments = contiguous portions or memory
Several of your oracle processes are likely to use the very same segments which are accounted independently by the prstat command leading to the bogus statistics.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
The last line of prstat shows load average.
I am unable to figure out what actually it is.
I have read the man pages and also googled, all for no use.
Can somebody help me, as to what should be the avg. load of the system for best performance and how is this load of prstat calculated. (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
2. Shell Programming and Scripting
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
3. Solaris
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
4. Shell Programming and Scripting
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
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
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
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
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
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
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
shmx(8) System Manager's Manual shmx(8)
NAME
shmx - shared memory exerciser
SYNOPSIS
/usr/field/shmx [-h] [-ofile] [-ttime] [-msize] [-ssegment] [-v]
OPTIONS
You can use the following options: Prints the help message for the shmx command. Uses the fork(2) system call instead of the vfork(2) call
to spawn shmxb. Saves diagnostic output in file. Specifies the run time in minutes. The default is to run until the process is killed.
Specifies the memory segment size in bytes to be tested by the processes. Must be greater than 0. The default is SHMMAX/SHMSEG. (SHMMAX
and SHMSEG are system parameters set in the </sys/include/sys/param.h> file.) Specifies the number of memory segments. The default and
maximum number is 3.
DESCRIPTION
The shmx memory exerciser spawns the background process shmxb, and these two processes exercise the shared memory segments. They alternate
writing and reading the other process' data in the segments.
You can specify the number of memory segments to test and the size of the segment to be tested by shmx and shmxb processes. The shmx exer-
ciser runs until the process is killed.
A log file for you to examine and then remove is created in the current working directory. If there are errors in the logfile, check the
syslog files where the driver and kernel error messages are saved. The shmx exerciser is automatically invoked when the memx exerciser is
started. You can also invoke shmx manually.
RESTRICTIONS
If you need to run a system exerciser over an NFS link or on a diskless system, there are some restrictions. For exercisers that need to
write into a file system, such as fsx(8), the target file system must be writable by root. Also the directory from which the exercisers
are executed must be writable by root because temporary files are written into the current directory. These latter restrictions are some-
times difficult to overcome because often NFS file systems are mounted in a way that prevents root from writing into them. Some of the
restrictions may be overcome by copying the exerciser to another directory and then executing it.
EXAMPLES
The following example tests the default number of memory segments (3), each with the default segment size (SHMMAX/SHMSEG): %
/usr/field/shmx & The following example runs two memory segments of size 100,000 bytes for 180 minutes: % /usr/field/shmx -t180 -m100000
-s2 &
SEE ALSO
Commands: cmx(8), diskx(8), fsx(8), memx(8), tapex(8)
shmx(8)