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

Enabling Qwrite Capability

By default, the Sun QFS file systems disable simultaneous reads and writes to the same file. This mode is defined by the UNIX vnode interface standard, which gives exclusive access to only one write while other writers and readers must wait. Qwrite enables simultaneous reads and writes to the same file from different threads.

The Qwrite feature can be used in database applications to enable multiple simultaneous transactions to the same file. Database applications typically manage large files and issue simultaneous reads and writes to the same file. Each system call to a file acquires and releases a read/write lock inside the kernel. This lock prevents overlapped or simultaneous operations to the same file. If the application itself implements file-locking mechanisms, the kernel-locking mechanism impedes performance by unnecessarily serializing I/O.

Qwrite can be enabled in the /etc/vfstab file, in the samfs.cmd file, and as a mount option. The -o qwrite option with the mount command bypasses the file system locking mechanisms except for applications accessing the file system through NFS and lets the application control data access. If qwrite is specified, the file system enables simultaneous reads and writes to the same file from different threads. This option improves I/O performance by queuing multiple requests at the drive level.

The following example uses the mount command to enable Qwrite on a database file system:

# mount -F samfs -o qwrite /db

For more information about this feature, see the description of the qwrite directive on the samfs.cmd(4) man page or the -o qwrite option on the mount_samfs(1M) man page.