Swap in local zone


 
Thread Tools Search this Thread
Operating Systems Solaris Swap in local zone
# 1  
Old 10-21-2010
Swap in local zone

Hello folks,
I have question regarding behavior of local zone which has no dedicated swap configured.
Zone has set only capped memory, and my question is if all memory is occupied if this zone will start to use swap from the global zone??

I'm little bit confused from information regarding swap I got in local zone.

Code:
root@xxx:/root # df -k swap
Filesystem            kbytes    used   avail capacity  Mounted on
swap                 53594624      40 53594584     1%    /var/run

root@xxx:/root # swap -l
swapfile             dev  swaplo blocks   free
/dev/swap            0,0      16 12582912 7729408

If there is no swap set why I see this values??

Many thanks

Cheers

Stan

Last edited by DukeNuke2; 10-21-2010 at 05:09 AM..
# 2  
Old 10-21-2010
What's the memory capacity of your zone? Some UNIX systems have to use memory as swap when no real swap is available...
# 3  
Old 10-21-2010
# 4  
Old 10-21-2010
Quote:
Originally Posted by Corona688
What's the memory capacity of your zone? Some UNIX systems have to use memory as swap when no real swap is available...
Sorry....zone has dedicated 6 GB RAM.
Based on suggestion that there is no swap dedicated looks like that RAM used partially used as a swap??? I'm I true??

Thanks

Stan
# 5  
Old 10-21-2010
Quote:
Originally Posted by brusell
Hello folks,
I have question regarding behavior of local zone which has no dedicated swap configured.
Zone has set only capped memory, and my question is if all memory is occupied if this zone will start to use swap from the global zone??
swap, like ram, is a global resource shared between all zones including the global one. You can cap each of them or both in every zone.
Quote:

I'm little bit confused from information regarding swap I got in local zone.

Code:
root@xxx:/root # df -k swap
Filesystem            kbytes    used   avail capacity  Mounted on
swap                 53594624      40 53594584     1%    /var/run

You shouldn't use "df -k swap" to get accurate information about swap. Several filesystems are virtual-memory based and /var/run is just one of them.
Quote:
Code:
root@xxx:/root # swap -l
swapfile             dev  swaplo blocks   free
/dev/swap            0,0      16 12582912 7729408

If there is no swap set why I see this values??
The on disk swap area is displayed here, it is shared between all zones. Don't confuse it with what Solaris calls also swap and which is the whole virtual memory including a large part of RAM. It is displayed with the "swap -s" command.
# 6  
Old 10-21-2010
Quote:
Many thanks, we are generally using dedicated swap and capped memory. This zone is heritage from my predecessor and I'm just just fixing problem with failing of this zone.
Fact is that this zone got often in trouble and start to kill processes because of missing swap space.

Code:
Oct 18 17:14:27 xxx sendmail[3088]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): daemon: cannot fork: Not enough space
Oct 18 17:15:05 xxx tmpfs: [ID 518458 kern.warning] WARNING: /etc/svc/volatile: File system full, swap space limit exceeded
Oct 18 17:15:34 xxx last message repeated 3 times
Oct 20 13:44:23 xxx sendmail[3088]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): daemon: cannot fork: Not enough space
Oct 20 13:44:23 xxx sshd[3072]: [ID 800047 auth.error] error: fork: Error 0
Oct 20 13:46:52 xxx tmpfs: [ID 518458 kern.warning] WARNING: /etc/svc/volatile: File system full, swap space limit exceeded
Oct 20 13:46:52 xxx last message repeated 1 time
Oct 20 13:48:32 xxx inetd[2974]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/vnetd/tcp:default: Not enough space
Oct 20 13:48:32 xxx inetd[2974]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Not enough space

I wasn't sure about information I got from swap -l and df -k swap.

Last edited by DukeNuke2; 10-21-2010 at 07:16 AM..
# 7  
Old 10-21-2010
You should use "rcapstat -z" to get accurate information about resource usage in zones. "swap -l" and "df -k swap" are not really suited for that task.
These 2 Users Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

New ZFS FS not seen on local zone

Hi , I added a new fs to the global zone and also did the zonecfg to add the FS to the zone but finally I do not see the new "FS" on the local zone. Even in th e/etc/zones/zone.xml the fs and the correct directory is mentioned. Any Idea please ? (4 Replies)
Discussion started by: manni2
4 Replies

2. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

3. Solaris

zlogin can't logon to local zone

Hi, Here is the issue: Please help! (4 Replies)
Discussion started by: aixlover
4 Replies

4. Solaris

SIGPWR on local zone

Can anyone explain how you can get a SIGPWR signal on a Solaris 10 local zone, but none of the other zones on the frame had a problem. :confused: (1 Reply)
Discussion started by: JerryHone
1 Replies

5. Solaris

Boot a local zone from cdrom

Hi Is it possible to boot a zone from cdrom. If so please help in getting the steps to do so. (2 Replies)
Discussion started by: ningy
2 Replies

6. Solaris

install jre in local zone

How can I install a new version of jre on a local zone? Since /usr is not writable in a local zone)? pls advise solaris10 sparc ---------- Post updated at 03:51 PM ---------- Previous update was at 02:34 PM ---------- jdk6 i mean (6 Replies)
Discussion started by: lhareigh890
6 Replies

7. Solaris

Covert Global zone to local zone

Dears, I would like to convert solaris 10 x86 and solaris 10 sparc (Global Zones) physical servers into Local zones. i found a document which seems to be helpful but i'm stuck @ the 1st step. to test this i want to do it 1st on x86 system running under vmware ESXi and if it succeeds i will... (1 Reply)
Discussion started by: mduweik
1 Replies

8. Solaris

Global zone name from local zone

How to check the global zone name from local zone. (6 Replies)
Discussion started by: fugitive
6 Replies

9. Solaris

Not able to ping global zone from local zone

Hi Gurus I am not able to ping the local zone from global zone when i am trying to ping i am getting below ICMP Host Unreachable from gateway zone ( 192.268.35.210) for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210) However i can ping local zone from global please... (12 Replies)
Discussion started by: kumarmani
12 Replies
Login or Register to Ask a Question