12-17-2011
This User Gave Thanks to dude2cool For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
In Solaris 2.6 and 8
How do I find out how much swap and memory is free?
Also how can I see how much memory each process is consuming?
Thanks in advance (2 Replies)
Discussion started by: expos
2 Replies
2. UNIX for Dummies Questions & Answers
I'm interested in adding more swap space to my current workstation (Solaris 10). I currently have 2 hard drives installed, however the system was only created with 512MB for swap that resides on drive 1. This drive is already sliced up and all slices are being used.
The second drive has two... (3 Replies)
Discussion started by: here2learn
3 Replies
3. UNIX for Dummies Questions & Answers
Can somebody explain it to me that why wc gives more chars suppose
Ab.txt have two lines
qwer
qasd
then wc -c ab.txt will give 10.why not 8.okay may be it is taking count one for each line just in case but why echo "qwer"|wc -C gives 5.
Ok with \c it is returning 4. :) (6 Replies)
Discussion started by: Dhruva
6 Replies
4. Solaris
Hi Folks,
This is my first post here - so nice to meet u all :-)
Recently i was trying to dig a little bit into the memory structure of my machine and due to the lack of concept, cannot figure out a calculation.
This is how it goes:
1) My swap slice is at the usual /dev/dsk/c0t1d0s1... (0 Replies)
Discussion started by: s4g3
0 Replies
5. UNIX for Advanced & Expert Users
When i run this command on my linux machine:
mail -s "CVS ALERT-CRITCAL" sandy@xyz.com
The system hangs up producing a dead letter. What should i do to resolve this.
I am using :
mailx -s "CVS ALERT-CRITCAL" sandy@xyz.com
This cammnd works fine on another Linux machine but says"... (14 Replies)
Discussion started by: bsandeep_80
14 Replies
6. UNIX for Dummies Questions & Answers
Hi
I have checked the output of top command in which there is a difference shown between the swap of top command for a process with total swap memory usage of the top command.
Swap usage of process is higher than the total swap memory usage.
top - 18:28:21 up 7:13, 5 users, load... (2 Replies)
Discussion started by: gagan2914
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
Please help explain and answer the below:
1. I need to predetermine how much swap will my JVM use if it is started with -Xms 512M and -Xmx 1024M ?
2. Can a JVM process just use the Heap and not the Swap memory ?
3. If the Total physical RAM on my server is 8 GB and current Heap... (6 Replies)
Discussion started by: mohtashims
6 Replies
8. Shell Programming and Scripting
Its rather confusing, the output of top command is below:
The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image."
But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies
9. Programming
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)
Discussion started by: yifangt
15 Replies
10. Solaris
I have a Solaris 10 VM that processes are seg faulting on (no space) and swap goes from 64GB to 151MB which triggers the seg fault. The free memory is 25GB when this occurs. I have adjusted the project to use all available ram. My question is why is swap being filled with 25GB remaining?
the... (10 Replies)
Discussion started by: thefroggy
10 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)