Sponsored Content
Operating Systems Solaris HELP - memory usage on Solaris : ps -efl and top Post 302454740 by newbie_01 on Monday 20th of September 2010 01:19:35 AM
Old 09-20-2010
Quote:
Originally Posted by jlliagre
"top" isn't part of the OS. It is known to report confusing data as it doesn't use always the same terminology as Solaris does. Better to avoid it and use prstat, vmstat, "swap -s" and the likes.
Hi,

SmilieI totally agreed with what you noted so I will stick to the known reliable generic commands of vmstat, prstat etc. I got some more questions below, if you don't mind ... SmilieSmilie

Quote:
There is hopefully no minimum memory usage kernel tuning per process. I would guess this is simply due to shared memory accounted to each process.
What problem do you want to troubleshoot ? You tell there is no swapping reported so IMHO nothing to fix.
You have plenty of available memory (most of the ZFS file data is available to applications should they need it) and anyway, unused memory is wasted memory.
- SmilieAgain, totally agreed, no swapping = no problem = nothing to fix. And you are right, unused memory is wasted memory, it's like why worry about 90% CPU used as long as it is a valid not for aethestic reason, i.e. looks good/bad on the graph Smilie

- In saying that, what am mainly wanting to achieve I suppose is whether the reported memory usage from ps -efl column is correct or not. If I sum up the values under the SZ column and the total is less than the total RAM on the server, does that mean, swapping is not happening. Will there be a case where the sum of the SZ column is greater than the total RAM on the server in which case, that should mean swapping is happening? BTW, is it possible to get total memory usage using the ps command ... Smilie ... am currently doing this via an awk script.

- SmilieSmilieYou said "You have plenty of available memory (most of the ZFS file data is available to applications should they need it)", how are you able to tell that it is available or unavailable? Am presuming you are getting this info from the "echo ::memstat | mdb -k". Doesn't the output from that mean used/allocated memory by "ZFS File Data" rather than whether it is available/unnavailable memory or is that a wrong assumption? Can you please explain further?

- The "no swapping" conclusion is from the top command so without using top, my vmstat output is as below, po is zero (0) so that confirms that swapping is not happening.

vmstat output:
Code:
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr vc vc vc --   in   sy   cs us sy id
 0 0 0 970584 531248 244 768 145 0 0  0  0  0  0  2  0 1181 2719 1424  2  2 96
 0 0 0 967432 526872 979 1311 13 0 0  0  0 18  0  2  0 1025 5305 1159  7  7 86
 0 0 0 968808 529360 125 470 16 0  0  0  0  0  0  1  0  772 2869 1076  1  3 96
 0 0 0 969936 530528 32 163  2  0  0  0  0  0  0 23  0  803  820  722  0  1 98
 0 0 0 968120 530472 32 163 24  0  0  0  0  0  0  2  0  750  923  628  0  1 98
 0 0 0 970072 530520 47 217  5  0  0  0  0  0  0  4  0  900 1585  914  1  1 97
 0 0 0 970072 530480 32 163 10  0  0  0  0  4  0  2  0  817  897  746  1  1 98
 0 0 0 970072 530424 45 245  2  0  0  0  0  4  0  3  0  786 1183  696  1  1 98
 0 0 0 970072 530392 33 163 16  0  0  0  0  0  0 31  0  987 1050 1001  1  1 98
 0 0 0 969968 530104 29 127  0  0  0  0  0  0  0  3  0  660  788  548  1  1 98
 0 0 0 969944 530072 94 259  0  0  0  0  0  0  0  1  0  685 1983  565  1  2 97
 0 0 0 969504 529392 565 1207 3 0  0  0  0  0  0  1  0  857 5262 1115  5  3 92
 0 0 0 969624 529416 268 555 3  0  0  0  0  3  0  2  0  934 2734 1063  2  2 96
 0 0 0 965576 524256 1635 3352 37 0 0 0  0  0  0  2  0 1312 13458 2363 15 12 73

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

unix top command (memory usage)

in unix when i use top i get an output like this: load averages: 0.64, 0.57, 0.53 14:04:42 347 processes: 1 running, 1 waiting, 169 sleeping, 172 idle, 4 stopped CPU states: 16.4% user, 2.8% nice, 7.6%... (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies

2. UNIX for Dummies Questions & Answers

How to get system memory usage like top

Hello all im working on sunos machine that dont have the top installed and can't be install , now i need to get information similar to what top gives me about the cpu usage and so can it be done somehow else where ? (3 Replies)
Discussion started by: umen
3 Replies

3. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

4. Solaris

Memory usage in Solaris - memory not freed?

Hi, I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory. I'm using "top" to get the free memory and the memory usage of processes. Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies

5. Solaris

Memory usage, free and used, using sar, top and vmstat in Solaris zone/container

Hi all, I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right. Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. UNIX for Dummies Questions & Answers

HOWTO - Total memory and CPU usage ... without top?

Hi all, Is it possible to get total memory usage and free memory usage without top? By Googling I found for total memory usage, use vmstat, for CPU, use mpstat, for disk I/O use iostat, is this correct? Will using sar gives the same result as ALL of these three (3) commands? What about if I... (2 Replies)
Discussion started by: newbie_01
2 Replies

7. Solaris

Memory usage in a Solaris Container

Hi All, We have a server with Solaris 10 installed. The total memory of the server is 64GB. In order to check the memory info of the server I use "top" utility that gives me total and free memory in real-time. I have also installed a Sun container (non-global zone) on top of parent operating... (4 Replies)
Discussion started by: Slayer
4 Replies

8. Linux

Unkown memory usage, top doesn't know

Hi, Yersterday I started monitoring my homeserver memory consumition due some errors found in the system (network hangs). I've detected almost all the memory used (~10 MB free from 1GB). First I thought it was because of the MySQL configuration, so I monitored it with top and found it wasn't... (6 Replies)
Discussion started by: nefeli
6 Replies

9. UNIX for Advanced & Expert Users

Solaris memory reported incorrectly by top

Hi guys, I got an issue today with one of my servers. The guy is reporting by top only 1.8 available Gig for physical memory. I see my processes and they don't even get to 15Gigs, I have 64 physical Gigs. Details Memory: 64G phys mem, 1820M free mem, 32G total swap, 32G free swap I have... (4 Replies)
Discussion started by: ocramas
4 Replies

10. Solaris

Solaris memory usage

One of my Solaris Unix server has total RAM 128G . top & vmstat command shows free memory is 86G and usage is 42G. ps -eo pid,rss,commshows memory usage by process. when i sum all the memory usage by the process, it shows 1.9TB as shown below. $ ps -eo pid,pmem,vsz,rss,comm | sort -rnk2 |... (5 Replies)
Discussion started by: baladelaware73
5 Replies
All times are GMT -4. The time now is 11:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy