LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-27-2006, 06:43 AM   #1
sunnyboy_sg
LQ Newbie
 
Registered: Jan 2002
Distribution: Redhat AS 4
Posts: 2

Rep: Reputation: 0
Top and Prstat display different results for memory


I have a question about the accuracy of prstat.

I did a 'prstat -t' and it shows 99% of my memory is occupied by oracle.

NPROC USERNAME SIZE RSS MEMORY TIME CPU
194 oracle 343G 340G 99% 86:17.24 56%


However, 'top' shows I still have 7762meg of memory free.

Memory: 16G real, 7762M free, 80K swap in use, 8203M swap free


A vmstat shows the following.

procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr s6 s1 s1 s1 in sy cs us sy id
0 0 0 16639088 8461488 0 0 0 0 0 0 0 0 82 95 0 4294967196 0 0 -561 -113 -1069
0 0 0 16172032 7959784 5301 3 16992 0 0 0 0 0 4 739 0 4266 9154 1265 25 12 63
0 1 0 16172032 7959848 1539 319 10020 0 0 0 0 0 0 321 0 3709 12723 1531 32 11 57
0 0 0 16172000 7959880 763 319 7772 0 0 0 0 0 1 234 0 3286 8636 1433 26 4 69
0 0 0 16172032 7959912 671 0 5756 0 0 0 0 0 1 179 0 3154 7395 1473 22 3 76


Deos anyone know why prstat shows 99% of memory usage which I doubt is accurate at all.
 
Old 01-01-2007, 11:20 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,731

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Reading the manual page often give useful hints.

man prstat states:

The total memory size reported in the SIZE and RSS columns for groups of processes can sometimes overestimate the actual amount of memory used by processes with shared memory segments.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Red Hat Shares Up As Results, Outlook Top Forecasts LXer Syndicated Linux News 0 12-25-2006 11:54 PM
ps -x, top won't display siphon Debian 2 09-09-2005 01:18 AM
Conflicting results with usb memory sticks Taliesin Linux - Hardware 4 03-31-2005 01:43 AM
Kernel recompile results in no display jrdioko Linux - Newbie 7 07-01-2004 01:17 PM
Results from top command...user Q...? cbjhawks Linux - Software 1 09-20-2003 11:06 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration