12.3 CIFS

12.3.1 Maximum Cached Subdirectories Per Volume

This controls the maximum number of folder entries that can be cached by the CIFS server for a volume in the directory cache. The default value is 102400.

Use the following command to the set the Maximum Cached Subdirectories Per Volume.

novcifs –k SDIRCACHE = <value for the Maximum Cached Subdirectories Per Volume>

12.3.2 Maximum Cached Files Per Subdirectory

This controls the maximum number of file entries that can be cached by the CIFS server for a given folder in the directory cache. The default value is 10240.

Use the following command to the set the Maximum Cached Files Per Subdirectory.

novcifs –k DIRCACHE = <value for the Maximum Cached Files Per Subdirectory>

12.3.3 Maximum Cached Files Per Volume

This controls the maximum number of file entries that can be cached by the CIFS server for a given volume in the directory cache. The default value is 256000.

Use the following command to the set the Maximum Cached Files Per Volume.

novcifs –k FILECACHE = <value for the Maximum Cached Files Per Volume>

NOTE:The above filecache size determines how many files or folders can be opened at a time. Although the total number of files and folders residing in a volume might be substantially lager than this number. This settings caches only the file name and related information, and it does not cache the whole file.

Recommendation: Set this value close to the number of files and folders available in a volume.

12.3.4 Subtree Search

A subtree search or contextless login enables CIFS to search for a user in the entire base context of a tree. The subtree search setting that is saved in the cifs.conf file stays persistent even if the system or service is restarted.

To use the subtree search feature, the CIFS proxy user should have read rights for the base context. These rights are assigned automatically from iManager when the context is added. A subtree search can be configured only at a physical server or at node level. In a cluster setup, each node should be configured with the same configuration level for consistent behavior.

Use following command to enable or disable subtree search.

novcifs -y yes|no

Subtree search performance depends on how the eDirectory replicas are spread over how the eDirectory contexts hierarchy is created.

12.3.5 Information and Debug Logs

Please keep the CIFS information and debug logs in a disabled state unless you specifically require the detailed log information.

To enable or disable the Debug Log for Developers, use the following command: novcifs [-b yes|no | --enable-debug=yes|no]

To enable or disable the Info Log, use the following command: novcifs [-f yes|no |--enable-info=yes|no]

12.3.6 Oplocks

The Oplocks or opportunistic locking improves file access performance by caching files at the client side. This option is enabled by default.

Recommendation: For better performance oplocks should be enabled (use iManager).

12.3.7 Cross Protocol Locks

The CrossProtocol locks help in using the files in the right way from different clients depending on the type of file accessed. This option is enabled by default.

Recommendation: Option should be enabled for data integrity purposes.

12.3.8 SMB Signing

The SMB signing ensures data integrity. Default option is disabled in latest CIFS releases as both client and server are in trusted corporate network and also disabling gives optimal file server performance. The SMB signing should be turned off when domain authentication is configured.

Recommendation: Option is disabled by default.

novcifs –g yes / no / optional / force

Apart from the above parameters, for more information on CIFS parameters that affect the file system performance, see Locks Management for CIFS, Using Offline Files and Directory Cache Management for CIFS Server in the OES 2 SP3: Novell CIFS for Linux Administration Guide.