Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp325929pxm; Wed, 2 Mar 2022 16:26:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw96jOqOxa04d0jzAzOjyqEcO6zSxJVByvT6cNDdFyqe7lN5MHXY4UoSwO77Ug/4nsD/XiQ X-Received: by 2002:a17:902:704b:b0:14d:2c86:387 with SMTP id h11-20020a170902704b00b0014d2c860387mr33966539plt.1.1646267205509; Wed, 02 Mar 2022 16:26:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646267205; cv=none; d=google.com; s=arc-20160816; b=dczNCM7jeTkzJqDwG9BiHZkdt9A/9kc/59KoEQKd0buOkRMpMDI+X1ySygMGRZPoqf uaOcyYtOuIbUUfxrF22p6co7Rc7AUo6g3H2/PHEmynRpnZtMgzkaFYjnQKduB4iGbyAz hPYZ2XF5ATgVHXk4D47OjnlDHj3N8b8CnKoqD5LSQyMZx/qder2SiV2+fjiRk19sWXOv 44irjzl2Bdzh3hRNPdqIeR7lL3eVGTRr/RQw3yBkhqouUvJZIYkb5U3lkR8urZmPDgm2 d7cVBS1TpmNYBBSvjBPbKmKNIKwKwOQxhrchpfn7uUb6UT6P8QJQXyewbO+udnQI22Dn fzRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TTmCl82JqLan3QsNgtCR8eCTt45Umy9DiqQwuLlp+nY=; b=i0OvLs2sZcro4khB1lj6VI5MtTxGQxVMrqJHs5MrWwD6P0h8qKoOQnk8RfQc2355Ou 85xaLUEz3D4far2reLM7r3FGW1OYjBLbr+YVIlAHWicfKs4Lz0sBaH4ELVGinW7ix7/M GuXkvUyOeHNXxMAyywG5nx3jQWLzzFlzQ5IPkm140Rp+evj+YZN8seDSgR/Q7slNpNQ9 ytwOtlXPHX4mRbHitlfqlrAYUWDVu1Oido6D7++Dr+BNDRC7N3QCW0Y2MRAG81aVlX8O Qb0P1BvZuFC2aW4H8XT/f76N6ES15Gkdtm+4J7fyrE16Bag1Nvkz1f2FncW8TvDM0Mvp EfUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KfoYwSU1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v20-20020a17090a899400b001bed8366e44si6605077pjn.163.2022.03.02.16.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:26:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KfoYwSU1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 09473208C00; Wed, 2 Mar 2022 15:38:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245207AbiCBVxL (ORCPT + 99 others); Wed, 2 Mar 2022 16:53:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235341AbiCBVxJ (ORCPT ); Wed, 2 Mar 2022 16:53:09 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C462A8; Wed, 2 Mar 2022 13:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TTmCl82JqLan3QsNgtCR8eCTt45Umy9DiqQwuLlp+nY=; b=KfoYwSU15wZdPny08l3cV8PBZu suXZGirPexQrDgbQX5uGJbU7Df1yJ1ktmLv0jS0sAZKNx+pJdixfgD4R/TDEPqhbqI3BfNt42pheu RjmWCL0DlPB+78SrZXIMGba7JmRb0PQyQQUHkbneh6Acx7Xd1qd6fXDaMXTTVqKiOH3qxy3tAQDOa GvCaN0q6n5SXSqbjf6rmf5n5+sqFBgieDDlbNUI+aO5wXsxAJTiY1flBdSrbSaeah/4c62cT3Q8Hb UXbPO8ixKuUhGo/2c7lCT4NM75T9VeG9xmm8CWBJ8Utbrwowego6iSKFJmRdAIxORzhTRN/ip1tN8 MLIdp1Fg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPWt7-004R35-C3; Wed, 02 Mar 2022 21:52:01 +0000 Date: Wed, 2 Mar 2022 13:52:01 -0800 From: Luis Chamberlain To: "Eric W. Biederman" Cc: Shakeel Butt , Colin Ian King , NeilBrown , Vasily Averin , Vlastimil Babka , Michal Hocko , Roman Gushchin , Linux MM , netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Tejun Heo , Greg Kroah-Hartman , Eric Dumazet , Kees Cook , Hideaki YOSHIFUJI , David Ahern , linux-kernel@vger.kernel.org, kernel@openvz.org Subject: Re: [PATCH RFC] net: memcg accounting for veth devices Message-ID: References: <20220301180917.tkibx7zpcz2faoxy@google.com> <87wnhdwg75.fsf@email.froward.int.ebiederm.org> <87ilswwh1x.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ilswwh1x.fsf@email.froward.int.ebiederm.org> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 02, 2022 at 08:43:54AM -0600, Eric W. Biederman wrote: > Luis Chamberlain writes: > > > On Tue, Mar 01, 2022 at 02:50:06PM -0600, Eric W. Biederman wrote: > >> I really have not looked at this pids controller. > >> > >> So I am not certain I understand your example here but I hope I have > >> answered your question. > > > > During experimentation with the above stress-ng test case, I saw tons > > of thread just waiting to do exit: > > You increment the count of concurrent threads after a no return function > in do_exit. Since the increment is never reached the count always goes > down and eventually the warning prints. > > > diff --git a/kernel/exit.c b/kernel/exit.c > > index 80c4a67d2770..653ca7ebfb58 100644 > > --- a/kernel/exit.c > > +++ b/kernel/exit.c > > @@ -881,6 +894,9 @@ void __noreturn do_exit(long code) > > > > lockdep_free_task(tsk); > > do_task_dead(); > > The function do_task_dead never returns. > > > + > > + atomic_inc(&exit_concurrent_max); > > + wake_up(&exit_wq); > > } > > EXPORT_SYMBOL_GPL(do_exit); Doh thanks! Luis