Re: [PATCH 2/3] vdpa_sim_blk: limit the number of request handled per batch

2022-06-28 Thread Stefano Garzarella
On Tue, Jun 28, 2022 at 6:01 AM Jason Wang wrote: > > On Thu, Jun 23, 2022 at 4:58 PM Stefano Garzarella > wrote: > > > > On Thu, Jun 23, 2022 at 11:50:22AM +0800, Jason Wang wrote: > > >On Wed, Jun 22, 2022 at 12:09 AM Stefano Garzarella > > >wrote: > > >> > > >> Limit the number of requests

Re: [PATCH 2/3] vdpa_sim_blk: limit the number of request handled per batch

2022-06-27 Thread Jason Wang
On Thu, Jun 23, 2022 at 4:58 PM Stefano Garzarella wrote: > > On Thu, Jun 23, 2022 at 11:50:22AM +0800, Jason Wang wrote: > >On Wed, Jun 22, 2022 at 12:09 AM Stefano Garzarella > >wrote: > >> > >> Limit the number of requests (4 per queue as for vdpa_sim_net) handled > >> in a batch to prevent

Re: [PATCH 2/3] vdpa_sim_blk: limit the number of request handled per batch

2022-06-23 Thread Stefano Garzarella
On Thu, Jun 23, 2022 at 11:50:22AM +0800, Jason Wang wrote: On Wed, Jun 22, 2022 at 12:09 AM Stefano Garzarella wrote: Limit the number of requests (4 per queue as for vdpa_sim_net) handled in a batch to prevent the worker from using the CPU for too long. Suggested-by: Eugenio Pérez

Re: [PATCH 2/3] vdpa_sim_blk: limit the number of request handled per batch

2022-06-22 Thread Jason Wang
On Wed, Jun 22, 2022 at 12:09 AM Stefano Garzarella wrote: > > Limit the number of requests (4 per queue as for vdpa_sim_net) handled > in a batch to prevent the worker from using the CPU for too long. > > Suggested-by: Eugenio Pérez > Signed-off-by: Stefano Garzarella > --- >

[PATCH 2/3] vdpa_sim_blk: limit the number of request handled per batch

2022-06-21 Thread Stefano Garzarella
Limit the number of requests (4 per queue as for vdpa_sim_net) handled in a batch to prevent the worker from using the CPU for too long. Suggested-by: Eugenio Pérez Signed-off-by: Stefano Garzarella --- drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 15 ++- 1 file changed, 14