您的位置:首页 > 运维架构 > Linux

linux下测试读写速度的简单命令

2013-10-28 11:03 656 查看
linux下测试读写速度的简单命令

 

 

# date; cp (MTD NAND directory) filename  (temp directory) filename; sync; date

# date; cp (temp directory) filename; (MTD NAND directory) filename; sync; date

例如:

date;cp /mnt/sda2/music.zip  /tmp;sync;date

date;cp /tmp/music.zip /mnt/sda2/music.zip;date

 

在nuc960测试ntfs读写的结果

 

sh-3.2# date;cp /mnt/sda2/music.zip /tmp;sync;date

Thu Jan  1 00:01:28 UTC 1970

Thu Jan  1 00:01:30 UTC 1970

 

sh-3.2# cd sda2

sh-3.2# ls -l

drwxrwxrwx    1 root     root            0 Oct 28  2013 System Volume Information

-rwxrwxrwx    1 root     root     51715390 Jan  1 00:03 linux-2.6.17.14.tar.gz

-rwxrwxrwx    1 root     root     13289438 Oct 28  2013 music.zip

-rwxrwxrwx    2 root     root     12976128 Jul 23  2013 rootfs-t.yaffs2

sh-3.2# date;cp /tmp/music.zip /mnt/sda2/music2.zip;sync;date

Thu Jan  1 00:02:47 UTC 1970

Thu Jan  1 00:02:59 UTC 1970

sh-3.2# date;cp /tmp/music.zip /mnt/sda2/music2.zip;sync;date

Thu Jan  1 00:03:15 UTC 1970

Thu Jan  1 00:03:28 UTC 1970

 

文件大小 12MB多

读速度:5MB/s左右

写速度:1MB/s左右

 

 

 

 

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux nuc900 读写测速