Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp196098ima; Tue, 23 Oct 2018 22:54:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5fg/jkONV1XoB09nHGM5TLIw3Lnw3Y/irTPBxuSlA0qRKte5DN5Fsd1HOXiUGldxdb1J17l X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr1281307pla.178.1540360445190; Tue, 23 Oct 2018 22:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540360445; cv=none; d=google.com; s=arc-20160816; b=RMXyRpFvnazMt+tmQSam7tiCSlxrwyMGMlwURDsVeq/ycn9s6aaKVI1zXZMxM0bXNk FV59Och89C2yEi34txXXECB4C4CBy26mIH9jjxuSRyA4lN3DiqbKTKqHEhkCmF4sB3PN HYcbfhdeObQAET+rL2pOdafAbTkezHni70o8/p/t+Id0nsxzRXFdvJ0QXCLTnFCOJfCW MWtrbWUWiyivUlxi0lCUwqhk3u4b/9zLyIW8X907kKXlbIb/YB9Ig5MPHBCiOAmeK8Op LelI9sNMPCcUB2ux/fCy7l81SPn7RZswG6auX+w0l3+zjPpVccih/LOJsC8/vEYFgYck A7EQ== 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:dkim-signature; bh=8AYhBPynFCUOh6QKNUizhXb9/o/UCNU5+Ge+DkLqccA=; b=PvBxtp7EOo3k/kEkAh5gCQqOnuFW7q1oa0e9wyxCLbfWlko6ipOyk8f9qq6KT/V7hm SQWlO/+ZIUs3NaLITa7PnZJ5F+LH9GU/c9LTtcgFcS/Z0hcSipPT0ikFhi4tAOuSBjFr aK+kMjtg5xUiWc7uJwkLpSlE81JXUqVZU1Lec74+wRz5t9o1rV9j8nKuCO7y0/J49RwD IkVAOrP6GbNdqpapTzUtXNz2cz1J2eQ9a2DVC7MkTi526zk/X5n5DdAQ4+vYVpO0pveQ pipRaKrrgbcpf9Jw2qWod0ztXyDbPny6Zua0PkHNioFegIPJJbm9N5QgokBvd79szvpj Fhrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NHam001B; 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 y11-v6si3630870pgj.195.2018.10.23.22.53.47; Tue, 23 Oct 2018 22:54:05 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NHam001B; 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 S1726449AbeJXOUA (ORCPT + 99 others); Wed, 24 Oct 2018 10:20:00 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51404 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbeJXOUA (ORCPT ); Wed, 24 Oct 2018 10:20:00 -0400 Received: by mail-wm1-f68.google.com with SMTP id 143-v6so3951437wmf.1 for ; Tue, 23 Oct 2018 22:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8AYhBPynFCUOh6QKNUizhXb9/o/UCNU5+Ge+DkLqccA=; b=NHam001Bw+nAC4hm7JDAw6m3hMiW2g4sR/wp3LYFid/RJrk/i4dUafWlywq+j6+2PM YO3msFwevFZMOCs2IbGP9mrESsiKDlMrZh+jnJPKokMYazjDFNNhrpSiooDhpdJUlhZs bslpifL8IL+w5MHWgbr0U18EWrcHVqX78JPWX5ZuqFZjlqYtlnxTBDv5ZQi7s134nGE0 8h72CmkCis8UssgN+xGH51gxqt50V2YT88r/Y8pczRGT485DpMjYfUYjPFsuQ4SmRwr7 QSmslu7ipEg/59UIEn/eEcp5/QFZd86bpbtADwV5gMBbJyV1zfJWay2G6wm+H9QiTC0Q +bcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=8AYhBPynFCUOh6QKNUizhXb9/o/UCNU5+Ge+DkLqccA=; b=rnMWZhf9pAse21FdV1kqw3k4TcnHpmErQV6L3oOnjmR8SyqsJ2Yx2Ng2laF74bhchw 9Cuk4FSyUYSKAxK+iiMSZk9FJXevB6FmGIycP6qZtAm+t9YkErAfqOyI5qGlQLfSet3V deQq+WxIjRKjkn1c9WV/IZ83kowGtWZz7BgKeYHq//3nNIV8m6GE1U9XwOXK20I+n2dJ 3PCNao3KtuW9oTt61XQ6fs9W6YVc2n833qN/e9fP6/uSk0e4FelBEMRtUZz/3PugXCV4 gUIVQaTbBdqmJGpsZAZ7KQjBqW+wJj9LEXit+EinZPamKaGeYEk01pbIG9O2+mrZYBmc f0Tg== X-Gm-Message-State: AGRZ1gLA14dm2Qp1C8cpArD6jhNzAxC90YlADJTd++CDHdzoTS17EvuM 02/u3ldNyt3W0pJQhcAgQOE= X-Received: by 2002:a1c:3702:: with SMTP id e2-v6mr991535wma.89.1540360402879; Tue, 23 Oct 2018 22:53:22 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id i13-v6sm3610651wrn.62.2018.10.23.22.53.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 22:53:22 -0700 (PDT) Date: Wed, 24 Oct 2018 07:53:19 +0200 From: Ingo Molnar To: Rik van Riel Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, kernel-team@fb.com, songliubraving@fb.com, will.deacon@arm.com, hpa@zytor.com, luto@kernel.org, npiggin@gmail.com, Linus Torvalds , Thomas Gleixner , Peter Zijlstra , Borislav Petkov Subject: Re: [PATCH 0/7] x86/mm/tlb: make lazy TLB mode even lazier Message-ID: <20181024055319.GA73309@gmail.com> References: <20180924183759.23955-1-riel@surriel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180924183759.23955-1-riel@surriel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rik van Riel wrote: > The big thing remaining is the reference count overhead of > the lazy TLB mm_struct, but getting rid of that is rather a > lot of code for a small performance gain. Not quite what > Linus asked for :) BTW., what would be the plan to improve scalability there, is it even possible? Also, it would be nice to integrate some of those workloads into a simple 'perf bench mm' or 'perf bench tlb' subcommand, see tools/perf/bench/ on how to add benchmarking modules. Thanks, Ingo