由于磁盘写入问题导致复制速度慢

由于磁盘写入问题导致复制速度慢

我正在尝试将文件从 /backup/ 文件夹复制到 /backup/abc/,这花费了很多时间。在其他服务器上执行的复制操作非常快。

# df -HP
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdc3       482G  351G  107G  77% /
tmpfs           4.2G   74k  4.2G   1% /dev/shm
/dev/sdc1       204M   36M  157M  19% /boot
/dev/sdb3       2.0T  590G  1.3T  32% /data
/dev/sda4       2.0T  705G  1.2T  38% /backup

与我拥有的其他服务器相比,磁盘的写入速度非常慢。这背后的原因是什么?

# hdparm -t /dev/sdc3
/dev/sdc3:
 Timing buffered disk reads:   2 MB in  3.00 seconds = 682.67 kB/sec

# hdparm -t /dev/sdc1
/dev/sdc1:
 Timing buffered disk reads:   2 MB in  4.10 seconds = 499.51 kB/sec

# hdparm -t /dev/sdb3
/dev/sdb3:
 Timing buffered disk reads: read(2097152) returned 4096 bytes

# hdparm -t /dev/sda4
/dev/sda4:
 Timing buffered disk reads:   4 MB in  6.10 seconds = 671.48 kB/sec

更新: 更多信息

# fdisk -l

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x3b011cfb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda4               1      243201  1953512001   83  Linux
Partition 4 does not start on physical sector boundary.

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000272a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sdc2              26        1301    10240000   82  Linux swap / Solaris
/dev/sdc3            1301       60802   477940736   83  Linux

相关内容