From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932576AbdHWS0s (ORCPT ); Wed, 23 Aug 2017 14:26:48 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:33119 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932405AbdHWS0r (ORCPT ); Wed, 23 Aug 2017 14:26:47 -0400 MIME-Version: 1.0 In-Reply-To: <20170823134521.5068-1-vkuznets@redhat.com> References: <20170823134521.5068-1-vkuznets@redhat.com> From: Linus Torvalds Date: Wed, 23 Aug 2017 11:26:46 -0700 X-Google-Sender-Auth: s1iCqazC4D0TBdPhGGh0sX4GJFU Message-ID: Subject: Re: [PATCH] x86: enable RCU based table free when PARAVIRT To: Vitaly Kuznetsov Cc: "the arch/x86 maintainers" , Linux Kernel Mailing List , xen-devel , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "Kirill A. Shutemov" , Peter Zijlstra , Jork Loeser , KY Srinivasan , Stephen Hemminger , Steven Rostedt , Juergen Gross , Boris Ostrovsky , Andrew Cooper , Andy Lutomirski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 23, 2017 at 6:45 AM, Vitaly Kuznetsov wrote: > > Solve the issue by enabling RCU-based table free mechanism when PARAVIRT > is selected in config. Testing with kernbench doesn't show any notable > performance impact: I wonder if we should just make it unconditional if it doesn't really show any performance difference. One less config complexity to worry about (and in this case I'm not so much worried about Kconfig itself, as just "oh, you have totally different paths in the core VM depending on PARAVIRT". That said, the thing to test for these kinds of things is often heavily scripted loads that just run thousands and thousands of really small processes, and build up and tear down page tables all the time because of fork/exit. The load I've used occasionally is just "make test" in the git source tree. Tons and tons of trivial fork/exec/exit things for all those small tests and shell scripts. I think 'kernbench' just does kernel compiles. Which is not very kernel or VM intensive at all. It's mostly just user mode compilers in parallel. Linus