Check Solaris Zones Processor & Memory allocations


 
Thread Tools Search this Thread
Operating Systems Solaris Check Solaris Zones Processor & Memory allocations
# 1  
Old 10-09-2012
Check Solaris Zones Processor & Memory allocations

Hi,
I am a newbee in the solaris administration. My question is how to
1. Check the total CPU and memory of a global zone.
2. Check the allocated CPU and memory for each of the residing non-global zones.

I have already tried prtconf which gives the following output
Code:
/usr/sbin/prtconf
System Configuration:  Sun Microsystems  sun4v
Memory size: 32544 Megabytes
.....truncated

but i am unable to find out the processors and memory allocated for each non-global zone.
The zonestat utility is not present in the system.
Kindly help

Thanks,
Poga

Last edited by fpmurphy; 10-10-2012 at 12:48 PM..
# 2  
Old 10-09-2012
CPU and memory is shared between all zones. They can be capped and to know it, the simplest way is to look at each zone configuration:

Code:
zonecfg -z zonename info

# 3  
Old 10-09-2012
Thanks jlliagre.
But how to interpret the following info in terms of the CPU and memory allocations in layman terms.

Code:
 /usr/sbin/zonecfg -z MyZone info
zonename: MyZone
zonepath: /zones/MyZone/MyZone
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
[max-lwps: 8192]
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
fs:
        dir: /usr/lib/rsc
        special: /zones/MyZone/rscd
        raw not specified
        type: lofs
        options: []
fs:
        dir: /usr/nsh
        special: /zones/MyZone/nsh
        raw not specified
        type: lofs
        options: []
fs:
        dir: /usr/local
        special: /zones/MyZone/local
        raw not specified
        type: lofs
        options: []
fs:
        dir: /usr/openv
        special: /zones/MyZone/openv
        raw not specified
        type: lofs
        options: []
fs:
        dir: /usr/bea
        special: /zones/MyZone/bea
        raw not specified
        type: lofs
        options: []
fs:
        dir: /usr/bea81
        special: /zones/MyZone/bea81
        raw not specified
        type: lofs
        options: []
fs:
        dir: /zen_files
        special: /zen_files
        raw not specified
        type: lofs
        options: []
net:
        address: 172.17.25.12
        physical: nxge0
        defrouter not specified
capped-cpu:
        [ncpus: 2.00]
rctl:
        name: zone.cpu-cap
        value: (priv=privileged,limit=200,action=deny)
rctl:
        name: zone.max-lwps
        value: (priv=privileged,limit=8192,action=deny)

# 4  
Old 10-09-2012
There is no memory capping.
The zone can use at most 2 CPUs.
This User Gave Thanks to jlliagre For This Post:
# 5  
Old 10-11-2012
see the command prstat and the -Z option.

example with prstat -Z 1:
Code:
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 24593 bpsadmin 4480K 3824K cpu6    50    0   0:00:04 1.0% prstat/1
 27340 stelink   311M  289M sleep   59    0   1:00:56 0.4% java/38
  3833 stelink   311M  289M sleep   59    0   0:49:23 0.3% java/31
  1181 stelink    91M   80M sleep   59    0   0:03:28 0.1% srvxps.exe/1
 27416 stelink   487M  453M sleep   59    0   0:13:36 0.0% java/68
  3919 stelink   401M  233M sleep   59    0   0:06:09 0.0% java/47
  1377 stelink   143M   89M sleep   59    0   0:02:35 0.0% srvrmi.exe.wrap/47
  1238 stelink    91M   80M sleep   59    0   0:02:30 0.0% srvxps.exe/1
  1436 110      2717M 1814M sleep   59    0   0:00:40 0.0% oracle/11
  1265 stelink    19M 8168K sleep   59    0   0:01:22 0.0% clisnl.exe/1
  1439 110      2716M 1814M sleep   59    0   0:00:48 0.0% oracle/11
  1091 stelink    53M   39M sleep   59    0   0:01:22 0.0% TMS_ORA/1
  1376 stelink    23M   12M sleep   59    0   0:00:48 0.0% srvgwy.exe/6
  5507 stelink    87M   75M sleep   59    0   0:02:52 0.0% srvxps.exe/1
  7066 stelink    14M 6856K sleep   59    0   0:00:40 0.0% ISH/1
 24524 bpsadmin 9864K 5664K sleep   59    0   0:00:00 0.0% sshd/1
   837 stelink    22M   16M sleep   59    0   0:01:16 0.0% BBL/1
  1093 110      2712M 1810M sleep   59    0   0:01:04 0.0% oracle/1
