23.11 Cache Balancing Commands (NetWare)

NSS provides commands to balance the cache for NSS on NetWare.

WARNING:If you give NSS more memory than you allow for the server, NSS fails to load. Your NSS-based sys: volume becomes inoperable until you load the c:\nwserver\server.exe with an NSS override to correct the situation. For information, see Section 23.2, NSS Startup Commands (NetWare).

Commands

Description

nss /CacheBalance=value

Enables the dynamic balancing of free memory for the NSS buffer cache. Sets the specified percentage of free kernel memory that NSS uses for its buffer cache. [Default=85; Range=1 to 99]

nss /NoCacheBalance

Disables the dynamic balancing of free memory for the NSS buffer cache.

nss /MinBufferCacheSize=value

Sets the specified minimum number of NSS buffer cache entries. [Default=512; Range=384 to memory size in KB/4 KB]

nss /MinOSBufferCacheSize=value

Sets the specified minimum number of NetWare buffer cache entries. [Default=256; Range=256 to memory size in KB/4 KB]

nss /NameCacheSize=value

Sets the specified maximum number of Name cache entries. [Default=100000; Range=17 to 1000000]

nss /CacheUserMaxPercent=value

Sets the specified maximum percentage of buffer cache that can be used for user data. [Default=80; Range=10 to 100]

nss /ClosedFileCacheSize=value 

Sets the number of closed files that can have their beast objects cached in memory. On average, each Closed File Cache entry consumes 0.4 - 1KB of RAM.

[Default=50000; Range=16 to 1000000; Recommended=100000]

CacheStats

Shows the caching statistics for buffers.

FileCacheStats

Shows the caching statistics for file system objects.

NameCacheStats

Shows the caching statistics for names.

ResetStats

Resets caching and file statistics.

nss /FlushFilesImmediately=volume

Synchronously flush data to the specified volume when its files are closed instead of waiting for the next scheduled write of data to the volume.

nss /NoFlushFilesImmediately=volume

Disables synchronously flushing files to the specified volume when its files are closed. Instead, data is written to the volume on the next scheduled write of data to the volume.

nss /FileFlushTimer=value 

Sets the flush time in seconds for writing data to modified open files. Increasing this number might reduce the number of writes to disk; however, it increases the amount of data that is lost if the system crashes.

[Default=10 seconds; Range=1 to 3600 seconds]

nss /IDCacheResetInterval 

Set the number of seconds between invalidation of the ID cache. [Default=90000 Range=0-200000000]