宇宙主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

欧基零壹微头条IP归属甄别会员请立即修改密码
12
返回列表 发新帖
楼主: boloverr

关于硬盘测试的结果

[复制链接]
发表于 2010-11-4 20:45:55 | 显示全部楼层
磁盘的随机读写能力。
发表于 2010-11-4 22:17:46 | 显示全部楼层
用第一条命令测吧,不会有人在Web server上开dsync吧?
发表于 2010-11-5 00:48:09 | 显示全部楼层
首先这个只能代表连续存储。
然后帮大家G了一下:
dsync是同步I/O,相对于异步来说会慢。
发表于 2010-11-5 00:49:59 | 显示全部楼层
理解基本是正确的,先来原文:
For devices initialized on UNIX operating system files, the dsync setting controls whether or not writes to those files are buffered. When the dsync setting is on, Adaptive Server opens a database device file using the UNIX dsync flag. The dsync flag ensures that writes to the device file occur directly on the physical storage media, and Adaptive Server can recover data on the device in the event of a system failure.

When dsync is off (false), writes to the device file may be buffered by the UNIX file system, and the recovery of data on the device cannot be ensured. Turn off dsync only when data integrity is not required, or when the System Administrator requires performance and behavior similar to earlier Adaptive Server versions.

generally dsync is set to off for tempdb devices which is not required during recovery.

Note:The dsync setting is ignored for devices initialized on raw partitions, and for devices initialized on Windows files. In both cases, writes to the database device take place directly to the physical media.
发表于 2010-11-5 00:53:52 | 显示全部楼层
对于Unix操作系统的文件来说,dsync控制被写入的文件是否被缓存(buffered)。如果dsync打开,打开数据库的连接可以使用dsync 标记。dstnc标记(打开)确保写入设备的文件直接被写入物理设备(而不经过buffer,以保证同步),XXXX。
如果dsync关闭,写入文件将会被buffer。恢复的数据可能不可信(因为可能断电时候部分在buffer里)。仅当数据集成不重要,或者系统需要高性能的时候,才建议关闭dsync。

概括:加dsync就不使用缓存了,是个测试测试I/O的好参数。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|FastFib VPS论坛

GMT+8, 2024-9-20 21:30 , Processed in 0.058019 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表