[sheepdog] [PATCH] vditest: add '-C' option to limit the maximum number of requests

Liu Yuan namei.unix at gmail.com
Sat Nov 3 03:32:12 CET 2012


On 11/02/2012 07:35 PM, MORITA Kazutaka wrote:
> Currently, '-a' option generates too many I/O requests and causes
> ENFILE error in sheep.  This adds '-C' option to limit the maximum
> number of concurrent I/O requests.
> 

What is ENFILE eorror?

> This patch also removes all synchronous I/O operations to simplify
> codes.
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  script/vditest |   78 ++++++++++++++++++++++++++++++--------------------------
>  1 files changed, 42 insertions(+), 36 deletions(-)
> 
> diff --git a/script/vditest b/script/vditest
> index 8f6fbdd..ffaf522 100755
> --- a/script/vditest
> +++ b/script/vditest
> @@ -18,7 +18,7 @@ use IPC::Open2;
>  my $program = "vditest";
>  my ($vdiname, $vdisize);
>  
> -my $use_aio = 0;
> +my $concurrency = 1;

maybe default to a bigger value, like 128 is better?

Thanks,
Yuan



More information about the sheepdog mailing list