Previous PageNext Page

Chapter 15 - Optimizing the Network

Introduction

Configure the file system cache on the server.
Configure communications limits on the server.
Configure swap areas on the server.

Accessing Optimization Functions

Figure 15-1. Banyan Server Configuration Menu

 

Configuring VINES File System Cache

Change the size of the file system cache.
Change the block size of the cache buffers.
Turn read-after-write verify on and off. See the Banyan Server Operations Guide for more information on the read-after-write verify feature.

Figure 15-2. Configure File System Screen

File System Cache Limits

Total Cache - The amount (in kilobytes) of server memory that is used for caching frequently accessed data. The default size is 0, which specifies autosizing.

Cache Buffer Size - The amount (in kilobytes) of server memory that makes up a cache buffer. The total file system cache is divided into cache buffers. You can set the cache buffer size at 2 KB, 4 KB (the default size), or 8 KB.

Determining New File System Cache Sizes

Manual configuration lets you set the total size of the file system cache to a specific non-zero positive integer. In this case, the label <configured> appears under the Total Cache field on the Configure File System menu.
Autosizing lets the system determine the total cache size dynamically. In this case, the label [autosized] appears under the Total Cache field on the Configure File System menu.

Table 15-1. Sample Default Cache Sizes at Installation

How much main memory your server has. Main memory is divided into total file system cache, the communications buffer, RAM called executable space in which services and system processes run, and space in which the kernel and drivers run. See Chapter 3 for a description of how servers manage memory.
How much memory is available for services. Increasing or decreasing total file system cache primarily affects executable space in which processes, such as file services, run. Decreasing file system cache frees up memory for services to run in. Increasing file system cache decreases the amount of available executable space for services. Use the Siz and freemem statistics of VNSM to determine service memory requirements.
The Siz statistic, which is accessed through the SHOW service statistics function, tells you the memory requirements of each service. The freemem statistic, which is accessed through the SHOW OS information function, tells you the amount of executable space that is currently not being used by services, but is available to them in the event that their memory demands increase. See Chapter 7 for a description of the Siz statistic. See Chapter 14 for a description of the freemem statistic.
The current total file system cache size. You can get your server's total file system cache size through the SHOW file system statistics function of VNSM. See Chapter 8 for more information on obtaining the total file system cache size.
The results of increasing or decreasing total file system cache. Table 15-2 summarizes the favorable and unfavorable results.

The favorable results outweigh the unfavorable results.
The unfavorable results will not have a significant effect on server performance.

Table 15-2. Results of Modifying Total File System Cache

Using VNSM, you find that heavy disk usage is adversely affecting server performance. In addition, the swapping average for the server is low. Therefore, you can increase total file system cache and still have enough RAM for processes to run efficiently.
Using VNSM, you find that the server has a high swapping average, but disk usage on your server is light. Therefore, you can decrease total file system cache without causing excessive disk usage.

Using the Configure File System Function

1. At the VINES Server Configuration menu, select Configure File System.

The Configure File System menu appears, displaying the limits currently in effect.

2. From the Configure File System menu, choose SPECIFY File System Cache Limits.

3. At the next screen, specify new limits in the following fields:

Total Cache - Specify the size (in kilobytes) of the total file system cache that you will allow on the server. Enter 0 for autosizing.

Cache Buffer Size - Specify the size (in kilobytes) of cache buffers. Valid values are 2, 4, or 8.

4. Press ENTER after specifying each limit. To keep a limit that is already in effect, press ENTER without specifying a new limit.

You return to the Configure File System menu.

5. To save your changes, select SAVE Changes and Exit or press F10. (To abort the procedure, choose ESCAPE Without Saving or press ESC.)

6. Reboot the server to put the changes into effect.

Configuring Communications Limits

Determining New Communications Limits

Total size of the communications buffer.
Maximum number of Sequenced Packet Protocol (SPP) connections that processes (for example, services) can have in use at one time.
Maximum number of open sockets that processes can have at one time. Sockets apply to all protocol families on the server.

3270/SNA - Each active LU session requires an SPP connection to the client.

Asynchronous Terminal Emulation - Each active host session requires an SPP connection to the client.

VINES File Service - An SPP connection is established each time a user issues SETDRIVE to set a drive to a VINES file volume. The SPP connections are terminated when the user logs out.

Keep in mind that SETDRIVE commands in the user profile do not establish SPP connections for sessions with the file service. This improves login performance. For a drive that is set from the user profile, an SPP connection is established when the user performs an action on the drive, such as a read, write, CD, DIR, etc. Although a user may have many drives set from the user's profile, SPP connections for sessions with the specified file service may not be established while the user is logged in to the network.

STDA - The STDA service uses an SPP connection for a session with the STDA client.

Print - Each invocation of PCPRINT establishes an SPP connection to the specified print service.

Security - When a user logs in, the service establishes an SPP connection with the workstation to deliver profile information. The connection terminates as soon as the delivery is complete.

