> On 17 Apr 2017, at 15:44, Josef Bacik <josef@xxxxxxxxxxxxxx> wrote: > > NBD doesn't care about limiting the segment size, let the user push the > largest bio's they want. This allows us to control the request size > solely through max_sectors_kb. I'm a bit lost around the various knobs in the kernel for maximum block sizes, but note that the NBD protocol is (with an extension, soon to be made mainstream by the looks of it) capable of negotiating block size minima, maxima and preferred sizes - see here: https://github.com/NetworkBlockDevice/nbd/blob/extension-info/doc/proto.md#block-size-constraints These are server block sizes (obviously) which would normally be passed from userland client to kernel client via an ioctl. I suspect such ioctls may not be implemented at the moment, and kernel support for them would be much appreciated. -- Alex Bligh