From patchwork Tue Feb 19 10:59:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 221665 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EC1572C02AA for ; Tue, 19 Feb 2013 21:59:45 +1100 (EST) Received: from localhost ([::1]:41620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7kvG-0007Pi-OD for incoming@patchwork.ozlabs.org; Tue, 19 Feb 2013 05:59:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7kv0-0007DU-Sy for qemu-devel@nongnu.org; Tue, 19 Feb 2013 05:59:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7kuv-0005QV-6i for qemu-devel@nongnu.org; Tue, 19 Feb 2013 05:59:26 -0500 Received: from mail-ea0-f169.google.com ([209.85.215.169]:51192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7kuv-0005QK-0z; Tue, 19 Feb 2013 05:59:21 -0500 Received: by mail-ea0-f169.google.com with SMTP id d13so2901094eaa.0 for ; Tue, 19 Feb 2013 02:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer; bh=riPTsfbymbwcEXirnsLHTCIx9KTD0CpEcTNcJuwxEO4=; b=M4LFXVTC/vbR/jaDPRfbzUCkTBXc7flHcYaV5SDGzOV9mt+z/AUVkoIj0cX5apzl1C a3tI2Ztrbjwc5absqN/5HApE0wf7SpMaXUTAI3siGUyF2lTQNRA9QfWDLifgfZC0L9S8 TEshdbWBU+C0glFKjjYp/gRNjRCZMFFH+9RovtP27TUPiHTrdxodCTUyFE1xebQ7B1v8 2rmAOmB3E5v10cR/31A23PyeeEL+FzZ9CDclgUqKxxf9OQucATdLOIrnaRMVu17dHYQK KKXD/xEmsW8Njx05+djQtwcInVrcf6uOQU+jXYZRpR/dwILtWZvgvDTY0HgJbLQZx654 jMSw== X-Received: by 10.14.5.6 with SMTP id 6mr55664635eek.42.1361271560105; Tue, 19 Feb 2013 02:59:20 -0800 (PST) Received: from yakj.lan (93-34-179-137.ip50.fastwebnet.it. [93.34.179.137]) by mx.google.com with ESMTPS id q5sm103299646eep.11.2013.02.19.02.59.18 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 19 Feb 2013 02:59:19 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 19 Feb 2013 11:59:10 +0100 Message-Id: <1361271550-18519-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.1.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.169 Cc: kwolf@redhat.com, mjt@tls.msk.ru, qemu-stable@nongnu.org, stefanha@redhat.com Subject: [Qemu-devel] [PATCH 2/2] coroutine: trim down nesting level in perf_nesting test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 Reviewed-by: Stefan Hajnoczi --- tests/test-coroutine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-coroutine.c b/tests/test-coroutine.c index 4c6cc81..39be046 100644 --- a/tests/test-coroutine.c +++ b/tests/test-coroutine.c @@ -183,7 +183,7 @@ static void perf_nesting(void) double duration; maxcycles = 100000000; - maxnesting = 20000; + maxnesting = 1000; Coroutine *root; NestData nd = { .n_enter = 0,