git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9c4b70
)
virt-alignment-scan: Add additional data for 4K sector drives
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 27 Oct 2011 12:30:22 +0000
(13:30 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 27 Oct 2011 12:30:22 +0000
(13:30 +0100)
(thanks Matt Booth).
align/virt-alignment-scan.pod
patch
|
blob
|
history
diff --git
a/align/virt-alignment-scan.pod
b/align/virt-alignment-scan.pod
index
3b6828b
..
601c5e8
100755
(executable)
--- a/
align/virt-alignment-scan.pod
+++ b/
align/virt-alignment-scan.pod
@@
-229,8
+229,10
@@
data combined, and the two blocks written back (4x I/O).
New versions of the Linux kernel expose the physical and logical block
size, and minimum and recommended I/O size.
New versions of the Linux kernel expose the physical and logical block
size, and minimum and recommended I/O size.
-For a typical hard drive with 512 byte sectors:
+For a typical
consumer
hard drive with 512 byte sectors:
+ $ cat /sys/block/sda/queue/hw_sector_size
+ 512
$ cat /sys/block/sda/queue/physical_block_size
512
$ cat /sys/block/sda/queue/logical_block_size
$ cat /sys/block/sda/queue/physical_block_size
512
$ cat /sys/block/sda/queue/logical_block_size
@@
-240,6
+242,19
@@
For a typical hard drive with 512 byte sectors:
$ cat /sys/block/sda/queue/optimal_io_size
0
$ cat /sys/block/sda/queue/optimal_io_size
0
+For a new consumer hard drive with 4Kbyte sectors:
+
+ $ cat /sys/block/sda/queue/hw_sector_size
+ 4096
+ $ cat /sys/block/sda/queue/physical_block_size
+ 4096
+ $ cat /sys/block/sda/queue/logical_block_size
+ 4096
+ $ cat /sys/block/sda/queue/minimum_io_size
+ 4096
+ $ cat /sys/block/sda/queue/optimal_io_size
+ 0
+
For a NetApp LUN:
$ cat /sys/block/sdc/queue/logical_block_size
For a NetApp LUN:
$ cat /sys/block/sdc/queue/logical_block_size
@@
-258,8
+273,8
@@
is 64K.
For detailed information about what these numbers mean, see
L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>
For detailed information about what these numbers mean, see
L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>
-[Thanks to M
ike Snitzer for providing NetApp data and additional
-information.]
+[Thanks to M
att Booth for providing 4K drive data. Thanks to Mike
+
Snitzer for providing NetApp data and additional
information.]
=head2 1 MB PARTITION ALIGNMENT
=head2 1 MB PARTITION ALIGNMENT