Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp696780imm; Fri, 1 Jun 2018 08:04:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJwm0QkfQeW8G0gUzacUFYgEYz1fIZsHS0onFwhZCnaCSDdymih+k73/dUptrqgdm87Pitq X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11-v6mr11305819plb.95.1527865441984; Fri, 01 Jun 2018 08:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527865441; cv=none; d=google.com; s=arc-20160816; b=wLGKmaLSx7zagfSJ51yPE3+PV0u2EIvdxn6OiB43EMekjhmUdlLyl/AEz2kR0HL/aO nimmmDmlhYCzEMssQCg59Y6tRcta9uRGuPXRuBUt/7i2xMsF1TqTswKS4+rg7kxMSPNZ 8GY51gdk1hj8v/5gTsUZ/vtYtkUz3OIOGnKK/9UBsClaCtJu9tHTKuHudB9QldUponEO 7gDi3hOVgKUZ7lETsUsUzHnzPU9tegLyXg1k5Gezp3TftbATwkPzaFopFBG89UBxSP72 FmrEPnTkb952WWoii15/jbC6whIxQVPk26LUijVDKZfpeB8VPJYuU4cmCm5BeI41up+0 bOuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=2VeU4y44eL/Ev4NaYwzCy6zXxDKb6kKaN3XKCp0DHnU=; b=zCLWMAjfmR8798xNGSF6SBjlLZJtEOroqRfUeOXtJCHAX52DQhL41eAAZevT/AceRm /V2PdEmVp348iUfKtS8ZpFsWeRbXSMAyyff/W2BEVMQNUNcupsPSnxuWmNhhDLJEDmnw MWO/CbdvRn941IHJiGRAQQGakIbeTJjVWtzmQ3ew0xlDG7pR6r9eXSrcHO40TIfP2jEz ySGfG7Mx1XkAZRbFy+VHk4RRpvYveRdBktecXzkP5cLpwa1uxv4t392o7pWM24NuER2S KfnrtO3KFJxljAfLTWseY7hvJlQgaadCb1FktTsBQXZmpqSUCh1fZpux5EV9GHa261VD ywug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184-v6si9873679pgd.343.2018.06.01.08.03.38; Fri, 01 Jun 2018 08:04:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752661AbeFAPCW (ORCPT + 99 others); Fri, 1 Jun 2018 11:02:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:46156 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbeFAPCV (ORCPT ); Fri, 1 Jun 2018 11:02:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 55263ADE9; Fri, 1 Jun 2018 15:02:20 +0000 (UTC) Date: Fri, 1 Jun 2018 17:02:19 +0200 From: Michal Hocko To: "Eric W. Biederman" Cc: Kirill Tkhai , akpm@linux-foundation.org, peterz@infradead.org, oleg@redhat.com, viro@zeniv.linux.org.uk, mingo@kernel.org, paulmck@linux.vnet.ibm.com, keescook@chromium.org, riel@redhat.com, tglx@linutronix.de, kirill.shutemov@linux.intel.com, marcos.souza.org@gmail.com, hoeun.ryu@gmail.com, pasha.tatashin@oracle.com, gs051095@gmail.com, dhowells@redhat.com, rppt@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] exit: Make unlikely case in mm_update_next_owner() more scalable Message-ID: <20180601150219.GG15278@dhcp22.suse.cz> References: <152473763015.29458.1131542311542381803.stgit@localhost.localdomain> <20180426130700.GP17484@dhcp22.suse.cz> <877enj9uwf.fsf@xmission.com> <20180601135725.GE15278@dhcp22.suse.cz> <87a7sey3ud.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a7sey3ud.fsf@xmission.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 01-06-18 09:32:42, Eric W. Biederman wrote: > Michal Hocko writes: [...] > > Group leader exiting early without tearing down the whole thread > > group should be quite rare as well. No question that somebody might do > > that on purpose though... > > The group leader exiting early is a completely legitimate and reasonable > thing to do, even if it is rare. I am not saying it isn't legitimate. But the most common case is the main thread waiting for its threads or calling exit which would tear the whole group down. Is there any easy way to achieve this other than tkill to group leader? Calling exit(3) from the leader performs group exit IIRC. I am not arguing this is non-issue. And it certainly is a problem once somebody wants to be nasty... I was more interested how often this really happens for sane workloads. -- Michal Hocko SUSE Labs