svn - 通过 SVN 下载小文件快,大文件慢

标签 svn networking throughput

我正在使用 SVN 通过站点到站点 VPN 下载文件。当下载java/class文件时,速度为400kb/s,但当下载.jar文件时,速度下降至10kb/s。有什么想法吗?

最佳答案

java 文件比 jar 小得多(这是一个大的二进制文件,充当 zip 存档),平均速度看起来会快得多,因为小文件(几 KB)的下载时间比svn 轮询下载速度。
这给人的印象是高平均速度。

但是对于大文件,svn 有时间多次轮询相同的下载速度,并显示实际速度(在较长的时间内)。

<小时/>

另一个可能影响速度传输的方面是 double-compression issue在 https session 上:

when OpenSSL is built with zlib, it will automatically compress all data sent over an SSL connection. You can see this in the initial handshake "Client Hello" and "Server Hello" where client and server agree on the compression mechanism to be used.

If the data being sent or received is already compressed, OpenSSL will compress it a second time. This can happen when already compressed binaries like .gif or .zip are sent, or when the server uses gzip encoding for a http response. This can have impact on performance and memory usage.

<小时/>

Ben Reser添加in the comments :
(Ben 是 Apache Subversion projecthttpd project 的完全提交者/PMC 成员)

You can actually end up with up to 3 layers of compression.

  • The plaintext file may be compressed (user controlled),
  • the subversion diff format sent over the network can be compressed (controlled via -c for svnserve and SVNCompressionLevel for httpd),
  • and the on disk repository delta format can be compressed (will be configurable in fsfs.conf in 1.9).
    The last bit is known to be a significant drain on compressed file transfer speeds and until 1.9, you can't really do anything about it other than avoiding adding compressed files to SVN.

关于svn - 通过 SVN 下载小文件快,大文件慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21399241/

相关文章:

c - 使用周期计数计算吞吐量

c++ - 如何使用 TCP 窗口缩放来增加 C++ 中 AWS S3 的吞吐量?

ubuntu - SVN 不工作,因为 IPTABLES 改变了

svn - 将 Subversion 与 git 连接起来

svn - 如何在没有主干的情况下在现有 svn repo 中创建主干目录,并将所有文件移动到新主干?

sockets - 'socket'系统调用中的“SOCK_RAW”选项

java - Network Service Discovery android教程报错: Service lost, Phone turns OFF

linux - 将 Subversion 迁移到新服务器,不同版本

networking - 1个保留IP地址: "network address of all 0s"?

hadoop - 如何计算hadoop中flume的吞吐量