1 |
On Friday, 15 January 2021 08:42:16 GMT bobwxc wrote: |
2 |
> 在 2021/1/15 下午4:27, Raffaele BELARDI 写道: |
3 |
> >> -----Original Message----- |
4 |
> >> From: bobwxc <bobwxc@××.com> |
5 |
> >> Sent: Friday, January 15, 2021 08:57 |
6 |
> >> To: gentoo-user@l.g.o |
7 |
> >> Subject: Re: [gentoo-user] network transfer speed |
8 |
> >> |
9 |
> >> 在 2021/1/15 下午2:56, thelma@×××××××××××.com 写道: |
10 |
> >>> On both of my systems the network card speed is showing 1000 |
11 |
> >>> cat /sys/class/net/enp4s0/speed 1000 |
12 |
> >>> |
13 |
> >>> but when I do rsync larage file I only see about: 20 to 22MB/s On my |
14 |
> >>> home network I get about 110MB/s between PC's |
15 |
> >>> |
16 |
> >>> Both PC's have SSD and the swith is Gigabit (I think). |
17 |
> >>> How to find a the bottleneck? |
18 |
> >> |
19 |
> >> 1000Mbps network card's maximum theoretical speed is about 125MiB/s. |
20 |
> >> It only works in short distances. |
21 |
> > |
22 |
> > Correct but that's the line speed that you'll never reach, when you take |
23 |
> > into account Ethernet frame overhead, IP (and possibly TCP) header |
24 |
> > overhead and application ( rsync, FTP, SMB, NFS) overhead you get lower |
25 |
> > figures. In my experience 900Mbps (110MiBps) on a 1000Mbps line is more |
26 |
> > realistic for 'normal' transfers. |
27 |
> Yes, you are right. So it is just *theoretical* speed :-) |
28 |
> |
29 |
> I don't know where does the file he sync from. |
30 |
> If you sync a file from a server in other city, for a 20 to 22MB/s speed |
31 |
> is very normal. But if in home, that is not good. |
32 |
> |
33 |
> And for ftp and rsync. |
34 |
> ftp is better for transferring a single large file once. |
35 |
> rsync is better for a long-term, incremental synchronization. The |
36 |
> file verification of rsync may take a lot of time for first sync. |
37 |
|
38 |
There is a theoretical network speed as already mentioned. There is a |
39 |
protocol speed, which may limit throughput if it has e.g. heavy encryption/ |
40 |
compression and the CPU is anaemic. Finally, there is a MoBo bus (SCSI/SATA/ |
41 |
USB) and the media storage limit. If using USB 1.1 or 2.0 and/or the disks |
42 |
are slow or experience write amplification, you'll find this will constrain |
43 |
the final transfer speed significantly. |