<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sybase数据库技术，数据库恢复专家 &#187; directio</title>
	<atom:link href="http://www.dbainfo.net/tag/directio/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Sybase ASE设备属性dsync与directio</title>
		<link>https://www.dbainfo.net/sybase-ase-dsync-directio.htm</link>
		<comments>https://www.dbainfo.net/sybase-ase-dsync-directio.htm#comments</comments>
		<pubDate>Thu, 18 Jul 2013 10:19:01 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[directio]]></category>
		<category><![CDATA[dsync]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=2151</guid>
		<description><![CDATA[1、ASE的dsync和directio属性都是针对文件系统上的设备文件的，不适用于裸分区/原始分区。 2、dsync和directio是互斥的，也就是： dsync on对应 directio off , directio on对应dsync off。dsync和directio不能同时启用，但是可以同时关闭。 如果已将设备的dsync属性配置为on，那么不能再将directio设置为on；如果想设置directio为on，那么必须先将dsync设置为off。 3、dsync on/off表示ASE是否保证把数据写入到设备上面去；directio on/off表示ASE是否跳过操作系统的文件系统缓存。 dsync on和directio off表示ASE的写操作直接在存储介质上进行，能够保证数据完全写入到设备上以及数据库的可恢复性； dsync off和directio on表示ASE的写操作跳过操作系统缓冲区高速缓存，直接将数据传输到磁盘，不能保证数据真正写入到设备上； dsync off和directio off表示使用文件系统的缓存。 4、在SUSE上测试ASE 15.7使用文件系统设备文件时默认是directio on（dsync off），已经跳过文件系统缓存了。 本文链接地址：https://www.dbainfo.net/sybase-ase-dsync-directio.htm； 本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载； 转载务必注明原始出处 : Sybase数据库技术，数据库恢复专家； 对《Sybase ASE设备属性dsync与directio》有何疑问或见解，请在本文下方发表； 对网站还有其他问题或建议，请提交在留言板，谢谢！ 相关文章2010-09-10 -- ASE设备中的dsync和directio属性介绍 (1)]]></description>
			<content:encoded><![CDATA[<p>1、ASE的dsync和directio属性都是针对<span style="color:#f00;">文件系统</span>上的设备文件的，不适用于裸分区/原始分区。</p>
<p>2、dsync和directio是互斥的，也就是：<span style="color:#f00;"><strong> dsync on对应 directio off , directio on对应dsync off</strong></span>。dsync和directio不能同时启用，但是可以同时关闭。</p>
<p>如果已将设备的dsync属性配置为on，那么不能再将directio设置为on；如果想设置directio为on，那么必须先将dsync设置为off。</p>
<p>3、dsync on/off表示ASE是否保证把数据写入到设备上面去；directio on/off表示ASE是否跳过操作系统的文件系统缓存。</p>
<ul>
<li>dsync on和directio off表示ASE的写操作直接在存储介质上进行，能够保证数据完全写入到设备上以及数据库的可恢复性；</li>
<li>dsync off和directio on表示ASE的写操作跳过操作系统缓冲区高速缓存，<span style="color:#f00;">直接将数据传输到磁盘</span>，不能保证数据真正写入到设备上；</li>
<li>dsync off和directio off表示使用文件系统的缓存。</li>
</ul>
<p>4、在SUSE上测试ASE 15.7使用文件系统设备文件时默认是directio on（dsync off），已经跳过文件系统缓存了。</p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/sybase-ase-dsync-directio.htm">https://www.dbainfo.net/sybase-ase-dsync-directio.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/sybase-ase-dsync-directio.htm">Sybase ASE设备属性dsync与directio</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2010-09-10 -- <a href="https://www.dbainfo.net/ase-device-dsync-directio-introduction.htm" title="ASE设备中的dsync和directio属性介绍">ASE设备中的dsync和directio属性介绍</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/sybase-ase-dsync-directio.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASE设备中的dsync和directio属性介绍</title>
		<link>https://www.dbainfo.net/ase-device-dsync-directio-introduction.htm</link>
		<comments>https://www.dbainfo.net/ase-device-dsync-directio-introduction.htm#comments</comments>
		<pubDate>Fri, 10 Sep 2010 01:47:25 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[directio]]></category>
		<category><![CDATA[disk init]]></category>
		<category><![CDATA[dsync]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=234</guid>
		<description><![CDATA[sybase官方文档上关于设备的dsync,directio这两个属性也是语焉不详，可能不同版本不同平台的ASE这两个属性有不同的默认值。 下面是一位Sybase大牛的论述，很清晰明朗。 The use of dsync/directio (typically) means the dataserver has to wait for a write to complete on the physical disk before the dataserver considers the write to be 'successful' (aka guaranteed write). While this *wait* will extend the time it takes to complete the associated database action, the guaranteed write to disk is [...]]]></description>
			<content:encoded><![CDATA[<p>sybase官方文档上关于设备的dsync,directio这两个属性也是语焉不详，可能不同版本不同平台的ASE这两个属性有不同的默认值。<br />
下面是一位Sybase大牛的论述，很清晰明朗。</p>
<p>The use of dsync/directio (typically) means the dataserver has to wait for a write to complete on the physical disk<br />
before the dataserver considers the write to be 'successful' (aka guaranteed write).  While this *wait* will extend the<br />
time it takes to complete the associated database action, the guaranteed write to disk is required to insure<br />
recoverability (in the case of a dataserver/machine/disk subsystem failure).</p>
<p>If dsync/directio are disabled then a dataserver write may finish more quickly due to the disk subsystem *caching* the<br />
write IO.  This means the associated dataserver action completes more quickly but there's no guarantee the IO made it to<br />
the physical disk.  If the dataserver/machine/disk subsystem fails between the successful disk cache write and the<br />
physical disk write, you could end up losing data (ie, the dataserver thinks the data is on disk while the disk has no<br />
record of the data existing).</p>
<p>For important databases (eg, master, RSSDs, user databases), especially in production environments, the recoverability<br />
of the data usually takes precedence over speed.  In these scenarios the dataserver must wait for physical disk writes<br />
to complete 'successfully', with the caveat that the associated database action takes longer to complete.</p>
<p>For trivial/development databases where recoverability is not a concern, or for databases that are rebuilt from scratch<br />
at dataserver startup (eg, temporary databases), guaranteed disk writes are not as important.  In these scenarios a<br />
successful write to disk cache is sufficient, with the added benefit that the associated database action completes more<br />
quickly.</p>
<p>So, generally speaking:</p>
<p>dsync/directio enabled : guaranteed disk writes, guaranteed recoverability, associated database actions take more time<br />
to complete</p>
<p>dsync/directio disabled : no guarantee of writes to physical disks, no guarantee of recoverability, associated database<br />
actions take less time to complete</p>
<p>------------------</p>
<p>Now-a-days there are lots of ways to configure disk subsystems ... raw disks, cached disks, cached file systems,<br />
journaled file systems, multiple layers of logical disk management, sans (w/ and w/out cache), etc, etc, etc ...</p>
<p>Some of these configurations may support dsync/directio operations by the dataserver while actually performing the write<br />
to cache, ie, the physical disk write takes place at a later time.  For some systems this may be ok if the disk<br />
subsystem vendor can guarantee that those cache writes will always make their way to disk.</p>
<p>The issue here is that regardless of which attribute settings (dsync/directio) are used for dataserver devices, it's the<br />
DBA's responsibility to insure the disk subsystem can really guarantee disk writes for those database actions that<br />
require guaranteed recoverability.</p>
<p>总结一下：文件系统将directio属性关闭。文件系统上临时数据库或者不太“重要”的数据库的设备可以将dsync调整成false，其余数据库为了保证恢复将dsync设置成true。</p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/ase-device-dsync-directio-introduction.htm">https://www.dbainfo.net/ase-device-dsync-directio-introduction.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/ase-device-dsync-directio-introduction.htm">ASE设备中的dsync和directio属性介绍</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2013-07-18 -- <a href="https://www.dbainfo.net/sybase-ase-dsync-directio.htm" title="Sybase ASE设备属性dsync与directio">Sybase ASE设备属性dsync与directio</a> (0)</li><li>2013-07-18 -- <a href="https://www.dbainfo.net/create-ase-server-by-manual.htm" title="手动创建ASE服务器">手动创建ASE服务器</a> (0)</li><li>2010-06-07 -- <a href="https://www.dbainfo.net/ase-database-device-disk-mirror-and-disk-unmirror.htm" title="使用ASE15.x数据库中的设备镜像功能">使用ASE15.x数据库中的设备镜像功能</a> (0)</li><li>2009-11-18 -- <a href="https://www.dbainfo.net/extend-device-size-manually.htm" title="尝试手动增加sybase设备文件的内容来扩充设备大小">尝试手动增加sybase设备文件的内容来扩充设备大小</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/ase-device-dsync-directio-introduction.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
