Sponsored Content
Operating Systems Solaris Monitoring Paging and Swapping Post 303024731 by MadeInGermany on Tuesday 16th of October 2018 01:54:35 AM
Old 10-16-2018
Swapping unused stuff is okay. So swap -l is no good.
Frequent/continued swapping is not good. So vmstat measurement with a large interval makes sense.
--
The ZFS ARC cache has been found too aggressive. Should be limited in /etc/system.
See this article
This User Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Excessive Paging&Swapping!

Hi all! Working on Oracle v8i/9i on Unix Sun Solaris v8.0. I am experiencing excessive paging & Swapping.Would like to know the cause. I guess:could be due to inappropriate setting of Unix Kernel Parameters... Please correct me if I am wrong! Thanks&Regards, Amit. (5 Replies)
Discussion started by: Amitstora
5 Replies

2. Filesystems, Disks and Memory

Paging and Swapping

Hi Guys: Would like to know how to check system swapping and paging and some theory on how they function. I am an oracle dba and my environment is 8171 on AIX 433. We have a 1GB of RAM on the box and I am educating myself to see how much more SGA can be accommodated on the box and what are the... (2 Replies)
Discussion started by: ST2000
2 Replies

3. UNIX for Dummies Questions & Answers

how to get swapping info

Hi How can I determine if swapping is occuring on a server. Thanks, Leo (2 Replies)
Discussion started by: leo
2 Replies

4. SuSE

Swapping

Hello! Why does my SuSE GNU/Linux machine swap? I have a Gig of ram, currently 14MBs of free RAM, 724MB - buffers and caches... That is 685MB of cached RAM, then kernel really should'nt have to swap, It should release cached memory in my thinkin... It has only swaped 3MB's but still,... (3 Replies)
Discussion started by: Esaia
3 Replies

5. UNIX for Advanced & Expert Users

virtual memory management, swapping paging

can anybody explain me the concepts virtual memory mangement, swapping and paging? although i roughly know what they are , i need more solid distinction between them, and also i want to figure out the relations between them? do you have any well-defined definitons for this concepts? (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies

6. UNIX for Dummies Questions & Answers

Swapping in VI editor

Hi, I am attempting to replace several similar words with another word in vi. Here is what I have written for the script: 3dTcat -prefix SuperBrik_4WAY_HRF ../JULY10_2007A/results2TENT/stats.JULY10_2007A+tlrc ../JULY10_2007G/results2TENT/stats.JULY10_2007G+tlrc... (1 Reply)
Discussion started by: Jahn
1 Replies

7. Shell Programming and Scripting

Swapping three lines

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)
Discussion started by: dsjkvf
13 Replies

8. Shell Programming and Scripting

Swapping fields

Hallo Team, This is the command that i am running : grep ",Call Forward Not Reachable" *2013* this is the output that i am getting (i did a head -10 but the files can be more than 1000) ... (8 Replies)
Discussion started by: kekanap
8 Replies

9. Solaris

Swapping

Hi Guys I am using SPARC-T4 (chipid 0, clock 2998 MHz), SunOS 5.10 Generic_150400-38 sun4v. How do I see if the server was doing some swapping like yesterday? I had a java application error with java.lang.OutOfMemoryError, now I want to check if the server was not doing some swapping at... (4 Replies)
Discussion started by: Phuti
4 Replies

10. Shell Programming and Scripting

Swapping lines

Hi there, I have a text that I'm trying to format into something more readable. However, I'm stuck in the last step. I've searched and tried things over the internet with no avail. OS: Mac After parsing the original text that I won't put here, I managed to get something like this, but this... (8 Replies)
Discussion started by: Kibou
8 Replies
swapon(8)						      System Manager's Manual							 swapon(8)

