performance - How to measure data transfer rate between two nodes on Linux Server ? Must ignore the effect of disk -
at first , use scp copy file node9 node10 .but method not satisfied purposes.cause scp affected disk.result in unexpected result.so , should ? ethernet 10gbit/s.
two things... firstly, scp
encrypted , takes time therefore encrypt, consider using nc
or netcat
installed on linux distros. secondly, can use /dev/zero
generate data fast. so...
generate data fast
let's generate 10 gbytes of data /dev/zero
, discard /dev/null
check how fast can generate data:
dd if=/dev/zero bs=1024k count=10000 > /dev/null 10000+0 records in 10000+0 records out 10485760000 bytes transferred in 0.573830 secs (18273282446 bytes/sec)
none shabby @ 18 gbytes/sec.
transfer across network
now, on node10, prepare receive data listening on port 8000, , discarding received data:
nc -l 8000 > /dev/null
and on, on node9, send data , time it:
dd if=/dev/zero bs=1024k count=10000 | nc node10 8000
Comments
Post a Comment