我晕,wget抓比scp还要慢!

今天碰到个怪现象
某台服务器
上面跑httpd2.0.5x
从另外一台机器上用wget抓起web目录下的东东
居然比用scp直接拷贝之还要慢!!
不理解
一般来讲scp是需要加密解密的
理论上来讲应该比wget直接从http抓应该慢得多才对呀
但事实就是这样
scp速度能达到十几M
但是wget抓,最好也就1、2M咯
实在是不懂

One Response to “我晕,wget抓比scp还要慢!”

  1. 最新消息
    这个问题的原因大概找到了
    因为当时我测试是先wget一个大文件
    发现很慢后
    再scp同一个文件的
    这时这个文件正好在内存里
    所以就“非常快速”地scp过来了
    其实如果scp一个在同一分区但不在内存里的文件的话
    会发现是一样的慢的
    而这个分区的文件读起来怎么这么慢呢
    原因在于这个分区设备的io到了瓶颈了

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word