What swap is my system running on?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users What swap is my system running on?
# 1  
Old 03-29-2006
MySQL What swap is my system running on?

hi all,
i need to know what swap my system is running on...
Sun-Fire-880 is my system...
physical memory= 16GB (8 CPU's)

i know generally we keep swap 2 times of real memory...
i want to know what is current swap my system is running?

following is the o/p of swap -s:
Wed Mar 29 16:08:08 IST 2006
total: 4368952k bytes allocated + 2234496k reserved = 6603448k used, 23508432k available

thanks & regards
abhijeet
# 2  
Old 03-29-2006
Quote:
i need to know what swap my system is running on...
What is that you are actually looking for?

swap you are mentioning is the partition that you have on your IDE.
If it;s the file system that you are referrering to with respect to swap then it is the Linux Native Swap file system itself
# 3  
Old 03-29-2006
swap -l
will list the swap devices. Not sure if that is what you want, though... Smilie
# 4  
Old 03-31-2006
MySQL

Firstly,
i know my swap areas on disk.
i wanted to know "swap" in physical form of memory.

swap -l doen not include swap space in the form of physical
memory because this space is not associated with a particular
swap area.

but swap -s does include swap space from all configured
swap areas as listed by the -l option, as well swap
space in the form of physical memory.

thats what i had pasted o/p of "swap -s" ..
i am confused about those terms" allocated" ,"reserved","used" & "available"
what if i add up "used" & "available" values ,does it give my "swap" in form of physical memory?

mayb i m yet to understand concept of swap fully....!!!

regards
abhijeet
# 5  
Old 03-31-2006
Swap is only loosely associated with physical memory. You would be better off forgeting about physical memory while you look at those numbers. Those swap areas that you know about on disk...they add up to your total swap space. Some of your total swap space may be in use...if so, this is known as "used swap space". But you you may have some swap space not yet in use...if so, this is called "available swap space". The "used swap space" may actually have stuff written to it...that is "allocated swap space". The kernel know exactly where the allocated swap space is. There may be some stuff in physical memory that has never been swapped out, but is potentially swapable...some swap space has been "reserved" for this stuff. The kernel only has a counter for "reserved swap space". If and when "reserved swap space" is needed it will become "allocated swap space". Allocation takes some time and kernel delays it. Lots of stuff come into core and never really need to swap. So no allocation will ever be done.

You might have swap space equal to 3 times physical memory. And you can potentially run out of swap anyway.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

File system full, swap

hi all I am having a t5240 server in that zone is there in /var/adm/messages i am getting the following warning WARNING: /zoneroot/zonename-zone/root/tmp: File system full, swap space limit exceeded if a swap is getting full what can i do. Please use code tags next time for your... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

2. UNIX for Dummies Questions & Answers

swap issues, system is running at 99%

Hi All, I am trying to understand why my system is running at very high. This system is almost out of memory. See below. swapon -s Filename Type Size Used Priority /dev/mapper/VolGroup00-LogVol02 partition 8388600 8235088 -1... (2 Replies)
Discussion started by: samnyc
2 Replies

3. Solaris

increase SWAP on ZFS file system

Hi All, I am using this commands to dynamically increase ZFS swap space on Solaris my question is: 1- after i make these commands it will permanent or it will remove after restart 2- how to make it permanent # swap -l swapfile dev swaplo bloques libre /dev/zvol/dsk/rpool/swap... (4 Replies)
Discussion started by: osmanux
4 Replies

4. UNIX for Advanced & Expert Users

Fsck in running system

Hi, I have the problem that in the fstab indicating that the check is made of a particular filesystem during the boot process, if for any reason I have deleted, if it is to check the filesystem on boot, Linux will not start and asks password to enter maintenance mode. What I want is to keep an... (1 Reply)
Discussion started by: jailcreator
1 Replies

5. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

6. UNIX for Advanced & Expert Users

Swap file system

This questions only concerns Solaris 10. Let's say I have swap configured like so in /etc/vfstab: /dev/dsk/c1t0d0s1 - - swap - no - /dev/dsk/c1t1d0s1 - - swap - no - /dev/md/dsk/d1 - - swap - no - ... (1 Reply)
Discussion started by: bluescreen
1 Replies

7. Filesystems, Disks and Memory

How To setup a Diskless Swap System.

This is a guide for setting up your computer with a fast swap system using usb memory sticks. A detailed study of the theories behind this setup can be found here. While this How-To does not include the CFLRU replacement algorithm, it does show the performance benefits of using NAND flash memory... (2 Replies)
Discussion started by: Johnny_Thumbs
2 Replies

8. Solaris

swap space in veritas file system

hi every one , i know how to add swap space in ufs file system. but i m facing problem in veritas file system . i wants to know how will i create swap or add new swap space in existing swap space . Note: disk under veritas volume manager control . please help me to solve this issue . (5 Replies)
Discussion started by: samy123
5 Replies

9. Solaris

/tmp: File system full, swap space limit exceeded

Can you help. My server sunning solaris 9 on x86 platform pretty much hung for a few hours... I could not use telnet or ssh to the box - it kept refusing connection. A few hours later - I was able to log in again. The server has not rebooted but here are the first errors in the messages log... (5 Replies)
Discussion started by: frustrated1
5 Replies

10. SuSE

What's mail system running on Linux

Hi,I am need setup mail system on the linux, but i am don't know , My linux system is Redhat Linux 9.0.However,What's kind mail system is fit my operation system? expect everyone give directionsme with superior . Thanks! (6 Replies)
Discussion started by: Golden.Liu
6 Replies
Login or Register to Ask a Question