linux ntfs 速度,ntfs-3g 写入 速度优化

选用版本号iperf-2.0.5,主机和设备都是用linux OS

1.编译x86版本,用做server端

输入./configure

make

src目录下生成x86版本iperf程序

2. arc版本,做client端

make distclean(一定要将之前的配置清掉)

./configure --host=arc-linux-uclibc CC=arc-linux-uclibc-gcc--prefix=/mnt/fileroot/michael.wang/tools

提示出错,如下

ReportCSV.o: In function `CSV_peer':

ReportCSV.c:(.text+0x6a): undefined reference to `rpl_malloc'

Reporter.o: In function `ReportServerUDP':

Reporter.c:(.text+0xe7e): undefined reference to `rpl_malloc'

Reporter.o: In function `ReportSettings':

Reporter.c:(.text+0x122e): undefined reference to `rpl_malloc'

Reporter.o: In function `InitReport':

Reporter.c:(.text+0x1606): undefined reference to `rpl_malloc'

Reporter.c:(.text+0x175c): undefined reference to `rpl_malloc'

Reporter.o:Reporter.c:(.text+0x1828): more undefined references to `rpl_malloc' follow

collect2: ld returned 1 exit status

make[2]: *** [iperf] Error 1

将#define malloc rpl_malloc宏屏蔽掉如

//#define malloc rpl_malloc

从新编译,ok,src目录下生成arc版本iperf程序

按照手册可以分别在装有x86linux的PC和装有arclinux的设备上进行通信测试

数据举例

server10.18.11.242x86

client10.18.9.250arc

TCP

PC

michael.wang@announce:/mnt/fileroot/michael.wang/iperf-2.0.5$ iperf_pc -s

------------------------------------------------------------

Server listening on TCP port 5001

TCP window size: 85.3 KByte (default)

------------------------------------------------------------

[4] local 10.18.11.242 port 5001 connected with 10.18.9.250 port 48166

[ ID] IntervalTransferBandwidth

[4]0.0-10.0 sec69.5 MBytes58.2 Mbits/sec

ARC

[root@AmlogicLinux /]$ ./iperf_arc -c 10.18.11.242

------------------------------------------------------------

Client connecting to 10.18.11.242, TCP port 5001

TCP window size: 25.8 KByte (default)

------------------------------------------------------------

[5] local 10.18.9.250 port 48166 connected with 10.18.11.242 port 5001

[ ID] IntervalTransferBandwidth

[5]0.0-10.0 sec69.5 MBytes58.2 Mbits/sec

UDP

PC

michael.wang@announce:/mnt/fileroot/michael.wang/iperf-2.0.5$ iperf_pc -s -u -i 1

------------------------------------------------------------

Server listening on UDP port 5001

Receiving 1470 byte datagrams

UDP buffer size:112 KByte (default)

------------------------------------------------------------

[3] local 10.18.11.242 port 5001 connected with 10.18.9.250 port 33654

[ ID] IntervalTransferBandwidthJitterLost/Total Datagrams

[3]0.0- 1.0 sec1.18 MBytes9.94 Mbits/sec0.240 ms0/845 (0%)

[3]1.0- 2.0 sec1.19 MBytes10.0 Mbits/sec0.424 ms0/851 (0%)

[3]2.0- 3.0 sec1.19 MBytes10.0 Mbits/sec0.051 ms0/850 (0%)

[3]3.0- 4.0 sec1.20 MBytes10.1 Mbits/sec0.118 ms0/855 (0%)

[3]4.0- 5.0 sec1.19 MBytes9.95 Mbits/sec0.041 ms0/846 (0%)

[3]5.0- 6.0 sec1.19 MBytes10.0 Mbits/sec0.190 ms0/850 (0%)

[3]6.0- 7.0 sec1.19 MBytes10.0 Mbits/sec0.066 ms0/850 (0%)

[3]7.0- 8.0 sec1.19 MBytes10.0 Mbits/sec0.060 ms0/851 (0%)

[3]8.0- 9.0 sec1.19 MBytes10.0 Mbits/sec0.047 ms0/850 (0%)

[3]9.0-10.0 sec1.19 MBytes10.0 Mbits/sec0.061 ms0/850 (0%)

[3]0.0-10.0 sec11.9 MBytes9.99 Mbits/sec0.057 ms0/ 8499 (0%)

[3]0.0-10.0 sec1 datagrams received out-of-order

ARC

[root@AmlogicLinux /]$ ./iperf_arc -c 10.18.11.242-u -b 10m

------------------------------------------------------------

Client connecting to 10.18.11.242, UDP port 5001

Sending 1470 byte datagrams

UDP buffer size:103 KByte (default)

------------------------------------------------------------

[5] local 10.18.9.250 port 33654 connected with 10.18.11.242 port 5001

[ ID] IntervalTransferBandwidth

[5]0.0-10.0 sec11.9 MBytes9.99 Mbits/sec

[5] Sent 8500 datagrams

[5] Server Report:

[5]0.0-10.0 sec11.9 MBytes9.99 Mbits/sec0.057 ms0/ 8499 (0%)

[5]0.0-10.0 sec1 datagrams received out-of-order

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
移植问题一览 1. 32 bit 转64 bit ,运算,强制转换问题 陈红展 2 .大小端转换 3.调试语句尽量保持接口一致,可以分ROM,DEBUG 4.设备驱动模型保持不变 5 . 为支持VFS架构,架构转换:加入evalpath _h,mountme_h,unmountme_h 在volum,innode适当加入一些字段 root_ino ; i_mode, parent_no stream_name, stream_name_len由ctx移到innode内,由ntfs2_eval_path解析出,ctx-> 6 UNICODE 与本地码转换,与ntfs,fat一致,更简略 7 枚举类型的字段宽度不定 如,ATTR_TYPES 8 卷hash加入 9 未命名联合体的内存分配影响:FILE_NAME_ATTR的reparse_point_tag影响以后的文件名长度,文件名字段位置错位 10 64位,32位可切换支持 ,:#include "types.h" 放在所嵌文件最前部 11 windows 和linux NTFS 属性不同 windows linux SI, FN的文件属性0x0020归档 要 无 FN 命名空间 3 0 12 NTFS 删除目录项时不项FAT保留删除目录项空间,而是后续目录项搬移覆盖了删除目录项 ,所以删除目录时,其下文件应该从尾部开始删除 13 大目录 索引块运行列表 offset 负值问题 14 大目录 短文件名搜索问题 15 copy 文件冲MFT 问题 (avfs_bdbuf_get使用) 16 写速度优化 a. $BITMAP/$DATA 属性记录 $MFT 的$DATA属性 $BITMAP属性记录 使用bdbuffer操作,减少与介质直接访问次数 ;用户文件 数据属性直接读写 b所有数据在物理设备上4k对齐访问 c 4k之后尽可能一次多扔数据给设备 ,需设定上限(保护数据溢出) d 数据属性(对文件) ,索引块属性(对目录) 一次打开,,在文件关闭时close ,减少每次读写时重复打开解析属性耗费的时间(效果不大)

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值