Swap issue on Container


 
Thread Tools Search this Thread
Operating Systems Solaris Swap issue on Container
# 1  
Old 10-16-2009
Question Swap issue on Container

Dear all,

Kindly need your advice on swap issue on my container, SunOS 5.10.
We have allocated swap 20GB and memory 8 GB. We have some application installed on the container.

A few days ago we experienced a very slow system response...even for command like ls, df -k, etc..
I tried to display history of virtual memory status since start-up and got the following output, it seems that the swap doesn't work.

vmstat -s
0 swap ins
0 swap outs
0 pages swapped in
0 pages swapped out
etc...

Any advice will be helpful. Thanks.

Last edited by sprout009; 10-16-2009 at 01:58 AM..
# 2  
Old 10-16-2009
Swapping has been deprecated since ages with Solaris. It is replaced by demand paging unless severe RAM demand occurs.
# 3  
Old 10-16-2009
Hi, the thing is in the global zone, there are value for those parameter. How do I solve my problem then (without add RAM)?
# 4  
Old 10-16-2009
The zone RAM or VM might have been capped. Can you post its configuration ? What says "dmesg" in the global and non-global zones ?
What say, in the global zone,:
Code:
swap -s
swap -l
vmstat 2 2

# 5  
Old 10-16-2009
There are 2 times we experienced slow system response. The first day has no log in dmesg, the second day

The dmesg of global zone is showing file system full, we deleted some unnecessary files. And there are others message as below:

Code:
genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0
explorer: [ID 702911 daemon.notice] Explorer started
pseudo: [ID 129642 kern.info] pseudo-device: lockstat0
genunix: [ID 936769 kern.info] lockstat0 is /pseudo/lockstat@0
pseudo: [ID 129642 kern.info] pseudo-device: fbt0
genunix: [ID 936769 kern.info] fbt0 is /pseudo/fbt@0

Global zone:
Code:
swap -s
total: 21534888k bytes allocated + 7251168k reserved = 28786056k used, 8948352k available

Code:
swap -l
swapfile             dev  swaplo blocks   free
/dev/md/dsk/d2      85,2      16 52447088 23295984

Code:
vmstat 2 2
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr m1 m2 m3 m4   in   sy   cs us sy id
 0 0 64 9881880 1113080 1212 374 9509 150 185 0 345 0 18 0 0 2090 12336 2977 5 2 93
 0 1 149 8944336 935992 154 91 5231 0 0 0 0 202 1 0  0 1788 4952 2002 13  0 86



Container:
Code:
swap -s
total: 21538816k bytes allocated + 7251072k reserved = 28789888k used, 8944480k available

Code:
swap -l
swapfile             dev  swaplo blocks   free
/dev/swap            0,0      16 52447088 23296272

Code:
vmstat 2 2
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr m1 m2 m3 m4   in   sy   cs us sy id
 0 0 64 9881848 1113072 20 45 268 5 5 0  0  0 18  0  0  625 1634  554  1  0 99
 0 0 149 8944096 871864 2 49 27 0  0  0  0  0  0  0  0  897 4017 1181  2  0 98



Thanks for your help.

Last edited by sprout009; 10-16-2009 at 06:51 AM..
# 6  
Old 10-16-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
# 7  
Old 10-16-2009
Depends on Solaris 10 release, I think that since release 5 is possible to configure swap values directly in zone configuration via
Code:
add capped-memory

sub command in
Code:
zonecfg

If you have once configured values for shared memory, capped memory, amount of swap you can dynamically change values for running zone via
Code:
prctl -n zone.max-swap -v 2g -t privileged   -r -e deny -i zone myzone

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Swap memory issue

Hi, In our production box i can see the Swap space using the below command free total used free shared buffers cached Mem: 65963232 41041084 24922148 0 877160 35936292 -/+ buffers/cache: 4227632 61735600 Swap: 4192880 ... (6 Replies)
Discussion started by: ratheeshjulk
6 Replies

2. UNIX for Advanced & Expert Users

Swap space issue

I have Solaris-10 with mutiple zones running in it. My Big Brother monitoring is complaining for very less swap space available, but I am not able to find, what process has consumed its swap space and how to clear it. All zones including global server have almost blank /tmp with very less data.... (3 Replies)
Discussion started by: solaris_1977
3 Replies

3. HP-UX

Swap space issue.

Hi, I am not sure how many scripts / java processes running on my HP-UX server. I need to calculate the total heap of these processes. I then need to recommend increasing the swap memory to be increase and equal to total heap if that is the right concept. Currently we are facing... (2 Replies)
Discussion started by: mohtashims
2 Replies

4. HP-UX

HP9000 Container - NFS Issue

I am running HP9000 Containers version A.03.01. I have the container up and running. I now need to mount an exported file system from another HPUX server with both read and write permissions. I can get the mount okay but from the container I cannot read or write properly to the mounted file... (2 Replies)
Discussion started by: PaleRider
2 Replies

5. Solaris

No Space Left - Memory/Swap issue

:wall:I'm having a bit of a problem with Solaris 10u8 and one of our applications requesting memory and being told, "no space left". The break down: 24GB Physical Memory 8GB swap at the time of occurance, here's what a memory breakdown looks like: Page Summary Pages ... (21 Replies)
Discussion started by: aychbee45
21 Replies

6. Solaris

swap space issue

HI All, Recently during oracle install I realized that I did not have enough swap space. So I - 1. Created a swap file "swap_fille1" in /rpool using mkfile - # ls -ltr /rpool total 10487121 drwxr-xr-x 3 root root 3 Dec 21 12:09 boot drwxr-xr-x 2 root root ... (10 Replies)
Discussion started by: sumeet
10 Replies

7. Solaris

Swap issue on a Solaris10 box

One of our system is running 3 oracle db instances. And as per prstat o/p the system is approximately using 78G of swap memory # prstat -J -n 2,15 PROJID NPROC SWAP RSS MEMORY TIME CPU PROJECT 4038 557 31G 29G 22% 113:23:43 10% proj1 4036 466 20G 19G... (2 Replies)
Discussion started by: fugitive
2 Replies

8. Solaris

Swap issue

hi all, yesterday, on one of the SunFire4800 system, there was a strange issue seen. # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 4.7G 554M 4.1G 12% / /proc 0K 0K 0K 0% /proc mnttab 0K ... (2 Replies)
Discussion started by: busyboy
2 Replies

9. UNIX for Advanced & Expert Users

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2): insufficient swap... (3 Replies)
Discussion started by: kavithakuttyk
3 Replies

10. Shell Programming and Scripting

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2):... (2 Replies)
Discussion started by: kavithakuttyk
2 Replies
Login or Register to Ask a Question