Third-party - Third-party services can also use SPP connections.

Default and Maximum Communications Limits

Table 15-3. VINES Communication Resource Limits

Parameter Default Maximum
Communications Buffer 307200 Bytes (300 KB) 4194304 Bytes (4 MB)
Concurrent SPP Connections 600 3000
Concurrent Open Connections 600 3000

The SPP and Skt statistics, which show socket and SPP connection use on a service-by-service basis. See Chapter 7 for more information on these statistics.
The Total Comm Buffer Size, Comm Buffer Use, Allocate Failures, Configured Sockets, Sockets in Use, and Max Open Sockets statistics. See Chapter 6 for more information on these statistics.
The Connections configured, % Connections in use, and Max Connections (HWM) statistics. See Chapter 10 for more information on these statistics.

(MAX CONCURRENT SPP CONNECTIONS X 100)
+ (MAX CONCURRENT OPEN SOCKETS X 80)
=TOTAL COMMUNICATIONS BUFFER SIZE (IN BYTES)

(700 X 100) + (450 X 80) = 106000 Bytes (104 KB)

Specifying New Communications Limits

Figure 15-3. Configure Communications Screens

1. At the VINES Server Configuration menu, select Configure Communications Limits.

The Configure Communications Limits menu is displayed, with the limits currently in effect.

2. Choose SPECIFY Communications Limits.

3. At the next screen, specify new limits in the three fields. Press ENTER after specifying each limit. To retain a limit that is in effect, press ENTER without specifying a new limit.

4. After you press ENTER at the Maximum Concurrent Open Sockets field, you are returned to the Configure Communications Limits menu.

5. To save your changes, select SAVE Changes and Exit. You are returned to the VINES Server Configuration menu.

To abort the procedure, choose ESCAPE without saving.

6. Reboot the server to put the changes into effect.

Configuring Swap Areas

Overview of the swap area function
Suggested alternatives and recommendations for its use
Procedure for adding a swap area to a disk
Deleting a swap area from disk

Overview of Swap Area Configuration

Determining the Need for Additional Swap Space

Caveats and Considerations

The default size of the primary swap area is 32 MB for 386-based, 486-based, and Pentium-based platforms that are not manufactured by Banyan. If you upgrade a server to VINES 7.0, the default size of the primary swap area is 3.9 MB. If you fresh install VINES 7.0 on your existing server, you have a choice of making the swap are 32 MB or leaving it at 3.9 MB.
The maximum number of swap areas allowed on any server is 16. You may add up to 15 swap areas, in addition to the primary swap area.
On any disk but disk1, you may create up to eight swap areas. On disk1 you may add up to seven swap areas (though Banyan does not recommend it), because the primary swap area resides there.
Once a new swap area has been configured, it is disk space that cannot be used for any purpose other than paging or swapping. Each swap area added means less disk space for other uses.
Once a swap area has been created, it cannot be made larger or smaller. You can only configure additional swap areas after the first one has been added. Consider what size to make each additional area before you actually configure it. The system will reject any configured swap area under 8 blocks of 512 bytes each (4 KB), and any area over 16,384 blocks of 512 bytes each (8 MB). (512 bytes = 1/2 KB)
If the disk cannot accommodate the size of swap area you have chosen, even though the size is within the 8 through 16,384 block range, the area will be trimmed to a size the disk can handle. Each swap area created is an area of contiguous blocks of space found on the disk. The Configure Swap Space Menu will remind you of the size of each block and the upper size limit for the total additional space.

Suggestions and Recommendations

Suggested alternatives to try before you consider configuring additional swap areas.
Recommendations once you have tried the alternatives and have decided that adding the swap areas is the best alternative.

Solutions to Try Before Configuring More Swap Areas

Reduce the total file cache size. Reducing the file cache size increases the amount of RAM available as executable space for the kernel, drivers, applications, and so on. See the section "Configuring VINES File System Cache" earlier for more information.

Increase the amount of server memory. Consider increasing RAM to the maximum supported by your server platform.

Stop unused or lightly used services.

Reduce the number of users of a heavily used service. Ask users to use an alternate service, if available, on another server.

Move heavily-used services off of disk1. Move them to disks that are accessed less. Try to balance the work load in your server, so that no one disk (especially disk1) has more to handle than other disks. This should improve performance, but may not affect the amount of swapping.

Reduce the number of services on the server. Move services to other servers that are less heavily used. Make sure that the other servers have sufficient memory capacity to take on the additional work load.

Shut down and restart server software if the swapping average (SWAVG in VNSM) remains above 0.01 for a long period of time.

Move applications whose memory requirements are too high for the server. You may be using a third-party application that is not well-suited to the type of server on which it is installed. Move the application to a server that is better matched to its needs.

Configuring Additional Swap Areas

