From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88AD4C433E0 for ; Fri, 12 Feb 2021 00:01:48 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EB76564D8F for ; Fri, 12 Feb 2021 00:01:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB76564D8F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lALu6-0005Ey-Ss for qemu-devel@archiver.kernel.org; Thu, 11 Feb 2021 19:01:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lALry-0004d3-2f for qemu-devel@nongnu.org; Thu, 11 Feb 2021 18:59:34 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lALrv-0006M4-RI for qemu-devel@nongnu.org; Thu, 11 Feb 2021 18:59:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613087969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VYHesEVSWnpnVuWnw9Rxv/+IiMskU1AFlZOtcozrQOA=; b=PzaioRhv0IzvMPsoZg/4ISKIQbDsE4Sg/Bb4Vp7CO+vGriQipT0lzyLJHhbO0SBUUPk6es yGOvbiZbClpvpZ62z9Kmo3LDvi7XhN7NwqrGiv5wPEp5rPETZzOlYt5geZsb55HOWaem/V 9kc7fk0s4j/9fwv7ICYqveG//YcSpLw= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-571-aeMrE0IWO0ilkckEi1nrzw-1; Thu, 11 Feb 2021 18:59:26 -0500 X-MC-Unique: aeMrE0IWO0ilkckEi1nrzw-1 Received: by mail-wm1-f72.google.com with SMTP id z67so4040788wme.3 for ; Thu, 11 Feb 2021 15:59:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VYHesEVSWnpnVuWnw9Rxv/+IiMskU1AFlZOtcozrQOA=; b=W4qbJ+3+t5dCUqvU/fKcgBX5LkFBDoe2xoM0bsCz+ARBLrNmtkEbsOANYcrET2n+ae CHi4/32POrWTMpAqrljBZ61I5pO8U8LiYJRpRurgrl9ceB4zqkOas+Lxvgzo3CjYj/Q3 FS7cpwr5l0Enf4dICF3/GKpXMOvkJQ4f9yKF9eiwypkEqpmUPwZLo9rjm2iYOQFdR6y2 6DxgQLuY4HmHAzs3NWKO10gtZnbAssVAfOyr7f/nQzVBOhCkKtjHvBnT3x+Ijbdu2sQU P/ZhrOItt39AlTwUCMgEEn0ibXagCXDcTdaIHbanetBcBpUJTac6FHmNO9PNS3RD6xzb 9s5A== X-Gm-Message-State: AOAM531+SAmj/H8tpmRoLcSKOU8rim/PofQH553ypS6hQF5LagrYkHI5 0xwtH9g6y2Mdp9Yq0LVvZllo4eDF2Foa12RFR3cAxho3QCHrVZYzm0lHPFf/5UEPdvIofaaJjok g0xmhImGQzA2HEuI= X-Received: by 2002:adf:ea87:: with SMTP id s7mr267679wrm.217.1613087965103; Thu, 11 Feb 2021 15:59:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3zp+gpcm+mJR3nu7GMxiheKNfT1FTRiOu13eYHIsbdDIPQb40FKH0ZlL+e42DInSDYwCCmA== X-Received: by 2002:adf:ea87:: with SMTP id s7mr267663wrm.217.1613087964935; Thu, 11 Feb 2021 15:59:24 -0800 (PST) Received: from [192.168.1.36] (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id k11sm6958501wrv.51.2021.02.11.15.59.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Feb 2021 15:59:24 -0800 (PST) Subject: Re: runaway avocado To: Cleber Rosa References: <20210211172541.GA2316309@localhost.localdomain> <20210211184710.GA2323314@localhost.localdomain> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <22cc2681-b53c-b5b2-d8f0-8307bb514c21@redhat.com> Date: Fri, 12 Feb 2021 00:59:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.569, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.119, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?B?THVrw6HFoSBEb2t0b3I=?= , Peter Maydell , Yonggang Luo , =?UTF-8?Q?Alex_Benn=c3=a9e?= , QEMU Developers Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 2/11/21 8:21 PM, Peter Maydell wrote: > On Thu, 11 Feb 2021 at 18:47, Cleber Rosa wrote: >> On Thu, Feb 11, 2021 at 05:37:20PM +0000, Peter Maydell wrote: >>> I wonder if we could have avocado run all our acceptance cases >>> under a 'ulimit -f' setting that restricts the amount of disk >>> space they can use? That would restrict the damage that could >>> be done by any runaways. A CPU usage limit might also be good. > >> To me that sounds a lot like Linux cgroups. > > ...except that ulimits are a well-established mechanism that > is straightforward, works for any user and is cross-platform > for most Unixes, whereas cgroups are complicated, Linux specific, > and AIUI require root access to set them up and configure them. I agree with Peter, having being POSIX compliant is better than restricting to (recent) Linux. But also note we have users interested running tests for Windows builds. See the Cirrus-CI. > >> We can have a script setting up a cgroup as part of a >> gitlab-ci.{yml,d} job for the jobs that will run on the non-shared >> GitLab runners (such as the s390 and aarch64 machines owned by the >> QEMU project). >> >> Does this sound like a solution? > > We want a solution that works for anybody running > "make check-acceptance" in any situation, not just for > the CI runners. Indeed. Public CI time being limited, I expect users to run tests elsewhere. We don't mind about data loss on CI runners. FWIW similar complain last year: https://www.mail-archive.com/qemu-devel@nongnu.org/msg672277.html Regards, Phil.