<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=Swap_File</id>
	<title>Swap File - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=Swap_File"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=Swap_File&amp;action=history"/>
	<updated>2026-05-02T12:49:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=Swap_File&amp;diff=826&amp;oldid=prev</id>
		<title>Darya.zelenina: Created page with &quot;A &#039;&#039;&#039;swap file&#039;&#039;&#039; is a system file used for swapping: moving the working set of the currently executing process out of memory. By default, the swa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=Swap_File&amp;diff=826&amp;oldid=prev"/>
		<updated>2019-06-08T04:55:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;A &amp;#039;&amp;#039;&amp;#039;swap file&amp;#039;&amp;#039;&amp;#039; is a system file used for &lt;a href=&quot;/index.php?title=Swapping&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Swapping (page does not exist)&quot;&gt;swapping&lt;/a&gt;: moving the &lt;a href=&quot;/Working_Set&quot; title=&quot;Working Set&quot;&gt;working set&lt;/a&gt; of the currently executing process out of memory. By default, the swa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;swap file&amp;#039;&amp;#039;&amp;#039; is a system file used for [[Swapping|swapping]]: moving the [[Working Set|working set]] of the currently executing process out of memory. By default, the swap file is SYS$SYSTEM:[[SWAPFILE.SYS]], but you can create additional swap files (253 is the limit for the total number of swap and [[Page File|page files]]). The default swap file is installed automatically; additional swap files or swap files in locations other than SYS$SYSTEM:[[SWAPFILE.SYS]] need to be explicitly installed in [[SYPAGSWAPFILES.COM]].&lt;br /&gt;
&lt;br /&gt;
=Displaying Swap File Size=&lt;br /&gt;
The size of the swap files can be displayed with &amp;#039;&amp;#039;&amp;#039;SHOW MEMORY/FILES&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=Calculating Swap File Size=&lt;br /&gt;
&lt;br /&gt;
[[AUTOGEN]] calculates an appropriate size for your swap file space automatically. To manually calculate the size for swap file space, use the following formula:&lt;br /&gt;
&lt;br /&gt;
 size-in-blocks (total for all swap files on the system) &lt;br /&gt;
 = [[MAXPROCESSCNT]] * average [[WSQUOTA]] for processes running on this system&lt;br /&gt;
&lt;br /&gt;
For [[VAX]], WSQUOTA should be in pages and for [[Alpha]], in pagelets.&lt;br /&gt;
&lt;br /&gt;
=Startup Command Procedures=&lt;br /&gt;
&lt;br /&gt;
Page and swap files other than SYS$SYSTEM:[[PAGEFILE.SYS]] and SYS$SYSTEM:[[SWAPFILE.SYS]] must be reinstalled each time the system boots. You can do this by adding the commands to install the files to the startup command procedure SYS$MANAGER:[[SYPAGSWPFILES.COM]]. The template file SYS$MANAGER:SYPAGSWPFILES.TEMPLATE includes comments that help explain how this file is used.&lt;br /&gt;
&lt;br /&gt;
=Modifying Swap File Settings=&lt;br /&gt;
&lt;br /&gt;
There are three ways you can change specifications and sizes of your swap file(s): [[AUTOGEN]] (recommended), [[SWAPFILES.COM]] (only valid for the primary swap file), and [[SYSGEN]].&lt;br /&gt;
&lt;br /&gt;
==AUTOGEN==&lt;br /&gt;
&lt;br /&gt;
Use the following syntax in [[MODPARAMS.DAT]]:&lt;br /&gt;
&lt;br /&gt;
For the total size of all swap files:&lt;br /&gt;
* SWAPFILE = n (0 if you don&amp;#039;t want to change the size of the swapfile; otherwise AUTOGEN may adjust the value)&lt;br /&gt;
&lt;br /&gt;
For the primary swap file:&lt;br /&gt;
* ADD_SWAPFILE = n increases the size of the file by n&lt;br /&gt;
* MAX_SWAPFILE = n sets the maximum size of the file to n; AUTOGEN may make adjustments but will not set the size to more than n&lt;br /&gt;
* MIN_SWAPFILE = n sets the minimum size of the file to n; AUTOGEN may make adjustments but will not set the size to less than n&lt;br /&gt;
&lt;br /&gt;
For additional swap files:&lt;br /&gt;
&lt;br /&gt;
* SWAPFILEn_NAME = sets the file specification for swapfile n (where n is 2 for secondary, 3 for tertiary, etc)&lt;br /&gt;
* SWAPFILEn_SIZE = m sets the size of swapfile n to m&lt;br /&gt;
* ADD_SWAPFILEn_SIZE = m increases the size of swapfile n by m&lt;br /&gt;
* MAX_SWAPFILEn_SIZE = m sets the maximum size of swapfile n to m&lt;br /&gt;
* MIN_SWAPFILEn_SIZE = m sets the minimum size of swapfile n to m&lt;br /&gt;
&lt;br /&gt;
==SWAPFILES.COM==&lt;br /&gt;
SYS$UPDATE:[[SWAPFILES.COM]] is a menu-driven command procedure that lets you change the size of primary system, swap and dump files. It displays their sizes and the amount of space remaining on the system disk first and then lets you specify new values for them. Note that if you make modifications to swap files using [[SWAPFILES.COM]], [[AUTOGEN]] may make modifications to them the next time it runs, so it is recommended to update [[MODPARAMS.DAT]] with the new sizes of the files.&lt;br /&gt;
&lt;br /&gt;
==SYSGEN==&lt;br /&gt;
You can create and install swap files with the following [[SYSGEN]] commands:&lt;br /&gt;
 CREATE file-spec/SIZE=block-count &lt;br /&gt;
 INSTALL file-spec/SWAP&lt;br /&gt;
&lt;br /&gt;
Note that if the file is not SYS$SYSTEM:[[SWAPFILE.SYS]], you will need to install it every time the system boots, so add that INSTALL command to [[SYPAGSWAPFILES.COM]].&lt;br /&gt;
&lt;br /&gt;
=Installing Swap Files=&lt;br /&gt;
The default swap file is installed automatically; additional swap files or swap files in locations other than SYS$SYSTEM:[[SWAPFILE.SYS]] need to be explicitly installed in [[SYPAGSWAPFILES.COM]]. Swap files are installed with the [[SYSGEN]] INSTALL command:&lt;br /&gt;
&lt;br /&gt;
 SYSGEN&amp;gt; INSTALL device:filespec /SWAPFILE&lt;br /&gt;
&lt;br /&gt;
Note that is they reside on a device other than the system disk, that device needs to be mounted before the files are installed.&lt;br /&gt;
&lt;br /&gt;
=Deleting Swap Files=&lt;br /&gt;
If you remove a system page, swap, or dump file, do not simply delete the file. The disk might become corrupted if you continue to use the system after you delete the files. Do the following:&lt;br /&gt;
# Rename the swap file.&lt;br /&gt;
# Reboot the system.&lt;br /&gt;
# Delete the renamed file. &lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
* [https://www.vmssoftware.com/pdfs/HP_branded_docs_1st_batch/OpenVMS_Performance_Management_manual.pdf OpenVMS Performance Management Manual]&lt;/div&gt;</summary>
		<author><name>Darya.zelenina</name></author>
	</entry>
</feed>