z****u 发帖数: 185 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: zouzou (zouzou), 信区: Linux
标 题: a linux disk IO question
发信站: BBS 未名空间站 (Tue Jul 29 02:11:58 2008)
I need to reorganize a large amount of data (~9.5G, 500 files) stored in
disk.
So I do
foreach( file )
{
fread( file );
reorganize;
fwrite( file );
};
What surprises me is that it takes too long to do this simple thing. One
timing result shows
read: 4761second (time cost for fread)
| r****t 发帖数: 10904 | |
|