ssh/scp : effect of compression

*** on fast network palasi to my pc(located in philips lab)

without compression
1
real    0m23.403s
user    0m8.513s
sys    0m3.612s

with compression and using blowfish
-C -c blowfish
it give worsen performance

*** hope we can expect something on dialup network : hackyourworld.org to my pc ( connected through mobile connection dial-up)
with compression && blowfish : copying around 1 mb data ( having many small small files )
real    1m34.509s
user    0m0.048s
sys    0m0.036s

without compression && blowfish
real    2m59.136s
user    0m0.048s
sys    0m0.044s

–> Compression won 🙂

*** compression at server then copying then decompress
copying the same data which is in compressed file ( facing stalls )
real    2m4.427s
user    0m0.052s
sys    0m0.008s
took much time than above.

*** under wireless connection of IITD_WIFI1
!compression && !blowfish
real    0m35.653s
user    0m0.040s
sys        0m0.052s

!compression && blowfish
real    0m35.613s
user    0m0.052s
sys        0m0.040s

compression && blowfish
real    0m30.188s
user    0m0.036s
sys        0m0.048s

already compressed
compression && !blowfish
real    0m5.796s
user    0m0.040s
sys        0m0.012s

compression && blowfish
real    0m5.796s
user    0m0.040s
sys        0m0.012s
blowfish && compression
real    0m8.536s
user    0m0.056s
sys        0m0.012s

Conclusion : On Slow connection, but always alive ( doesn’t get stalled in between ), using compression is better. BTW You don’t loose due to compression, so
alias scp=’scp -C’ ( it’s either better or same 🙂 ).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s