ZONEID    NPROC  SWAP   RSS MEMORY      TIME  CPU ZONE
     4      300 6732M 6058M    37%   3:01:41 0.9% test1
     0       59  267M  255M   1.6%   0:11:03 0.9% global
     8      219 5916M 5268M    32%   1:57:13 0.5% test2
    12       47  236M  232M   1.4%   0:11:01 0.0% test880ps



Total: 625 processes, 2682 lwps, load averages: 0.38, 0.36, 0.34

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11.2 x86 Local Zones for Oracle RAC database, intermittent Memory corruption of db

Hi, I was wondering if any Solaris fellow out there has dealt with running Solaris 11 x86 on Local Zones for Oracle RAC (which may or may not be relevant to issue), running on HP gen h/w. Every so often could be weeks between issues or some times days, there will be a memory corruption and db... (2 Replies)
Discussion started by: crossmypath
2 Replies

2. Solaris

Solaris installed Physical Processor ..how to check?

I would like to know how to identify the installed "Physical Processor" .here is the output #psrinfo -pv of from 2 systems : - System 1 The physical processor has 8 virtual processors (0-7) SPARC-T4 (chipid 0, clock 2848 MHz) -System 2 The physical processor has 8 virtual... (3 Replies)
Discussion started by: ahmedamer12
3 Replies

3. UNIX and Linux Applications

Solaris & Linux memory stress test?

I'm looking for a script or some other application that will use up a lot of memory on a Solaris or Linux server, in order to test a monitoring application. So far I have found a script that's good for CPU usage but it does nothing for memory. I have also tried the application called 'stress'... (0 Replies)
Discussion started by: Kraas
0 Replies

4. Solaris

Memory management in zones

whats the difference between setting zone capped-memory from zoncfg and setting rctl: name: zone.max-locked-memory .. if changed the zone.max-locked-memory with prctl it does not change in rcapstat .. but if change with rcapadm it reflects in rcapstat o/p (0 Replies)
Discussion started by: fugitive
0 Replies

5. Solaris

How to : check username & password is same or not in solaris 10 ?

Thanks AVKlinux (5 Replies)
Discussion started by: avklinux
5 Replies

6. Solaris

Memory Check in SUN Solaris

Hi I am facing a problem with memory in SunOS 5.9. I just want to check the memory usage. Can anybody suggest me a command that will help me in this regard. (4 Replies)
Discussion started by: rajarsi.ghosh
4 Replies

7. Solaris

Processor and memory supports

HI i'am Giancarlo D. Jabon student from AMA Computer University is anyone among all of you who knows the maximum processor and memory supports in Sun Solaris 10 Thanks !!!! (3 Replies)
Discussion started by: giancarlodjabon
3 Replies

8. UNIX for Dummies Questions & Answers

Comman/Tool to check memory leak in solaris box

Hello Guys, Please let me know about commands or tools that are available to check memory leak in solaris box. Thanks in Advance (1 Reply)
Discussion started by: rajeshlbryan
1 Replies

9. UNIX for Dummies Questions & Answers

To find processor speed & memory in HP Unix 10.2

I have a D series HP server with HP UNIX 10.20 as the OS. How will I obtain the processor speed and memory of the machine. I have 'root' privileges. (4 Replies)
Discussion started by: augustinep
4 Replies
Login or Register to Ask a Question

Featured Tech Videos