Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3263019imm; Sun, 3 Jun 2018 23:56:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJgdj6IiiPz/ZgKOHgaFhJrDS6wWWnSVXQWv0Au2Ch9EwfxQR/acGFf44RTzhzIb/Zt8g08 X-Received: by 2002:a17:902:4301:: with SMTP id i1-v6mr20714590pld.280.1528095387832; Sun, 03 Jun 2018 23:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528095387; cv=none; d=google.com; s=arc-20160816; b=aWSyCgX7K1a+wc4Vq47hXUaDze2rEmdwpsLcO7Cy1jc9xkjamxbW7/x+g5L9OfCQ72 43etZPDLBfPDWwcLe8qqZInnbVPRlsaNhuXoQZIYJqgROExuz8bD9YfEIIYq4935FEc6 f/TQO0qqqGlTmsfLtBAMUow6/b++Cumaa3tWyT2piUlfQJB5k8GySo8mzPRwL29WmTfo LZD/ScjpQmoi9lRzrbJLbDMcVMw1fPjs6zVKSZscs0xHMr9cVMOqdkTfLhIAVDXbMIcq N0ZhsgKkiYE+xo102YyxOU4Bd/P8TrwG+Qk6ywjdDq5dH8K5m+McyRrL4sNSeaRuD+Rk YtMA== 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=8MCDOQfmbt1AUg7bAOLfCb+n4cYAJcAKMR06BIxp2p0=; b=ZRApIxOSqDp/mKezhU5rPihiGunbYKVPeg21pqx/aVB+AuiVH1mywOalVZXDlMrbyc JxV4xOudDWlWZSslyHGoN2skHf99UXMvVzFq0LKTVNptu4Uz7CQb49A5if1a9kqwTmQa tDa3Oi6sB7KWJp+n/1ccSAuu6DhxnoSbfhYA7L7/Z3a1vmrRo7kA0iQHbDpBEG6WkzHS yETLV3xCjn+hvcPO3TvGwfJzTmEWwSTdJjKXIr7flFUnMkzLqwTZOqB9foT4q37mvh2S 32RUvpxl44zYH8fjdAEwu3vYvFv8dbBCilGloru9QTmWHhMOybt/Aryif3h93cFVptCv AD6Q== 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 y4-v6si2051747plp.120.2018.06.03.23.56.13; Sun, 03 Jun 2018 23:56:27 -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 S1751910AbeFDGy3 (ORCPT + 99 others); Mon, 4 Jun 2018 02:54:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:54022 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbeFDGy2 (ORCPT ); Mon, 4 Jun 2018 02:54:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8C640AE01; Mon, 4 Jun 2018 06:54:26 +0000 (UTC) Date: Mon, 4 Jun 2018 08:54:25 +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: <20180604065425.GF19202@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> <20180601150219.GG15278@dhcp22.suse.cz> <87y3fyv88o.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y3fyv88o.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 10:25:59, Eric W. Biederman wrote: > Michal Hocko writes: > > > 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. > > pthread_exit from the group leader. Right, forgot to mention this one but this would be quite exotic, right? > > 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. > > That is a fair question. All I know for certain is that whatever Kirill > Tkhai's workload was it was triggering this the slow path. Yeah, that was exactly why I've asked that originally. It must be something pretty special ;) -- Michal Hocko SUSE Labs