JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun QFS File System 5.3 Configuration and Administration Guide     Sun QFS and Sun Storage Archive Manager 5.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  File System Overview

2.  About the Master Configuration File

3.  mcf File Examples

4.  Configuring the File System

5.  Configuring a Shared File System

6.  Administering File System Quotas

7.  Advanced File System Topics

8.  SMB Service in SAM-QFS

9.  Configuring WORM-FS File Systems

10.  Tunable Parameters

Increasing File Transfer Performance for Large Files

How to Increase File Transfer Performance

Enabling Qwrite Capability

Setting the Write Throttle

Setting the Flush-Behind Rate

Tuning the Number of Inodes and the Inode Hash Table

ninodes Parameter

nhino Parameter

When to Set the ninodes and nhino Parameters

11.  Using QFS File Systems with SANergy (SAN-QFS)

12.  Mount Options in a Shared File System

13.  Using the samu Operator Utility

Tuning the Number of Inodes and the Inode Hash Table

The Sun QFS file system enables you to set the following two tunable parameters in the /etc/system file:

To enable non-default settings for these parameters, edit the /etc/system file, and then reboot your system.

ninodes Parameter

The ninodes parameter specifies the maximum number of default inodes. The value for ninodes determines the number of in-core inodes that Sun QFS software keeps allocated to itself even when applications are not using many inodes.

The format for this parameter in the /etc/system file is as follows:

set samfs:ninodes = _value_

The range for value is from 16 through 2000000. The default value for ninodes is one of the following:

nhino Parameter

The nhino parameter specifies the size of the in-core inode hash table.

The format for this parameter in the /etc/system file is as follows:

set samfs:nhino = value

The range for value is 1 through 1048756. value must be a nonzero power of 2. The default value for nhino is one of the following:

When to Set the ninodes and nhino Parameters

When searching for an inode by number, a Sun QFS file system searches its cache of in-core inodes. To speed this process, the file system maintains a hash table to decrease the number of inodes it must check.

A larger hash table reduces the number of comparisons and searches, at a modest cost in memory usage. If the nhino value is too large, the system is slower when undertaking operations that sweep through the entire inode list (inode syncs and unmounts). For sites that manipulate large numbers of files and sites that do extensive amounts of NFS I/O, setting these parameter values to larger than the defaults can be advantageous.

If your site has file systems that contain only a small number of files, consider making these numbers smaller than the defaults. For example, this setting might improve performance if you have a file system into which you write large single-file tar(1) files to back up other file systems.