It is recommended that you do not place the additional swap areas on disk1.
Use the SHOW disk usage statistics function of VNSM or the OPERATE command to view the disks on the server. Place any additional swap areas on your least-used server disks. If all of your disks appear to be heavily used, consider adding another disk before you configure an additional swap area.
If the primary swap area is heavily used, consider adding more than one swap area to the chosen disk or disks. This will provide load-balancing of the swapping activity on the server.

For example, if you create only one additional swap area on disk2, the swapping load will be balanced between the primary swap space and the new one. Each will be tapped 50 percent of the time by swap requests. If you add two swap areas to disk2, disk2 will be tapped almost 67 percent of the time, while disk1 will be tapped approximately 33 percent of the time. The server continues to cycle through the swap areas that have space available, beginning with the primary swap area, tapping each in turn, until no swap space is left for paging or swapping.

The free blocks available to each swap area, including the primary swap area, are shown on the new Configure Swap Space menu, accessed from the server console. The free blocks number decreases in an amount proportional to how often that swap area is being tapped. For example, disk2 may have 8000 blocks total, but only 7990 blocks are free; the rest are currently in use.
Before adding any swap areas, consider your server's future needs and try to anticipate how they will affect the server's performance. Consider:

- How do you plan to use the disks?

- What additional services or applications will need to reside on the server?

- How large are its file volumes, and by how much will their data storage grow?

- Will the Network Mail service handle an increasing number of requests?

- Will you be moving the large application, the one that is pushing up the swapping average, to another server in six months?

Procedure for Adding a Swap Area to a Disk

1. At the console, choose Shut Down Server Software from the Operator Menu.

2. Select System Maintenance from the Operator Menu.

3. At the System Maintenance menu, choose Configure/Diagnose Server.

4. At the VINES Server Configuration menu, select the Configure Swap Space option.

5. At the Configure Swap Space menu, check the number of free blocks available to the primary swap area. If the number is below 1000 blocks, proceed to the next step.

If the number is above 1000 blocks, you do not need to configure additional swap space. In this case, press ESC to return to the VINES Server Configuration menu. Make sure that you restart services.

6. Choose CREATE swap area from the Configure Swap Space menu. The Create Swap Area screen appears.

7. In the Disk name field, enter diskn, where n is the number of a disk in your server. Do not put a blank space between "disk" and the number.

For example, to specify disk3 for the new swap area, enter disk3 at the prompt.

8. In the Number of 512-byte blocks field, enter the number of blocks, in multiples of 8, that will comprise the new swap area. The acceptable range is 8 blocks through 16,384 blocks. (Each block is 512 bytes, or 1/2 KB, in size.)

You should enter the number of blocks in multiples of 8 because the kernel swaps data to and from disk in 4 KB pages. For example, 8 512-byte blocks equals 4 KB (one 4 KB page). 16 512-byte blocks equals 8 KB (two 4 KB pages), and so on.

If you enter a number that is not a multiple of 8, the system rounds the number down to a multiple of 8. For example, if you enter 8001 blocks, the system rounds the number to 8000.

9. The Configure Swap Space menu displays the newly configured areas below the primary swap entry. In this example, the system administrator added swap area to disk2, and it has 7800 blocks of space:

Figure 15-4. Configure Swap Space Screen

If you want to configure another swap area, select CREATE swap area from the Configure Swap Space menu and repeat steps 7 and 8. Otherwise, select SAVE changes and exit or press F10 and return to the VINES Server Configuration menu. You do not have to reboot the server in order for these changes to take effect.

10. Return to the Operator Menu and restart services.

11. Return to the Configure Swap Space menu to look at the newly created swap area, and to observe how the server distributes data to the different swap areas.

Deleting a Swap Area from Disk

You can delete swap areas that you have added. You cannot delete the primary swap area.
You cannot delete a specific swap area from a disk. You can only delete all the swap areas on a disk.

For example, suppose that you have added two swap areas to a disk and you want to delete one of them. When you select one of the additional swap areas to be deleted, the system deletes both of them. You must then add the swap area that you want to retain.

1. At the console, choose Shut Down Server Software from the Operator Menu.

2. Select System Maintenance from the Operator Menu.

3. At the System Maintenance menu, select Configure/Diagnose Server.

4. At the VINES Server Configuration menu, select the Configure Swap Space option.

5. Choose DELETE swap area from the Configure Swap Space menu.

6. At the DELETE swap area screen, enter the name of the disk on which the swap area resides. The Configure Swap Space menu appears. An asterisk appears next to each swap area on the disk that you specified. Keep in mind that you are deleting all the swap areas on the specified disk.

7. To delete the swap areas, select SAVE changes and exit or press F10.

- To cancel the deletion without exiting from the Configure Swap Space menu, select UNDO selections. The asterisks next to the selected swap areas disappear. You can then choose another swap area for deletion.

- To cancel the deletion and exit from the Configure Swap Space menu, press ESC.

8. Reboot the server. Changes will not take effect unless the server is rebooted.

Configuring Thresholds

Configuring the Z-drive Threshold

Configuring the Router Threshold

Previous PageTop Of PageNext Page