08-29-2011
If they're all on the same spindle anyway, none of them is really 'better'. Creating a big blank file with dd is probably the safest, no partition editing involved, unless someone decides to delete the big "useless" file.
Ideally you want swap on a separate disk, so that use of swap doesn't impact other disk performance.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it really so that if swap will be located in the begining of hard drive, than it will work faster? (1 Reply)
Discussion started by: Ty3
1 Replies
2. Solaris
When i try to type swap -l ,nothing come out but blinking.
May i know what is the problem and solutions ?
thanks (6 Replies)
Discussion started by: Farbegas
6 Replies
3. Solaris
Hello and thanks in advance.
I have a Sun box with raid 1 on the O/S disks using solaris svm.
I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space.
I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
4. Shell Programming and Scripting
Hi all,
I am parsing command line options using getopts.
The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument.
Below is the script:
while getopts :hd:t:s:l:p:f: opt
do
case "$opt" in
-h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies
5. HP-UX
I have a HP-UX B.11.23 server with 16 gb of memory 84 gb of swap configured. I am being pushed to define more swap to try and get more Tuxedo domains to start. At what point do we have too much swap for the amount of memory? Thanks in advance. (11 Replies)
Discussion started by: scotbuff
11 Replies
6. Red Hat
free -m : 1023 total swap space
created default partition /dev/sdb1 50M using fdisk. i did write the changes.
#mkswap /dev/sdb1
#swapon /dev/sdb1
free -m : 1078 total swap space
this shows that the swap is on
Question : i did not change the type LINUX SWAP (82) in fdisk.
so why is... (5 Replies)
Discussion started by: dplinux
5 Replies
7. HP-UX
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
8. Shell Programming and Scripting
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Discussion started by: mr_manny
2 Replies
9. Solaris
Hi Solaris Folks :),
I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands.
$swap -s
total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available
$swap -l
swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies
10. Solaris
Hi,
I installed some packages required by an app built with python.
But when I try python setup.py install, I get the following error:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'
Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies
LEARN ABOUT DEBIAN
systemd.swap
SYSTEMD.SWAP(5) systemd.swap SYSTEMD.SWAP(5)
NAME
systemd.swap - systemd swap configuration files
SYNOPSIS
systemd.swap
DESCRIPTION
A unit configuration file whose name ends in .swap encodes information about a swap device or file for memory paging controlled and
supervised by systemd.
This man page lists the configuration options specific to this unit type. See systemd.unit(5) for the common options of all unit
configuration files. The common configuration items are configured in the generic [Unit] and [Install] sections. The swap specific
configuration options are configured in the [Swap] section.
Swap units must be named after the devices (resp. files) they control. Example: the swap device /dev/sda5 must be configured in a unit file
dev-sda5.swap. For details about the escaping logic used to convert a file system path to a unit name see systemd.unit(5).
All swap units automatically get the appropriate dependencies on the devices (resp. on the mount points of the files) they are activated
from.
Swap units with DefaultDependencies= enabled implicitly acquire a conflicting dependency to umount.target so that they are deactivated at
shutdown.
FSTAB
Swap units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details).
If a swap device or file is configured in both /etc/fstab and a unit file the configuration in the latter takes precedence.
Unless the noauto option is set for them all swap units configured in /etc/fstab are also added as requirements to swap.target, so that
they are waited for and activated during boot.
OPTIONS
Swap files must include a [Swap] section, which carries information about the swap device it supervises. A number of options that may be
used in this section are shared with other unit types. These options are documented in systemd.exec(5). The options specific to the [Swap]
section of swap units are the following:
What=
Takes an absolute path of a device node or file to use for paging. See swapon(8) for details. If this refers to a device node, a
dependency on the respective device unit is automatically created. (See systemd.device(5) for more information.) If this refers to a
file, a dependency on the respective mount unit is automatically created. (See systemd.mount(5) for more information.) This option is
mandatory.
Priority=
Swap priority to use when activating the swap device or file. This takes an integer. This setting is optional.
TimeoutSec=
Configures the time to wait for the swapon command to finish. If a command does not exit within the configured time the swap will be
considered failed and be shut down again. All commands still running will be terminated forcibly via SIGTERM, and after another delay
of this time with SIGKILL. (See KillMode= below.) Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass 0
to disable the timeout logic. Defaults to 90s.
KillMode=
Specifies how processes of this swap shall be killed. One of control-group, process, none.
This option is mostly equivalent to the KillMode= option of service files. See systemd.service(5) for details.
KillSignal=
Specifies which signal to use when killing a process of this swap. Defaults to SIGTERM.
SendSIGKILL=
Specifies whether to send SIGKILL to remaining processes after a timeout, if the normal shutdown procedure left processes of the swap
around. Takes a boolean value. Defaults to "yes".
SEE ALSO
systemd(1), systemctl(8), systemd.unit(5), systemd.exec(5), systemd.device(5), systemd.mount(5), swapon(8)
AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
systemd 10/07/2013 SYSTEMD.SWAP(5)