|
本帖最后由 zergduan 于 2012-8-16 06:54 编辑
Yong Huang 发表于 2012-8-16 03:11 ![]()
> 我在session级别修改db_file_multiblock_read_count=128,然后用select /*+ full(b) */ count(*) from b
...
谢谢
上面的文章提到了If data needs to be accessed once without keeping the data in the cache, various options such as using direct I/O, discovered direct I/O, or the VX_SETCACHE ioctl with the VX_NOREUSE option may be used. For example, rather than using cp(1) to copy a large file, try using dd(1) instead using a large block size as follows:
# dd if=srcfile of=destfile bs=1024k
On HP-UX 11i v2 and earlier, cp(1) reads and writes data using 64 KB logical I/O. Using dd, data can be read and written using 256 KB I/Os or larger. The large I/O size will cause dd to engage the Discovered Direct I/O feature of HP OnlineJFS and the data will be transferred using large direct I/O. There are several advantages of using dd(1) over cp(1):
Transfer can be done using a larger I/O transfer size
Buffer cache is bypassed, thus leaving other more important data in the cache.
Data is written synchronously, instead of asynchronously, avoiding large buildup of dirty buffers which can potentially cause large I/O queues or process that call sync()/fsync() to temporarily hang.
|
|