I seem to have a speed issue when copying to and from my desktop machine and my gateway.
Both machines have 10/100Mb ethernet network cards. Now, when I scp a file from my gateway to my desktop, I rougly get around 2+ MB/s, which seems reasonable. When copying vice versa (from desktop to gateway) I can only get speeds up to 50KB/s.
I just rescently changed the NIC in my gateway machine from a 10MB card to a 10/100MB one. I seemed to be getting better speeds with the 10MB card for some reason.
Has anyone else delt with this issue, or know of a way I can get around it, and is there a command that will tell me what speed the operating system detects the network cards at.
Below I have posted some stats.
Pinging the gateway from my desktop
Pinging the desktop from my gateway
[kristijan@desktop kristijan]$ ping gateway
PING gateway (192.168.0.1) 56(84) bytes of data.
64 bytes from gateway (192.168.0.1): icmp_seq=0 ttl=64 time=0.236 ms
64 bytes from gateway (192.168.0.1): icmp_seq=1 ttl=64 time=0.148 ms
64 bytes from gateway (192.168.0.1): icmp_seq=2 ttl=64 time=0.133 ms
64 bytes from gateway (192.168.0.1): icmp_seq=3 ttl=64 time=0.131 ms
--- gateway ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.131/0.162/0.236/0.043 ms, pipe 2
scp of a file from the gateway to the desktop
root@gateway:~# ping desktop
PING desktop (192.168.0.2): 56 octets data
64 octets from desktop (192.168.0.2): icmp_seq=0 ttl=64 time=0.3 ms
64 octets from desktop (192.168.0.2): icmp_seq=1 ttl=64 time=0.1 ms
64 octets from desktop (192.168.0.2): icmp_seq=2 ttl=64 time=0.1 ms
64 octets from desktop (192.168.0.2): icmp_seq=3 ttl=64 time=0.1 ms
--- desktop ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.3 ms
scp of the same file from the desktop to the gateway
linux-2.6.5.tar.bz2 100% 33MB 2.6MB/s 00:10
linux-2.6.5.tar.bz2 4% 1480KB 70.4KB/s 07:40 ETA
Killed by signal 2.