From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 951AAEB64DC for ; Mon, 3 Jul 2023 14:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tu8m21vccnbOLOmvcwbfa9ArqVsa4p7TlsbyAi0qbkw=; b=LerHbZqfY1vglQ 53BbbNcI5bJWcuTFl41wJjwd5hAbyt+vnEp8FOIy2TOcKq2wVc5J/5H2jKSXbJZaFt/JXoKNb1dM5 tce4vdOvQ/MXND6N4TQKyaSInKLpkr6rLyTLrgNj7lKGE7whuzKFimpHylG73yYuToPZ7Zpr77XzL 3UMOMZvsUnL/QwDS6XpjViWEsxHtOrhgsFdtxY0ZxUjfzfFVe0zNuR8mijSp4Gse59RmXNwZXPS7K T1Dahat2zV8Dtdrdp1mai6NG7+uX3C7n7oOq6mnj+aErPdsr8aMn9kjJECN7Hnuwgar56faYfsj3e Gy9henuy4j18o/lD1X8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qGKFd-00Aj03-2X; Mon, 03 Jul 2023 14:10:01 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qGKFc-00AizN-1D for linux-arm-kernel@bombadil.infradead.org; Mon, 03 Jul 2023 14:10:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=NHgmW4jYFfefymgeKSK963KNOIaZu3e0HaLSnjpA4qM=; b=NYx3tbzkHNtzymbdVxK26tzRKE y0U7bussB88S4hawbqgi2OXu/Ixc+msp825EhkTymOzlJky3Gk/RlnBAehXzBvS1sq955fAUKa/v2 QQBlUMEJ/QRVaeHZAtkbH8ySND/v6mkmXm5uQ4FF10C11cZe2Sntk1huT1PSd8iZgXW0UKui5Q3hN JtrAvZIp0VCWHgN068CLdTXLcDz2LG7D7aXqVSieR9/PQ1X06rFtnKlBi46GPzz3iI6rv7f+giIk5 +Y+GTc0g+aOregoiGO/nItUYI4TiikK0ofkhQUtESUDqXpgz8RK+yOtDEDZEKulMxxnY3PExB5JTN 7z9m/yyg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qGKFT-008Ifc-M6; Mon, 03 Jul 2023 14:09:51 +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 7282730005E; Mon, 3 Jul 2023 16:09:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 59B5E2028FBD3; Mon, 3 Jul 2023 16:09:50 +0200 (CEST) Date: Mon, 3 Jul 2023 16:09:50 +0200 From: Peter Zijlstra To: Marcelo Tosatti Cc: Yair Podemsky , ppandit@redhat.com, david@redhat.com, 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, hpa@zytor.com, keescook@chromium.org, paulmck@kernel.org, frederic@kernel.org, will@kernel.org, ardb@kernel.org, samitolvanen@google.com, juerg.haefliger@canonical.com, arnd@arndb.de, rmk+kernel@armlinux.org.uk, geert+renesas@glider.be, linus.walleij@linaro.org, akpm@linux-foundation.org, sebastian.reichel@collabora.com, rppt@kernel.org, aneesh.kumar@linux.ibm.com, x86@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, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] send tlb_remove_table_smp_sync IPI only to necessary CPUs Message-ID: <20230703140950.GL4253@hirez.programming.kicks-ass.net> References: <20230620144618.125703-1-ypodemsk@redhat.com> <20230621074337.GF2046280@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 22, 2023 at 09:47:22AM -0300, Marcelo Tosatti wrote: > > there's patches that cure the thp abuse of this. > > The other case where the IPI can happen is: > > CPU-0 CPU-1 > > tlb_remove_table > tlb_remove_table_sync_one > IPI > local_irq_disable > gup_fast > local_irq_enable > > > So its not only the THP case. (your CPU-1 thing is wholly irrelevant) Well, I know, but this case *should* be exceedingly rare. Last time around I asked why you all were tripping this, you pointed at the THP case. The THP case should be fixed along the lines of Jann's original patches. If you can trip this at any significant rate, then we should probably look at a better allocation scheme. It means you're really low on memory. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel