Gsiftp测试

本文介绍了Gsiftp传输测试环境的配置,包括客户端证书的处理和globus-url-copy命令参数的选择。针对TCP缓冲区大小()选项,建议根据带宽和往返时间(RTT)计算适当值。对于并行性()选项,通常推荐使用4个流,但实际应用中可根据网络状况调整,通常在4到8个流之间。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

测试环境:






测试过程准备
1)把ce节点作为接收端,se作为客户端
2)由于se没有个人证书,故做了如下操作:

[zhxue@se .globus]$ openssl pkcs12 -in 110725Zhenghua.p12  -clcerts -nokeys -out $HOME/.globuusercert.pem
Enter Import Password:
MAC verified OK
(reverse-i-search)`': 
[zhxue@se .globus]$ openssl pkcs12 -in 110725Zhenghua.p12 -nocerts -out $HOME/.globus/userkeyem
Enter Import Password:
MAC verified OK
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
[zhxue@se .globus]$ chmod go-rw user*      //非常重要



globus-usrl-copy命令参数选择:

How do I choose a value for the TCP buffer size (-tcp-bs) option?

The value you should pick for the TCP buffer size (-tcp-bs) depends on how fast you want to go (your bandwidth) and how far you are moving the data (as measured by the Round Trip Time (RTT) or the time it takes a packet to get to the destination and back).

To calculate the value for -tcp-bs, use the following formula (this assumes that Mega means 1000^2 rather than 1024^2, which is typical for bandwidth):

-tcp-bs = bandwidth in Megabits per second (Mbs) * RTT in milliseconds (ms) * 1000 / 8

As an example, if you are using fast ethernet (100 Mbs) and the RTT was 50 ms it would be:

-tcp-bs = 100 * 50 * 1000 / 8 = 625,000 bytes.

So, how do you come up with values for bandwidth and RTT? To determine RTT, use either ping or traceroute. They both list RTT values.


How do I choose a value for the parallelism (-p) option?

For most instances, using 4 streams is a very good rule of thumb. Unfortunately, there is not a good formula for picking an exact answer. The shape of the graph shown here is very characteristic.



You get a strong increase in bandwidth, then a sharp knee, after which additional streams have very little impact. Where this knee is depends on many things, but it is generally between 2 and 10 streams. Higher bandwidth, longer round trip times, and more congestion in the network (which you usually can only guess at based on how applications are behaving) will move the knee higher (more streams needed).

In practice, between 4 and 8 streams are usually sufficient. If things look really bad, try 16 and see how much difference that makes over 8. However, anything above 16, other than for academic interest, is basically wasting resources.




测试结果

[zhxue@se root]$ globus-url-copy -vb  file:///home/zhxue/1g gsiftp://osg.cnic.cn/tmp/
Source: file:///home/zhxue/
Dest:   gsiftp://osg.cnic.cn/tmp/
  1g
   1007681536 bytes        86.27 MB/sec avg        40.91 MB/sec inst


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值