All of lore.kernel.org
 help / color / mirror / Atom feed
* optimal io size / custom alignment
@ 2015-06-13 14:52 Tom Yan
  2015-06-15 13:31 ` Karel Zak
  0 siblings, 1 reply; 22+ messages in thread
From: Tom Yan @ 2015-06-13 14:52 UTC (permalink / raw)
  To: util-linux

As I have mentioned in previous mails, I have an sata/usb3 adapter
which could work in uas mode, and when it does, it has a weird optimal
i/o size:

Disk /dev/sdb: 74.5 GiB, 80026361856 bytes, 156301488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes

http://www.linuxquestions.org/questions/linux-newbie-8/how-to-foramt-2tb-external-hard-drive-4175529792/

In the above link, there shows another similar case of an external
drive with 4k physical sector.

I am not sure if there's anything wrong with the device(s) or the
kernel, but anyway I doubt if fdisk should determine alignment with
this size. As you can calculate, it may not necessarily be a multiple
of the size of physical sectors, or that of common erase block of SSDs
(which is not reported anywhere AFAIK).

Perhaps this I/O size does matter on alignment for certain cases, but
shouldn't physical sector or erase block be at least of higher
priority when it comes to alignment?

In any case, it would be nice if fdisk can allow customize alignment
(like gdisk does), so that users can at least decide how partitions
should be aligned in weird cases like this. With that, the long-time
deprecated "dos compatibility" might be able to go as well.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-07-12  4:40 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-13 14:52 optimal io size / custom alignment Tom Yan
2015-06-15 13:31 ` Karel Zak
2015-06-16  5:20   ` Tom Yan
2015-06-16  5:37     ` Tom Yan
2015-06-16  9:43     ` Karel Zak
2015-06-16 10:22       ` Tom Yan
2015-06-16 10:22         ` Tom Yan
2015-06-16 17:08     ` Martin K. Petersen
2015-06-16 19:26       ` Tom Yan
2015-06-16 19:26         ` Tom Yan
2015-06-16 21:28         ` Martin K. Petersen
2015-06-17  9:49           ` Tom Yan
2015-06-17  9:49             ` Tom Yan
2015-06-18 21:01             ` Martin K. Petersen
2015-06-18 21:01               ` Martin K. Petersen
2015-06-20 16:01               ` Tom Yan
2015-06-20 16:01                 ` Tom Yan
2015-06-21  0:12                 ` Martin K. Petersen
2015-06-21  0:12                   ` Martin K. Petersen
2015-06-22 14:32                 ` Alan Stern
2015-06-22 14:32                   ` Alan Stern
2015-07-12  4:19   ` optimal io size / custom alignment -- caution on custom aligns Linda Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.