Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbdIJU0C (ORCPT ); Sun, 10 Sep 2017 16:26:02 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:36493 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902AbdIJU0B (ORCPT ); Sun, 10 Sep 2017 16:26:01 -0400 X-Google-Smtp-Source: ADKCNb5VQxEDHZ3L6UgxxKfaHm2BLayjHClWwG87IfAGjXmtm+DwvoyTtGCd8NK1TwDA3QyP9cJzNw== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf From: Andy Lutomirski X-Mailer: iPhone Mail (14G60) In-Reply-To: <20170910202258.gqbmc2a4hgsueyr6@hirez.programming.kicks-ass.net> Date: Sun, 10 Sep 2017 13:25:58 -0700 Cc: Andy Lutomirski , Borislav Petkov , Linus Torvalds , Markus Trippelsdorf , Ingo Molnar , Thomas Gleixner , LKML , Ingo Molnar , Tom Lendacky , Rik van Riel Content-Transfer-Encoding: 7bit Message-Id: <24D0B546-B0CB-4F66-978F-18C2D54C9269@amacapital.net> References: <20170909172352.GA290@x4> <20170909173633.4ttfk7maooxkcwum@pd.tnic> <20170909181445.GA281@x4> <20170909182952.itqad4ryngjwrgqf@pd.tnic> <20170909190948.xydyega7i2rjnlqt@pd.tnic> <20170909193750.l5o5xtquogmscmom@pd.tnic> <20170910202258.gqbmc2a4hgsueyr6@hirez.programming.kicks-ass.net> To: Peter Zijlstra Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1088 Lines: 24 > On Sep 10, 2017, at 1:22 PM, Peter Zijlstra wrote: > >> On Sat, Sep 09, 2017 at 09:42:12PM -0700, Andy Lutomirski wrote: >> PeterZ and Ingo, would you be okay with adding a define so arches can >> opt out of the task_struct::active_mm field entirely? That is, with >> the option set, task_struct wouldn't have an active_mm field, the core >> wouldn't call mmgrab and mmdrop, and the arch would be responsible for >> that bookkeeping instead? x86, and presumably all arches without >> cross-core invalidation, would probably prefer to just shoot down the >> old mm entirely in __mmput() rather than trying to figure out when do >> finish freeing old mms. After all, exit_mmap() is going to send an >> IPI regardless, so I see no reason to have the scheduler core pin an >> old dead mm just because some random kernel thread's active_mm field >> points to it. > > I'm only quickly skimming this thread, but I don't see anything too > worrysome being proposed. > > If you're in LA next week we can talk about it in more detail if you > want. I'll be there.