01-22-2004
Not on any unix system that I've seen. Swaping was invented first. So it's called swap space. Paging came along and used the same space. Now it's actually rare to swap. HP-UX can't swap at all. And most other modern os's will be in deep trouble if they start swapping.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. AIX
how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies
3. UNIX for Dummies Questions & Answers
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
4. Linux
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
5. SCO
Hi every one.
I have a client with a Unixware 7.1.3 system.
4GB Ram
2 x Xeon CPU's
4 x 147GB scsi Raid 5 Config
1 x 147GB Scsi spare drive
Running a database application on top of Unixware
What is the formula you use to determine what the size of the swap file is suppose to be ?.
... (5 Replies)
Discussion started by: linuxjunkie
5 Replies
6. Solaris
hi everyone there is some qns i would like to ask abt swap space. lets say i have a host computer which is running solaris and has 18 disks which adds up to 9.9tb. the qns i would like to ask is that does all the 18 disks need to have a swap space partition or do i just create a swap space... (3 Replies)
Discussion started by: redemption
3 Replies
7. Solaris
Could someone please explain how you know how much swap space you have on your system. See below:
# 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... (2 Replies)
Discussion started by: jamba1
2 Replies
8. Linux
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
9. Solaris
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
10. Red Hat
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
LEARN ABOUT DEBIAN
dphys-swapfile
DPHYS-SWAPFILE(8) System Manager's Manual DPHYS-SWAPFILE(8)
NAME
dphys-swapfile - set up, mount/unmount, and delete an swap file
SYNOPSIS
dphys-swapfile setup|swapon|swapoff|uninstall
DESCRIPTION
dphys-swapfile computes the size for an optimal swap file (and resizes an existing swap file if necessary), mounts an swap file, unmounts
it, and and delete it if not wanted any more.
OPTIONS
There is only one parameter, an command, which can be either of these:
setup Tells dphys-swapfile to compute the optimal swap file size and (re-)generate an fitting swap file. Default it 2 times RAM size. This
can be called at boot time, so the file allways stays the right size for current RAM, or run by hand whenever RAM size has changed.
swapon and swapoff These run the swapon and swapoff commands on the swapfile. Note that direct swapon/off from /etc/fstab is not possible,
as that is (at least on Debian) done in the same script that mounts /var (which is where the swap file most likely resides). And we
need to do our setup between those actions. So pass up /etc/fstab, and do our own swapon/off.
uninstall
Gets rid of an unwanted swap file, reclaiming the disk space.
CONFIG
The config file /etc/dphys-swapfile allows the user to set up the working environment for dphys-swapfile.
This config file is a sh script fragment full of assignments, which is sourced. Standard sh syntax rules apply. Assignments are:
CONF_SWAPFILE
Set where the swap file should be placed. Defaults to /var/swap. It is unlikely that you will need to change this, unless you have
very strange partitioning, and then you will most likely be using an swap partition anyway.
CONF_SWAPSIZE
Force file size to this. Default is 2*RAM size. This is unlikely to be needed, unless in strange diskspace situations. Note that
swap enabled and smaller than RAM causes kernal-internal VM trouble on random systems.
CONF_SWAPFACTOR
Set the relation between RAM and swap size. Must be an integer. Defaults to 2 which means swap size = 2 * RAM size
CONF_MAXSWAP
Set maximum size of the swap file in MBytes. Defaults to 2048 which was the former kernel limit for the swapfile size and is now a
limit to prevent unusual big swap files on systems with a lot of RAM.
FILES
/etc/dphys-swapfile
user config
$CONF_SWAPFILE
the swap file, target of the whole action (defaults to /var/swap)
EXAMPLES
dphys-swapfile is usually run at system startup and shutdown from an /etc/init.d (or /etc/rc.d) script, such as this (minimal) one:
#!/bin/sh
# /etc/init.d/dphys-swapfile - automatically set up an swapfile
# author franklin, last modification 2004.06.04
# This script is copyright ETH Zuerich Physics Departement,
# use under either modified/non-advertising BSD or GPL license
case "$1" in
start)
/sbin/dphys-swapfile setup
/sbin/dphys-swapfile swapon
;;
stop)
/sbin/dphys-swapfile swapoff
;;
esac
exit 0
If an sysadmin wants to have his swapfile in annother place, say /var/run/swap, he can use:
In /etc/dphys-swapfile:
CONF_SWAPFILE=/var/run/swap
AUTHOR
franklin@phys.ethz.ch, http://www.phys.ethz.ch/~franklin/
D-PHYS Swapfile Tools 2006.09.15 DPHYS-SWAPFILE(8)