oraunix 发表于 2010-12-31 13:45:34

Direct and Asynchronous I/O

本帖最后由 oraunix 于 2010-12-31 13:46 编辑

I/O operations in UNIX and Linux systems typically go through the file system cache. Although this doesn't represent a problem in itself, this extra processing does require resources. Bypassing the file system cache reduces CPU requirements, and frees up the file system cache for other non-database file operations. Operations against raw devices automatically bypass the file system cache.

When a synchronous I/O request is submitted to the operating system, the writing process blocks until the write is complete before continuing processing. With asynchronous I/O, processing continues while the I/O request is submitted and processed. This allows asynchronous I/O to bypass some of the performance bottlenecks associated with I/O operations.

Oracle can take advantage of direct I/O and asynchronous I/O on supported platforms using the FILESYSTEMIO_OPTIONS parameter, whose possible values are listed below.

[*]ASYNCH - Enabled asynchronous I/O where possible.
[*]DIRECTIO- Enabled direct I/O where possible.
[*]SETALL- Enabled both direct I/O and asynchronous I/O where possible.
[*]NONE - Disabled both direct I/O and asynchronous I/O.
The following example shows how the parameter is set.

SQL> SHOW PARAMETER FILESYSTEMIO_OPTIONS


NAME                                 TYPE      VALUE
------------------------------------ ----------- ------------------------------
filesystemio_options               string      none
SQL> ALTER SYSTEM SET FILESYSTEMIO_OPTIONS=SETALL SCOPE=SPFILE;


System altered.


SQL> SHUTDOWN IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> STARTUP
ORACLE instance started.


Total System Global Area926941184 bytes
Fixed Size                  1222672 bytes
Variable Size             239077360 bytes
Database Buffers          683671552 bytes
Redo Buffers                2969600 bytes
Database mounted.
Database opened.
SQL> SHOW PARAMETER FILESYSTEMIO_OPTIONS


NAME                                 TYPE      VALUE
------------------------------------ ----------- ------------------------------
filesystemio_options               string      SETALL
SQL>

页: [1]
查看完整版本: Direct and Asynchronous I/O