9月 142012
 

对于同一个文件,虽然每次读写的数据量很小,但是如果每次读写的位置很随机,那么读写的效率也是很低的,大家都知道。

但是有一种情况,可能不太被注意,虽然是顺序读写,依然很慢;现在有一个进程顺序写一个文件,可能每秒能写100多MB,但是,如果有100个类似的进程顺序写100个不同的文件,虽然表面上都是在顺序写,但是对于磁盘来讲,需要不断地切换磁头到不同的文件,其实也已经表现为随机写了。

 

 Posted by at 上午 11:52

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据