Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1175650rwl; Wed, 5 Apr 2023 12:57:11 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXv81ZhvcOhwJ7TdIgpeB4QrLlO7c49JYRfXgKRQZf/6uP95m+WE9w/VHNoujgo/X9kbEb X-Received: by 2002:a17:902:c713:b0:1a2:8f0d:766d with SMTP id p19-20020a170902c71300b001a28f0d766dmr5899737plp.62.1680724631516; Wed, 05 Apr 2023 12:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680724631; cv=none; d=google.com; s=arc-20160816; b=e1uVAPAeo+Lw9D4D/b2YPjs8qHJ45DoAQCoW57BvLmFML4AUy57+2oEHu3rBbTyZCv nhbQw9YSYEgwhuwb7bgSS0sboOPE+Yl/ylmU/cEujDhY7r00ehMT4zBJyBx5Ofjh9uAR 5U1DCuEHcJxcSpF3FDxIeEF6om5tvvR9IszELT/Qmh1P141VbNot+3AXzwXuRzU40zYN Qos1EejhHWWN3WM3k/1R7UjAhrcx/TrvB8VxtwATPQ3p8NGXpyVsSl4GeN3uvT9DIzym koWaNuij15dXQ0VyQ6FD2tGn8YYQA9KVbDcT30OnA4SGIIPL/94zcvOqjR2fDlWdcsmP Q+1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B30n3pHhQ67VUrCvHblGlQhSttCrPNMRQNjpDfnCSKM=; b=WIYn/jWZC3bHO4g+gM5MHtAZcollcN83AS/gDI5iDIIQPzf01a+8B0bcwI9akcsS26 2hQISuL2DYA/Eos4l+IdDOFVfmpZYaQ68+gFE33MmzdVHTkuk7eqPgBCkllludnjXa99 pycjbzT1az9+34OwRCroOIyqAZmdmTz8BN6jkJlwoBRhUjCMVFIoM8HSAfMR2Es5Y0aX hjIcPbuVIKqj6kHhOE0yOvYhc8dTme1Gz8C3fxbnT39G/FIIFq/fvEVrre/hjh5B60kA B6LI4M+S8yxMB7i93kTCxLRMiywZB9kzplZeGhQavA90vWc8khg9KYKTp3JEfsfMeJ87 DXug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=CJI95hU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a170902eccb00b001a19bb822f6si13404749plh.282.2023.04.05.12.57.00; Wed, 05 Apr 2023 12:57:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=CJI95hU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233758AbjDET4n (ORCPT + 99 others); Wed, 5 Apr 2023 15:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233489AbjDET4l (ORCPT ); Wed, 5 Apr 2023 15:56:41 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4EEAC0; Wed, 5 Apr 2023 12:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=B30n3pHhQ67VUrCvHblGlQhSttCrPNMRQNjpDfnCSKM=; b=CJI95hU4T3CctR2X2KCz7i8NWi YVt1ex1JpgAHIkmuy1kwgmXIwoo8mBoQM1QWzDBBKhLlgV5gG20QMCPVnsJLgz7GRzOm4rDjqGEX7 SmFG/4YZOLagPlJCfMyKsqXiKz6fWZ/Jk9afJU/jjYA7gG9XdM9XNSnVMS1ZUyvJEx5WQFenjZoAI zO2cSWiVjU2pubWN8bbwjUL6wmrfBNOTp8MuoRZde24eZSrrkyuyRHB2Tk3nQSha1cz0pm0m39FhU k2KMEzOUMhMRj2A+rxwttKpIIRQXafgeaIFhn68NBf9aN8oHHlDlL/YAU/DyPzhJcQlSRGMXoJ0cF xlMCIp8w==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pk9De-00A4Ht-2h; Wed, 05 Apr 2023 19:54:59 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B6577300194; Wed, 5 Apr 2023 21:54:57 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9929B200B42A8; Wed, 5 Apr 2023 21:54:57 +0200 (CEST) Date: Wed, 5 Apr 2023 21:54:57 +0200 From: Peter Zijlstra To: Marcelo Tosatti Cc: Frederic Weisbecker , Yair Podemsky , linux@armlinux.org.uk, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, will@kernel.org, aneesh.kumar@linux.ibm.com, akpm@linux-foundation.org, arnd@arndb.de, keescook@chromium.org, paulmck@kernel.org, jpoimboe@kernel.org, samitolvanen@google.com, ardb@kernel.org, juerg.haefliger@canonical.com, rmk+kernel@armlinux.org.uk, geert+renesas@glider.be, tony@atomide.com, linus.walleij@linaro.org, sebastian.reichel@collabora.com, nick.hawkins@hpe.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, vschneid@redhat.com, dhildenb@redhat.com, alougovs@redhat.com Subject: Re: [PATCH 3/3] mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to CPUs in kernel mode Message-ID: <20230405195457.GC365912@hirez.programming.kicks-ass.net> References: <20230404134224.137038-1-ypodemsk@redhat.com> <20230404134224.137038-4-ypodemsk@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 05, 2023 at 04:43:14PM -0300, Marcelo Tosatti wrote: > Two points: > > 1) For a virtualized system, the overhead is not only of executing the > IPI but: > > VM-exit > run VM-exit code in host > handle IPI > run VM-entry code in host > VM-entry I thought we could do IPIs without VMexit these days? Also virt... /me walks away. > 2) Depends on the application and the definition of "occasional". > > For certain types of applications (for example PLC software or > RAN processing), upon occurrence of an event, it is necessary to > complete a certain task in a maximum amount of time (deadline). If the application is properly NOHZ_FULL and never does a kernel entry, it will never get that IPI. If it is a pile of shit and does kernel entries while it pretends to be NOHZ_FULL it gets to keep the pieces and no amount of crying will get me to care.