X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=align%2Fvirt-alignment-scan.pod;h=5eb9312d368602b5ebfd071c33ee9f626a2a2d8f;hb=be1419a442d9936e737fb2ca6f0fdba36a048964;hp=3b6828b7fdcd3cd01f4aac15f90e679c701591e0;hpb=2910413850c7d9e8df753afad179e415f0638d6d;p=libguestfs.git diff --git a/align/virt-alignment-scan.pod b/align/virt-alignment-scan.pod index 3b6828b..5eb9312 100755 --- 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. -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 @@ -240,6 +242,19 @@ For a typical hard drive with 512 byte sectors: $ 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 @@ -258,8 +273,8 @@ is 64K. For detailed information about what these numbers mean, see L -[Thanks to Mike Snitzer for providing NetApp data and additional -information.] +[Thanks to Matt Booth for providing 4K drive data. Thanks to Mike +Snitzer for providing NetApp data and additional information.] =head2 1 MB PARTITION ALIGNMENT @@ -363,4 +378,4 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.