coroutine: trim down nesting level in perf_nesting test
20000 nested coroutines require 20 GB of virtual address space. Only nest 1000 of them so that the test (only enabled with "-m perf" on the command line) runs on 32-bit machines too. Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
402397843e
commit
027003152f
@ -183,7 +183,7 @@ static void perf_nesting(void)
|
|||||||
double duration;
|
double duration;
|
||||||
|
|
||||||
maxcycles = 100000000;
|
maxcycles = 100000000;
|
||||||
maxnesting = 20000;
|
maxnesting = 1000;
|
||||||
Coroutine *root;
|
Coroutine *root;
|
||||||
NestData nd = {
|
NestData nd = {
|
||||||
.n_enter = 0,
|
.n_enter = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user