Visit The New, Modern Unix Linux Community


Swap space is LOW


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Swap space is LOW
# 1  
Swap space is LOW

I checked the server and issued various command to investigated. but from teh output of swap -s and swap -l,

i received the following


swap -l

swapfile dev swaplo blocks free
/dev/vx/dsk/swapvol 197,7 16 4194800 4127696
/dev/vx/dsk/swap2 197,8 16 12582896 12517072
/dev/vx/dsk/appdg/swap4 197,115021 16 8388592 8323856


swap -s

total: 2202456k bytes allocated + 13441848k reserved = 15644304k used, 25064k available


i mean, how do i know what the threshold is for the swap space. and also, i tried to create a swap file in the /tmp directory which had quite a lot of space but the mkfile command returned an error saying "not enough space left on device".

from the top command, the top command says theres about 12G of swap space free.

what can i do??
# 2  
adding swap in solaris

first of all.... what OS are you using??
based on the in and outputs it looks like solaris... so what can you do:
if you make a file in /tmp it makes no sense because in solaris /tmp is a tmpfs so you make the swap in swap like a loop..
choose a partition where you've got enough space
root@sun # df -k
now create a file with the needed size:
root@sun # mkfile 500m swapfile.1
now add this file to the swap
root@sun # swap -a /bla/swapfile.1
have a look how it works:
root@sun # swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 118,1 16 4194800 4194800
/opt/swapfile - 16 1023984 1023984

This addition is temporary until the next reboot. swap -d <file> unconfigures the additional swap space

now let's add it permanently:
insert this line into your /etc/vfstab
/bla/swapfile.1 - - swap - no -

that's all.....
greetings Pre▀y
# 3  
We really need to know exactly was OS you're using. And the total physical memory.

If you're using SunOS, do a "dk -k /tmp". You will probably find that it is mounted on swap. You can't create a swap area on swap like that.

top is confused because it does not understand your OS's concept of reserved. Think like this:
free swap = available swap + reserved swap
and I think that the numbers will make sense for you.

If that available swap hits zero, you will be in trouble. And it looks rather close.
# 4  
Quote:
Originally posted by Perderabo
We really need to know exactly was OS you're using. And the total physical memory.

If you're using SunOS, do a "dk -k /tmp". You will probably find that it is mounted on swap. You can't create a swap area on swap like that.

top is confused because it does not understand your OS's concept of reserved. Think like this:
free swap = available swap + reserved swap
and I think that the numbers will make sense for you.

If that available swap hits zero, you will be in trouble. And it looks rather close.

The operating system am using is SunOS 5.8

After the server did its scheduled daily reboot, swap space was back to normal and there weren't any more alerts.

nonetheless, i'm glad you guys explained to me not to create swap in a swap (tmp)
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #295
Difficulty: Easy
Ubuntu releases updated versions predictably every 3 months.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending an email if system disk space is low

Hello i have a working script that sends me an email if system disk space is above 98%. I would like to add an extra command to the if condition. If disk space is above 98% it would also add an output of cd /var/log && du -sBM * |sort -n 2>&1 |grep -v -e "0M" -e "1M" command to the email. I'm... (2 Replies)
Discussion started by: taf130
2 Replies

2. AIX

High Runqueue (R) LOW CPU LOW I/O Low Network Low memory usage

Hello All I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) . The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Discussion started by: IL-Malti
9 Replies

3. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

4. UNIX for Dummies Questions & Answers

Kernel/ user space and high/ low mem

Need some clarification on this.... 1. how are kernel/ user spaces and high/low memory related? 2. What do they all mean when i have the kernel command line as: "console=ttyS0,115200 root=/dev/sda2 rw mem=exactmap memmap=1M@0 memmap=96M@1M irqpoll" or 2. what do mem and memmap mean in... (3 Replies)
Discussion started by: dragonpoint
3 Replies

5. HP-UX

OSF/1 swap file low and killing processes!

Hi, Hoping someone may be able to help with some general guidance. Hope I've posted this in the right forum! I hava DEC Workstation running OSF/1. It's will run for a period of time then slow down to the point it becomes unusable. Then i have to reboot and the whole thing repeats. I... (1 Reply)
Discussion started by: emeak
1 Replies

6. UNIX for Dummies Questions & Answers

Send Mail NOQUEUE low on space

Need help to resolve this message "NOQUEUE: low on space (have 18, SMTP-DAEMON needs 101 in /var/spool/mqueue)" Attached capture file from server HPUX 10.2 Ace root@PS01 : Aug 13 18:27:30 SANG last message repeated 7 times Aug 13 18:27:45 PS01 sendmail: NOQUEUE: low on space (have 18,... (2 Replies)
Discussion started by: real-chess
2 Replies

7. AIX

swap space / paging space

how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies

8. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies

9. UNIX for Dummies Questions & Answers

NOQUEUE: low on space ( have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue)

hi, I'm in Solaris 2.8 env. When i'm trying to add a ftp user account , encountered "no space in disk" .. couldn't create any user. Then check the fs disk space with "df - k " and /var/adm/syslog .. got the below message. Jun 9 03:10:53 mail sendmail: NOQUEUE: low on space (have 0,... (10 Replies)
Discussion started by: Dolly
10 Replies

10. UNIX for Dummies Questions & Answers

sendmail[5129]: NOQUEUE: low on space

sendmail: NOQUEUE: low on space (have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue) We're getting this message on our Solaris (Apache/1.3.19) server. Can anyone give me an idea of what to look at? I'd really appreciate it! (2 Replies)
Discussion started by: sitemouse
2 Replies

Featured Tech Videos