Swap Space


 
Thread Tools Search this Thread
Operating Systems Solaris Swap Space
# 1  
Old 03-02-2010
Swap Space

Could someone please explain how you know how much swap space you have on your system. See below:

Code:
# swap -s
total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available

# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c3t0d0s1   32,25     16 4100912 4100912
/data/swap/swap2048m  -       16 4194288 4194288
 
#format
1       swap    wu       0 -   402        1.96GB    (403/0/0)     4100928
 
#df -h

swap                   3.8G   1.0M   3.8G     1%    /etc/svc/volatile
swap                   3.8G   144K   3.8G     1%    /tmp
swap                   3.8G    48K   3.8G     1%    /var/run


admin@sealyaus1 # swap -s
total: 8215744k bytes allocated + 4867656k reserved = 13083400k used, 4013088k available

total: 8215744k bytes allocated - the total amount of swap space, in units of 1024-byte blocks, that is currently allocated as disk-backed swap space.

4867656k reserved - the total amount of swap space, in units of 1024-byte blocks, that is not currently allocated but is claimed by memory for future use.

13083400k used - the total amount of swap space, in units of 1024-byte blocks, that is allocated plus reserved.

4013088k available - the total amount of swap space, in units of 1024-byte blocks that is currently available for future use (ie for reservation and allocation)

The total = 8215744k from swap -s command
using format = 1.96GB
df -h = 3.8GB

Does the total from the 2 swap spaces in the swap -l command equal the df -h value ie
1.96GB + 2048mb, if so where does the rest come from to get total 8215744k

Thanks
# 2  
Old 03-02-2010
# 3  
Old 03-02-2010
Quote:
Originally Posted by jamba1
The total = 8215744k from swap -s command.
No this is the allocated value. The total is 13083400k, i.e. ~13 GB.
Quote:
Does the total from the 2 swap spaces in the swap -l command equal the df -h value ie: 1.96GB + 2048mb, if so where does the rest come from to get total 8215744k
You have ~4 GB of on disk swap space. The remaining virtual memory size is picked from you RAM. I guess you have 16 GB of RAM. 4 GB of swap space is possibly undersized.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. # parted -s /dev/sda print free Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 38.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos ... (1 Reply)
Discussion started by: Mukul Sharma
1 Replies

2. Red Hat

Swap space not getting used

CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working. Any one here dealt with the same kind of... (2 Replies)
Discussion started by: shiek.kaleem
2 Replies

3. Solaris

Swap space

Dear All, I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,. Any reasons for this. Rgds Rj (5 Replies)
Discussion started by: jegaraman
5 Replies

4. 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

5. Linux

swap space

Hi, I want to know how can i free the swap space if it is completely full, 0 mb remaining, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. UNIX for Dummies Questions & Answers

Swap space used???

Plz I need to know how much swap mem free and used i have. I'm using Compaq Tru64 UNIX V5.1A (rev 1885) Thanx (1 Reply)
Discussion started by: Lestat
1 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

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... (3 Replies)
Discussion started by: TRUEST
3 Replies

9. 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

10. UNIX for Dummies Questions & Answers

SWAP SPACE

All, I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space? Please list sources or commands. PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)
Discussion started by: SmartJuniorUnix
5 Replies
Login or Register to Ask a Question