LINUX.ORG.RU

История изменений

Исправление NK, (текущая версия) :

никого не удивлю, но просто, знайте, если srm вздумаете брать

# hdparm -Tt /dev/sdb
 Timing cached reads:   8886 MB in  1.99 seconds = 4454.79 MB/sec
 Timing buffered disk reads: 678 MB in  3.01 seconds = 225.60 MB/sec

# dd if=/dev/zero of=/tmp/hdd1ext4/tempfile bs=1M count=1024 oflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 11,2419 s, 95,5 MB/s
# dd if=/tmp/hdd1ext4/tempfile of=/dev/null bs=1M count=1024 iflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 8,78308 s, 122 MB/s

# hdparm -Tt /dev/sdb
 Timing cached reads:   9514 MB in  1.99 seconds = 4770.49 MB/sec
 Timing buffered disk reads: 372 MB in  3.00 seconds = 123.96 MB/sec
# umount /dev/sdb1
# mkfs.xfs -f /dev/sdb1
# mount /dev/sdb1 /tmp/hdd1xfs/
# hdparm -Tt /dev/sdb
 Timing cached reads:   9432 MB in  1.99 seconds = 4729.81 MB/sec
 Timing buffered disk reads: 716 MB in  3.00 seconds = 238.49 MB/sec

но чуда не случилось

# dd if=/dev/zero of=/tmp/hdd1xfs/tempfile bs=1M count=1024 oflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 18,1102 s, 59,3 MB/s
# dd if=/tmp/hdd1xfs/tempfile of=/dev/null bs=1M count=1024 iflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 8,63645 s, 124 MB/s
# hdparm -Tt /dev/sdb
 Timing cached reads:   9476 MB in  1.99 seconds = 4751.85 MB/sec
 Timing buffered disk reads: 322 MB in  3.01 seconds = 107.04 MB/sec
# umount /dev/sdb1
# mkfs.ext2 /dev/sdb1 
# hdparm -Tt /dev/sdb
 Timing cached reads:   9562 MB in  1.99 seconds = 4795.08 MB/sec
 Timing buffered disk reads: 640 MB in  3.00 seconds = 213.27 MB/sec

скорость, да, параметр -t необъективный, но показатели чисто для сравнения, и если вопрос: а нет ли там badblock’ов? - То, вот:

# badblocks -vn /dev/sdb1
Checking for bad blocks in non-destructive read-write mode
From block 0 to 2097151
Testing with random pattern: Pass completed, 0 bad blocks found. (0/0/0 errors)

и кстати, даже после этого

# hdparm -Tt /dev/sdb
 Timing cached reads:   9632 MB in  1.99 seconds = 4830.83 MB/sec
 Timing buffered disk reads: 556 MB in  3.01 seconds = 184.93 MB/sec

# badblocks -vn /dev/sdb1
Checking for bad blocks in non-destructive read-write mode
From block 0 to 2097151
Testing with random pattern: Pass completed, 0 bad blocks found. (0/0/0 errors)

# hdparm -Tt /dev/sdb

/dev/sdb:
 Timing cached reads:   8558 MB in  1.99 seconds = 4290.44 MB/sec
 Timing buffered disk reads: 278 MB in  3.01 seconds =  92.37 MB/sec

Исходная версия NK, :

никого не удивлю, но просто, знайте, если srm вздумаете брать

# hdparm -Tt /dev/sdb
 Timing cached reads:   8886 MB in  1.99 seconds = 4454.79 MB/sec
 Timing buffered disk reads: 678 MB in  3.01 seconds = 225.60 MB/sec

# dd if=/dev/zero of=/tmp/hdd1ext4/tempfile bs=1M count=1024 oflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 11,2419 s, 95,5 MB/s
# dd if=/tmp/hdd1ext4/tempfile of=/dev/null bs=1M count=1024 iflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 8,78308 s, 122 MB/s

# hdparm -Tt /dev/sdb
 Timing cached reads:   9514 MB in  1.99 seconds = 4770.49 MB/sec
 Timing buffered disk reads: 372 MB in  3.00 seconds = 123.96 MB/sec
# umount /dev/sdb1
# mkfs.xfs -f /dev/sdb1
# mount /dev/sdb1 /tmp/hdd1xfs/
# hdparm -Tt /dev/sdb
 Timing cached reads:   9432 MB in  1.99 seconds = 4729.81 MB/sec
 Timing buffered disk reads: 716 MB in  3.00 seconds = 238.49 MB/sec

но чуда не случилось

# dd if=/dev/zero of=/tmp/hdd1xfs/tempfile bs=1M count=1024 oflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 18,1102 s, 59,3 MB/s
# dd if=/tmp/hdd1xfs/tempfile of=/dev/null bs=1M count=1024 iflag=direct
1073741824 байт (1,1 GB, 1,0 GiB) скопирован, 8,63645 s, 124 MB/s
# hdparm -Tt /dev/sdb
 Timing cached reads:   9476 MB in  1.99 seconds = 4751.85 MB/sec
 Timing buffered disk reads: 322 MB in  3.01 seconds = 107.04 MB/sec
# umount /dev/sdb1
# mkfs.ext2 /dev/sdb1 
# hdparm -Tt /dev/sdb
 Timing cached reads:   9562 MB in  1.99 seconds = 4795.08 MB/sec
 Timing buffered disk reads: 640 MB in  3.00 seconds = 213.27 MB/sec

скорость, да, параметр -t необъективный, но показатели чисто для сравнения, и если вопрос: а нет ли там badblock’ов? - То, вот:

# badblocks -vn /dev/sdb1
Checking for bad blocks in non-destructive read-write mode
From block 0 to 2097151
Testing with random pattern: Pass completed, 0 bad blocks found. (0/0/0 errors)