SWAP(8) System Manager's Manual SWAP(8)NAME
swap - establish a swap file
SYNOPSIS
swap file
DESCRIPTION
Swap establishes a file or device for the system to swap on. If file is a device, the device is used directly; if a directory, a unique
file is created in that directory on which to swap. The environment variable swap is set to the full name of the resulting file. The num-
ber of blocks available in the file or device must be at least the number of swap blocks configured at system boot time.
If a swap channel has already been set and no blocks are currently valid in the file the old file will be closed and then replaced. If any
blocks are valid on the device an error is returned instead.
SOURCE
/sys/src/cmd/swap.c
BUGS
Swapping to a file served by a user-level process, such as kfs(4), can lead to deadlock; use raw devices or remote files instead.
SWAP(8)
Check Out this Related Man Page
SWAP-OFFSET(8) swap-offset SWAP-OFFSET(8)NAME
swap-offset - program to calculate the offset of a swap file in a partition
SYNOPSIS
swap-offset [<swap_file>]
DESCRIPTION
This manual page documents briefly the swap-offset.
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page.
The programs s2disk and s2both can be used to save the state of the whole system to a swap partition or file and power off or suspend your
system. After restarting your system it will be put back in the exact system state you left it (this is sometimes called hibernation).
In the case of using a swap file you will have to specify the location of the swap file's header as the offset from the beginning of the
partition that contains the swap file. The swap-offset utility can be used to determine this value.
SEE ALSO uswsusp.conf(8), s2disk(8)
For more information see the HOWTO and the README
AUTHOR
This manual page was written by Tim Dijkstra tim@famdijkstra.org for the Debian(TM) system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version
published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
AUTHOR
TimTim DijkstraDijkstra <tim@famdijkstra.org> <tim@famdijkstra.org>
Wrote this manpage for the Debian system.
COPYRIGHT
Copyright (C) 2006 Tim Dijkstra
uswsusp juni 24, 2006 SWAP-OFFSET(8)
We have Sun OS running on spark :
SunOS ciniwnpr67 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V440
Having Physical RAM :
Sol10box # prtconf | grep Mem
Memory size: 8192 Megabytes
My Top Output is :
130 processes: 129 sleeping, 1 on cpu
CPU states: 98.8% idle, 0.2% user, 1.0%... (39 Replies)
We have Sun OS running on spark :
SunOS ciniwnpr67 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V440
Having Physical RAM :
Sol10box # prtconf | grep Mem
Memory size: 8192 Megabytes
My Top Output is :
130 processes: 129 sleeping, 1 on cpu
CPU states: 98.8% idle, 0.2% user, 1.0%... (27 Replies)
I made a script that can swap info on two lines using a combination of awk and sed, but was hoping to consolidate the script to make it run faster. If found this script, but can't seem to get it to work in a bash shell. I keep getting the error "Too many {'s". Any help here would be appreciated:... (38 Replies)
Greetings. I've been into computers since the '80s, but this is my first attempt at Linux.
I'm installing Debian Lenny on a PIII 733 with 10GB hard drive and 512MB Ram. I intend to use the machine primarily as a development server, with things like mySQL, Apache, php, etc.
I don't really want... (22 Replies)
I have some text:
<date>some_date</date>
<text>some_text</text>
<name>some_name<name>
and I want to transform it to smthng like that:
some_name on some_date: some_text
I've tried sed:
sed 's/<text>\(.*\)<\/text>
<name>\(.*\)<\/name>/\2 - \1/'
but it says unterminated... (13 Replies)
:wall:I'm having a bit of a problem with Solaris 10u8 and one of our applications requesting memory and being told, "no space left".
The break down:
24GB Physical Memory
8GB swap
at the time of occurance, here's what a memory breakdown looks like:
Page Summary Pages ... (21 Replies)
Hi all,
I have a vcd file with a bunch of lines containing an array, like this
$var wire 1 b a $end
$var wire 1 c a $end
$var wire 1 d a $end
$var wire 1 e a $end
$var wire 1 f b $end
$var wire 1 g b $end
$var wire 1 h b $end
$var wire 1 i b $end
I want it like this:
$var wire 1 e a... (12 Replies)
I like to increase swap size for my current server running solaris 10.
Seems like the system is not using it's full 16G of physical memory.
#swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,1 16 1058288 1058288
# swap -s
total: 4125120k bytes... (17 Replies)
Hello,
This is very silly question as millions discussions on call-by-value vs call-by-reference for programming beginners, but I need to confirm my understanding.
#include<stdio.h>
void swap(int *p, int *q) //Line 3
{
int tmp;
tmp = *p;
*p = *q;
*q = tmp;
}
int... (15 Replies)
I have a customers that is getting grid alerts that swap is over 95% utilized. When I do swap -l on the machine I get the following results.
$ swap -l
swapfile dev swaplo blocks free
/swap/swapfile - 16 6291440 6291440
/swap/swapfile2 - 16 8191984... (18 Replies)
Being a moderator at openATV, a forum for Linux settup boxes, I have seen reports, and sometimes am experiencing myself, artefacts during video playback or timeshift.
As the artefacts are non repetetive (rewinding and watching again does not show artefacts), I can exclude a corrupted video source.... (23 Replies)
Hi all,
Q1) Due to application requirement, i am required to have more swap space.
Currently my swap is on a partition with 32GB.
I have another partition with 100GB, but it already has a UFS filesystem on it.
Can i just swap -d /dev/dsk/current32gb and swap -a /dev/dsk/ufs100gb ?
Will... (17 Replies)
Hello,
Long story short, we built an alternate boot env. back in July and applied the latest CPU to about 15 servers. Of the 15 servers, 7 servers failed to start the zones after the luactivate / reboot. The zones failed to rename from <zone>-<boot_env> back to <zone>. This is fixed in patch... (16 Replies)
Hi all,
This might sound silly but i am trying to determine if i have sufficient memory or not.
My definition of sufficient memory = no swapping + no paging to physical swap file.
I know i can use vmstat to monitor swapping and paging and using the SR column as well.
But wouldn't it be... (28 Replies)