
One command I miss from my old Unix days is the ability to add swap dynamically. That is swap to a file. Some of the Unix's have a swap command and you can name a file and the size you wish and swap will start using it. This can be pretty handy for someone who doubles their RAM after and OS has been installed and wants swap to follow the yellow brick road even if the machine never swaps. I did a man on swap but nothing came back!

On Tue, Oct 31, 2006 at 08:10:21AM -0800, Robert Lewis wrote:
One command I miss from my old Unix days is the ability to add swap dynamically. That is swap to a file. Some of the Unix's have a swap command and you can name a file and the size you wish and swap will start using it.
I did a man on swap but nothing came back!
man mkswap man swapon man swapoff HTH... -- David Smith Work Email: Dave.Smith@st.com STMicroelectronics Home Email: David.Smith@ds-electronics.co.uk Bristol, England GPG Key: 0xF13192F2

David SMITH wrote:
On Tue, Oct 31, 2006 at 08:10:21AM -0800, Robert Lewis wrote:
One command I miss from my old Unix days is the ability to add swap dynamically. That is swap to a file. Some of the Unix's have a swap command and you can name a file and the size you wish and swap will start using it.
I did a man on swap but nothing came back!
man mkswap man swapon man swapoff
HTH...
Thank you, that was just what I wanted and quite helpful.

Robert, On Tuesday 31 October 2006 08:10, Robert Lewis wrote:
One command I miss from my old Unix days is the ability to add swap dynamically. That is swap to a file. Some of the Unix's have a swap command and you can name a file and the size you wish and swap will start using it.
This can be pretty handy for someone who doubles their RAM after and OS has been installed and wants swap to follow the yellow brick road even if the machine never swaps.
I did a man on swap but nothing came back!
Ohhh. So close. % man swapaon SWAPON(8) Linux Programmer's Manual SWAPON(8) NAME swapon, swapoff - enable/disable devices and files for paging and swapping SYNOPSIS /sbin/swapon [-h -V] /sbin/swapon -a [-v] [-e] /sbin/swapon [-v] [-p priority] specialfile ... /sbin/swapon [-s] /sbin/swapoff [-h -V] /sbin/swapoff -a /sbin/swapoff specialfile ... DESCRIPTION Swapon is used to specify devices on which paging and swapping are to take place. ... You might also want to learn about the "apropos" / "man -k" command. Randall Schulz

Tue, 31 Oct 2006, by rll@felton.felton.ca.us: [..]
I did a man on swap but nothing came back!
Try 'man -k' or 'apropos' next time $ man -k swap mkswap (8) - set up a Linux swap area swapon (2) - start/stop swapping to file/device swapoff (2) - start/stop swapping to file/device Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 9.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.8 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply.

Robert Lewis wrote:
One command I miss from my old Unix days is the ability to add swap dynamically. That is swap to a file. Some of the Unix's have a swap command and you can name a file and the size you wish and swap will start using it.
This can be pretty handy for someone who doubles their RAM after and OS has been installed and wants swap to follow the yellow brick road even if the machine never swaps.
I did a man on swap but nothing came back!
IIRC, you can create a swap file and add it.
participants (5)
-
David SMITH
-
James Knott
-
Randall R Schulz
-
Robert Lewis
-
Theo v. Werkhoven