Without using top, how to get swap space of a "subzone" on Solaris 5.10


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Without using top, how to get swap space of a "subzone" on Solaris 5.10
# 1  
Old 09-29-2010
Without using top, how to get swap space of a "subzone" on Solaris 5.10

Hi all,

OS = Solaris 5.10

Without using top, can anyone please advise how to get the current swap space that is assigned to a sub-zone that is part of the Solaris zone? Some of the servers does not have the top command and I do not have access to run zone level commands either like zonecfg etc.

Running swap -s gives which I believe is for the whole zone/container?

Code:
# swap -s
total: 70914888k bytes allocated + 18585056k reserved = 89499944k used, 1728496k available
#

top command shows 34G of swap for this server/zone, is that correct? If so, how to get this same information without using top? Will sar or vmstat give me this information?

Code:
load averages:  2.96,  2.87,  3.13;                    up 21+01:25:21                                 17:36:40
311 processes: 307 sleeping, 3 zombie, 1 on cpu
CPU states: 95.8% idle,  0.0% user,  4.2% kernel,  0.0% iowait,  0.0% swap
Memory: 96G phys mem, 15G free mem, 34G swap, 34G free swap

Thanks in advance.
# 2  
Old 09-29-2010
vmstat -s

try that ..should give u swap info.
# 3  
Old 09-29-2010
have a look at:
Code:
prstat -Z

# 4  
Old 09-29-2010
Quote:
Originally Posted by newbie_01
OS = Solaris 5.10
really Solaris 10 / SunOS 5.10
Quote:
Without using top
"top" isn't part of Solaris 10 and is sometimes providing confusing metrics. Better to stay with standard Solaris tools, like prtsat, vmstat and the likes.
Quote:
can anyone please advise how to get the current swap space that is assigned
The swap areas are shared between all zones. You cannot assign swap space to a zone. However, you can limit (cap) real and virtual memory usage by a zone.
Quote:
to a sub-zone that is part of the Solaris zone?
There is no concept of sub-zone part of the zone. There is always the global zone and possibly non-global zones but no further hierarchy (if it is what you meant with sub-zones).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Solaris

Printer configuration Migration from Solaris 10 "LP" to Solaris 11 "CUPS"

Need to find a way to import an LP printers.conf file to CUPS. I have some new Solaris 11.1 boxes that need to have 300 printers added. (0 Replies)
Discussion started by: os2mac
0 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. AIX

AIX 5.3 - Discrepancies between "top" and "vmstat"

Can someone explain the differences I'm seeing below in TOP and VMSTAT commands on my AIX 5.3 server? Thanks! CPUs: 4; load averages: 0.86, 0.97, 0.97 18:09:26 926 processes: 4 stopped, 922 running CPU states: 78.4% idle, 8.5% user, 12.6% kernel, 0.3% wait Memory: 23680M Total.... (1 Reply)
Discussion started by: troym72
1 Replies

5. Solaris

Solaris escape my script from "-" to "/226"

Hello everyone. I beg your guys pardon please. I try to ls -al in many path/directories. So, I put the code in text file which look like below; ls -al / ls -al /etc ls -al /etc/default ... however, when I paste it to Solaris over SecureCRT, it seems the code was escaped from "-" to... (0 Replies)
Discussion started by: Smith
0 Replies

6. UNIX for Dummies Questions & Answers

start top command in "solaris mode"

Ever noticed that using the top command on a multiple cpu box can often give totally misleading answers, like 230%, when you think that 100% should be the max? Well, that's because top has a bizarre mode called "Irix mode" wherein if you have 4 cpus, the %CPU column of top can go up to 400%. I... (1 Reply)
Discussion started by: fabulous2
1 Replies

7. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

8. Debian

Debian: doubt in "top" %CPU and "sar" output

Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 153.10 0.00 38.76 0.00 10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies

9. UNIX for Dummies Questions & Answers

Process seen in "ps aux" but not "top"

Hi, I have a process that can be seen after "ps aux" command. However when I do "top" command. This process cannot be seen. How can this happen? Is there anything wrong with my code? (3 Replies)
Discussion started by: monkfan
3 Replies

10. UNIX for Advanced & Expert Users

Commands on Digital Unix equivalent to for "top" and "sar" on other Unix flavour

Hi, We have a DEC Alpha 4100 Server with OSF1 Digital Unix 4.0. Can any one tell me, if there are any commands on this Unix which are equivalent to "top" and "sar" on HP-UX or Sun Solaris ? I am particularly interested in knowing the CPU Load, what process is running on which CPU, etc. ... (1 Reply)
Discussion started by: sameerdes
1 Replies
Login or Register to Ask a Question