Re: [PATCH v2 4/4] nbd: Enable multi-conn using round-robin

2025-05-22 Thread Eric Blake
On Thu, May 22, 2025 at 08:37:58PM +0300, Andrey Drobyshev wrote: > On 4/28/25 9:46 PM, Eric Blake wrote: > > From: "Richard W.M. Jones" > > > > Enable NBD multi-conn by spreading operations across multiple > > connections. > > > > (XXX) This uses a naive round-robin approach which could be impr

Re: [PATCH v2 4/4] nbd: Enable multi-conn using round-robin

2025-05-22 Thread Andrey Drobyshev
On 4/28/25 9:46 PM, Eric Blake wrote: > From: "Richard W.M. Jones" > > Enable NBD multi-conn by spreading operations across multiple > connections. > > (XXX) This uses a naive round-robin approach which could be improved. > For example we could look at how many requests are in flight and > assig

Re: [PATCH v2 4/4] nbd: Enable multi-conn using round-robin

2025-04-28 Thread Eric Blake
On Mon, Apr 28, 2025 at 08:27:54PM +0100, Richard W.M. Jones wrote: > On Mon, Apr 28, 2025 at 01:46:47PM -0500, Eric Blake wrote: > [...] > > This all looks similar to when I posted it before. However I noted a > couple of problems ... > > > (XXX) The strategy here is very naive. Firstly if you

Re: [PATCH v2 4/4] nbd: Enable multi-conn using round-robin

2025-04-28 Thread Richard W.M. Jones
On Mon, Apr 28, 2025 at 01:46:47PM -0500, Eric Blake wrote: [...] This all looks similar to when I posted it before. However I noted a couple of problems ... > (XXX) The strategy here is very naive. Firstly if you were going to > open them, you'd probably want to open them in parallel. Second

[PATCH v2 4/4] nbd: Enable multi-conn using round-robin

2025-04-28 Thread Eric Blake
From: "Richard W.M. Jones" Enable NBD multi-conn by spreading operations across multiple connections. (XXX) This uses a naive round-robin approach which could be improved. For example we could look at how many requests are in flight and assign operations to the connections with fewest. Or we co