NAME
swapon - Specifies additional disk partitions for paging and swapping SYNOPSIS
/sbin/swapon [-asv] [-s special-device] [-v special-device] DESCRIPTION
The swapon command is used to specify additional disk partitions for paging and swapping. A paging partition is a block special device. ( Tru64 UNIX does not currently support paging and swapping to a regular file. All paging and swapping areas must be block special devices.) The swapon command uses a priority default of 4 for block special devices. Calls to swapon normally occur in the system multiuser state initialization. When you make more swap space available with the command, the additional swap space is available until the system is rebooted. To make additional swap space permanent, you must specify the swap device entry in the /etc/sysconfigtab file. The swapon command flags can override the partition specifications in the /etc/sysconfigtab file. You can use Logical Storage Manager (LSM) volumes for additional swap space. For high system availability, you can mirror the LSM volumes. The Logical Storage Manager manual describes how to use the command to configure an LSM mirrored volume as additional swap space. There are two strategies for swap space allocation: immediate mode and deferred or over-commitment mode. The two strategies differ in the point in time at which swap space is allocated. If immediate mode is used, swap space is allocated when modifiable virtual address space is created. If deferred mode is used, swap space is not allocated until the system needs to write a modified virtual page to swap space. Immediate mode is the default swap space allocation strategy. Immediate mode is more conservative than deferred mode because each modifiable virtual page is assigned a page of swap space when it is created. If you use the immediate mode of swap space allocation, you must allocate a swap space that is at least as large as the total amount of modifiable virtual address space that will be created on your system. Immediate mode requires significantly more swap space than deferred mode because it guarantees that there will be enough swap space if every modifiable virtual page is modified. If you use the deferred mode of swap space allocation, you must estimate the total amount of virtual address space that will be both cre- ated and modified, and compare that total amount with the size of your system's physical memory. If this total amount is greater than the size of physical memory, the swap space must be large enough to hold the modified virtual pages that do not fit into your physical memory. If your system's workload is complex and you are unable to estimate the appropriate amount of swap space by using this mode, you should first use the default amount of swap space and adjust the swap space as needed. To determine which swap space allocation mode is being used, check the setting of the vm-swap-eager parameter in /etc/sysconfigtab. If it is either not specified or set to 1, the system uses immediate swap mode. If it is set to 0 (zero), the system uses deferred mode. FLAGS
Installs all paging partitions specified in the /etc/sysconfigtab file. Displays swap space utilization. For each swap partition, this flag displays the total amount of allocated swap space, the amount of swap space that is being used, and the amount of free swap space. Generates verbose output. NOTES
There is no way to stop paging and swapping on a partition. It is therefore not possible to use swap devices that can be dismounted during system operation. Swap space is also used during a system crash dump. In planning your swap space allocation you should also consider your crash dump requirements. See the System Administration for information on crash dumps. EXAMPLES
The following example shows a swap device entry in an /etc/sysconfigtab file: vm: swapdevice=/dev/disk/dsk0b,/dev/disk/dsk1b The following command adds the /dev/disk/dsk0b block device file as swap space: swapon /dev/disk/dsk0b ERRORS
You may receive the following messages when using the swapon command: special-device or an overlapping partition is open. Quitting... This message indicates that you tried to add a partition as a swap device that is actively in use by UFS, AdvFS, swap, or LSM. spe- cial-device is marked in use for fstype in the disklabel. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] This message indicates that you tried to use a partition as a swap device that is not currently in active use but is marked for use in the disk label's partition map. For example, the partition may be part of an LSM volume or an AdvFS domain. If you know that the partition you specified to swapon does not contain any data, you can choose to override the warning. In this case, the fstype in the disk label will be modified to swap. Note that you can use the disklabel -s command to set the fstype in the disk label to unused for partitions that do not contain any valid data. See disklabel(8) for more information. Partition(s) which overlap special-device are marked in use. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] This message indicates that the partition you specified is not marked for use, but other, overlapping partitions on the disk are marked for use. If you override this warning, the fstype in the disk's label will be modified. The partition you specified to swapon will be marked as in use as a swap device and all overlapping partitions will be marked UNUSED. The following examples illustrate these messages: Adding a partition that is marked for use as a swap device: # /usr/sbin/swapon /dev/disk/dsk11g /dev/disk/dsk11g disk is marked in use for LSMpubl in the disklabel. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] Partition g of disk dsk11 is part of a disk marked for use by LSM. If LSM is not actively using this partition and the partition does not contain any data, you may want to override this warning, by answering y. In this case, partition g will be marked as swap in the disk label. Adding a partition as a swap device whose overlapping partitions are marked for use: # /usr/sbin/swapon /dev/disk/dsk11c Partition(s) which overlap /dev/disk/dsk11c are marked in use. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] If you answer yes, partition c on disk dsk11 will be marked swap in the disk label and all partitions that overlap c will be marked UNUSED. Adding a partition that is currently in use as a swap device: # /usr/sbin/swapon /dev/disk/dsk11g /dev/disk/dsk11g or an overlapping partition is open. Quitting... Adding a partition that does not have a disk label as a swap device: # /usr/sbin/swapon /dev/disk/dsk11c The disklabel for /dev/disk/dsk11c does not exist or is corrupted. Quitting... See disklabel(8) for information on installing a disk label on a disk. FILES
Specifies the command path. Specifies information about file systems and swap devices. RELATED INFORMATION
Functions: swapon(2), savecore(8) System Administration delim off swapon(8)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy