Ubuntu 20.04.1 LTS(GNU/Linux 5.5.4-050504-通用 x86_64)
sudo fdisk -l
Disk /dev/sda: 4.56 TiB, 5000981078016 bytes, 9767541168 sectors
Disk model: ST5000LM000-2AN1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sdb: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk model: CT480BX500SSD1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DE67E89B-9575-4882-8044-6A33894B923E
Device Start End Sectors Size Type
/dev/sdb1 2048 1050623 1048576 512M EFI System
/dev/sdb2 1050624 3147775 2097152 1G Linux filesystem
/dev/sdb3 3147776 937699327 934551552 445.6G Linux filesystem
Disk /dev/sdc: 10.94 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: ST12000NM001G-2M
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: CC2F2B70-FE09-4BBF-9803-FFFE8C3C9049
Device Start End Sectors Size Type
/dev/sdc1 2048 23437768703 23437766656 10.9T Linux filesystem
最近买了一块 12TB 的 Seagate Exos HDD,并将我的 5TB 硬盘的内容复制到其中,大约花了 12 个小时,传输速度相当正常。
然而第二天,我从 5TB 到 12TB 的传输速度突然变得非常糟糕,低于 5Mb/s,我不知道该从哪里开始查找
驱动器安装很简单:
/dev/sdc1 /plexmedia ext4 defaults 0 0
/dev/sda /torrent ext4 defaults 0 0
均格式化为 ext4
lsblk -f
:
sda ext4 3d82fdd8-9b7a-4e79-a6fb-9c2fcb2dec21 4.3T 1% /torrent
sdb
├─sdb1 vfat 6C8A-8802 503.2M 2% /boot/efi
├─sdb2 ext4 337a91bb-7a97-44be-b837-74fc530452f2 723.8M 19% /boot
└─sdb3 LVM2_member YJZlfR-mKCw-dVfH-PN4T-xZam-idSX-nbvHOt
└─ubuntu--vg-ubuntu--lv ext4 5c6dea55-f0b1-4693-8456-516a42e80a74 159.1G 14% /
sdc
└─sdc1 ext4 247d5978-83a2-42b3-9f75-0d9c61803826 6T 40% /plexmedia
cp
我也在使用GNU coreutils v 8.32 的补丁
性能差异很大:
1 files ( 5.0 GiB) copied in 1413.9 seconds ( 3.6 MiB/s).
1 files ( 7.2 GiB) copied in 181.2 seconds ( 40.7 MiB/s).
1 files ( 5.7 GiB) copied in 71.2 seconds ( 82.4 MiB/s).
答案1
编辑:实际上并未解决。我可以顺利地复制多个 GB 的大文件,获得稳定的传输速率,大约 130MiB/s,然后性能完全下降,速率低于 5.0MiB/s!
1 files ( 7.8 GiB) copied in 2084.7 seconds ( 3.8 MiB/s).
好像磁盘缓存已满,需要很长时间才能刷新?我不确定,但这真的很烦人!
@Raffa 已解决:这似乎是我的用户错误(通常是!),我没有为 /dev/sda 设置分区。添加了一个 ext4 分区,现在cp
从 /dev/sda1 到 /dev/sdc1 的速度与你根据以下输出所假设的速度一样快hdparm
:
[2021-01-10 19:17:55] sean@muth-dev / λ sudo hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 30588 MB in 1.99 seconds = 15396.57 MB/sec
Timing buffered disk reads: 196 MB in 3.00 seconds = 65.24 MB/sec
[2021-01-10 19:18:34] sean@muth-dev / λ sudo hdparm -Tt /dev/sdc
/dev/sdc:
Timing cached reads: 30404 MB in 1.99 seconds = 15305.23 MB/sec
Timing buffered disk reads: 728 MB in 3.00 seconds = 242.54 MB/sec
最近的文件传输:
1 files ( 4.1 GiB) copied in 2.4 seconds ( 1.7 GiB/s).