NetWare provides a virtual memory system that moves data out of memory and into a swap file on disk if the data isn't used frequently. Thus, the virtual memory system ensures that RAM is used more efficiently. It lessens the likelihood that low memory conditions will cause a problem with the server. For general information about virtual memory, see Virtual Memory.
NetWare Remote Manager has several pages that can assist you in monitoring and managing the use of Virtual Memory system in your server.
You can manage the swapping of data by controlling the swap files where the data is stored on disk. To create, delete, and manage swap files, access NetWare Remote Manager and complete the tasks in the following table:
You can create one swap file per volume. The swap file for volume SYS: is created by default; you can delete it if necessary.
Data moved to disk by virtual memory is stored in any available swap file; it does not matter which volume the swap file is on. Generally, you should place swap files on the fastest volume, the one with the most available space, or the one that is used the least.
When you dismount a volume, the swap file is deleted. To keep a swap file on that volume, you must create the swap file again when the volume is mounted. The exception is the swap file for volume SYS:, which is created by default. For convenience, add the commands to create swap files to the AUTOEXEC.NCF file, so the files are created each time the server is started.
Swap files are dynamic; they expand and contract as data is swapped in and out of memory.
The real value of virtual memory is in using a sufficient supply of memory more efficiently, thereby improving server performance.
If the overall supply of memory is running low, then swapping will occur more often when virtual memory is in use. If memory is extremely low, the system might spend a significant amount of its time swapping memory in and out of disk and have little time to accomplish useful work. This is called disk thrashing.
In extremely low memory conditions, NetWare moves all the memory from a protected address space into the swap file, temporarily stopping the modules within the space. After a period of time, NetWare moves the memory back into the protected address space and shuts down another space, moving its memory to the swap file. Without virtual memory, these extremely low memory conditions would cause processes to fail. With virtual memory, the server keeps running, although very slowly.
If the Average Clean Free Available State or the Average Page I/O state is Suspect or Bad on the Virtual Memory Health Information page in NetWare Remote Manager, your server is experiencing disk thrashing.
If your server is experiencing disk thrashing, you can use the following two hidden SET parameters (Memory category) to manage the balance between the virtural memory cache pool and the file system cache pool. Use caution when changing these parameters, because until you have more than 4 GB of memory in the server, increasing these parameters will remove memory from the file system cache pool and cause low memory conditions there.
Specifies the number of pages that the viritual memory system cache needs to operate properly.
Specifies the number of pages that the virtual memory system cache considers to be excessive. Having an available page count higher than this number might result in the pages being be given to another cache pool.
You can specify the point at which the server sends an alert to the console because of excessive memory swapping by using the Average Page In Alert Threshold Set parameter (Memory category).
The value is the average number of pages swapped from disk to memory per second, calculated over the last five seconds. The default is 2000.
To change the values for this parameter using NetWare Remote Manager, do the following:
Click the Set Parameters link in the navigation frame and then the Memory Category link on the Set Parameter Categories page.
Click the value link for the Average Page In Alert Threshold setting.
Enter the new value in the Current Value field and click OK.
When disk thrashing occurs, the complete solution is to add more RAM. Virtual memory cannot compensate for an overall lack of server memory, although it can prevent processes from failing and allow a server to continue to function.