[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xen-blkfront: correct maximum segment accounting



On Mon, Jan 23, 2017 at 08:11:37AM -0700, Jan Beulich wrote:
> Making use of "max_indirect_segments=" has issues:
> - blkfront_setup_indirect() may end up with zero psegs when PAGE_SIZE
>   is sufficiently much larger than XEN_PAGE_SIZE
> - the variable driven by the command line option
>   (xen_blkif_max_segments) has a somewhat different purpose, and hence
>   should namely never end up being zero
> - as long as the specified value is lower than the legacy default,
>   we better don't use indirect segments at all (or we'd in fact lower
>   throughput)
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks for catching this, all this PAGE_SIZE != XEN_PAGE_SIZE is quite prone to
errors IMHO.

Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.