Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16296229rwd; Mon, 26 Jun 2023 08:11:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZnoMFcfbHpL8n+skWvco3C8pC/GEaY9Njd8Kbn3CPUiS+y7cEo7xHQ0EMSUZfqXKI+a7i X-Received: by 2002:a2e:3002:0:b0:2b4:466d:deab with SMTP id w2-20020a2e3002000000b002b4466ddeabmr17802800ljw.35.1687792281258; Mon, 26 Jun 2023 08:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687792281; cv=none; d=google.com; s=arc-20160816; b=k+Y79IalwZLo/m7mU75Ei77vGl4AMZjSfj5mk11Q8sh2034AApvcmNnl/KmztVxW0J OY0IGMiNOp0KhUBT1g8eA7Zv5WLWUVM07UJhYnvCTjzPvtc+WFTbjF8HZJYzzJGjCtT2 DFKRTOhZVj3qMxTYNgijqGCHjtuAvDVSAoKAUXZtlN5fvpo1E50CN9PaGJJV5vla1l9v tBl6pqPqX8FUWf8j6UGYQDZnaE4L/kh3Dq8olr+4kE0i0XT6te57noaWIw8iUS3iQEOK /ppbZxVjxTG+RdssbP5F/qLRhCldPvR6AFbGtSbcAke7UzPzJ7YYLWwbpEmvagRdFgQW +URA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id :dkim-signature; bh=tvcSqXCnz9zVXylEiOugaJe8PBAXaMauU+4YTqF2Kks=; fh=seC6yQk6+xWPGcqH9FY63P0Kpw2axqgAauRPVlbr0s0=; b=hSfICpBk8dj7co3svZlyPNo12ByuErUThxCrEXdTku3c7bjxYc6IxT5hAjCkd8BRUw NwXUq9kIh+GyWBj25351gOaql+Gj3ezrujNKgB9JN5j2l5ZbyUlhfl5XwmWyjkWMXLJ1 TuY/b/LzZVK1876xzzEK+VyEwfHS/VjaVtUTNG5EecQN7lVyKALp0P3ZolcPWJ26D3L+ /SIieZtLV7dxNbCEnnu8MsRtvgJ3OMiKHFf7fWw+1XMmLmjHFV1VXqUMGQeeBbJIplJ5 PuAbmm/I4JJZGOd4VzMGAf7eh+iMr+Qg3wAhP3mFPpWQfQulpS8gwynQxVw6LWaExCOC zrmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AhwlQ7do; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc6-20020a170906f90600b00987c05f5666si3016421ejb.1042.2023.06.26.08.10.55; Mon, 26 Jun 2023 08:11:21 -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=@redhat.com header.s=mimecast20190719 header.b=AhwlQ7do; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbjFZOha (ORCPT + 99 others); Mon, 26 Jun 2023 10:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbjFZOh2 (ORCPT ); Mon, 26 Jun 2023 10:37:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3AF819F for ; Mon, 26 Jun 2023 07:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687790199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tvcSqXCnz9zVXylEiOugaJe8PBAXaMauU+4YTqF2Kks=; b=AhwlQ7doRHT+6bTdS6Q5Kqd5aUioBBJjk3wDC5SFJ7P92TFw2UEdohx1guF+B3bFDe1sbM b87hevo19/jk3McHBWGTUYKh2/cJ/G7Ng5wWTvmxb+tGsEAPUpygGgiXlHi/VrUZdnQbYg TAW4+4WgHxpBdlfc0oKQ93gnxdh6YJI= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-Rjf6KUT2Oh21Y2KzzX_XfA-1; Mon, 26 Jun 2023 10:36:38 -0400 X-MC-Unique: Rjf6KUT2Oh21Y2KzzX_XfA-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-7656cf70228so227193485a.2 for ; Mon, 26 Jun 2023 07:36:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687790198; x=1690382198; h=content-transfer-encoding:mime-version:references:in-reply-to:date :to:from:subject:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=tvcSqXCnz9zVXylEiOugaJe8PBAXaMauU+4YTqF2Kks=; b=jlUfltwd7C2BUBZpnczIU9aQMdakuOkPl+FLp7wTN4Lv0uQN/0pPi4vb83+Tgm1Hq1 p/NJA8gobN2Nxg2MHTGanunscaveb8jTbBFLw1dCS8mAv/CtdhlqpkUVijsArjIf/9ub IIN7fgCFogm3n3ekpiFfpzmzV1ZpkKq9naTAchjLkI2otFIfh+krH1+Kfg0x87FjNnHJ 1wYE38nCyb+zBbTejx9S14q7BppLUqeRmD+wPmbkDh/kPi5otaPCYaJyDm16Dkh/lb82 RV8xxsdcPwirftdqPekkIronZpv4jlRsxZmL79KIyVnUTAVwACuqwW9g5nzkDi4ZnguK 93RQ== X-Gm-Message-State: AC+VfDzF/UAydW5i4aWcoWIhBuJzmEkai7R7iQKDcb5jXADAQX8BEOoZ Nl5+ZmeKBgWA4NxT3lQgoOjpJREBYN4KkwXYpMLLFVl1KECXTgqF4SIcbC7cAsnmJ60Rwl+e7Bj ZysitZeG9iWHS9vlb+PzOSTfz X-Received: by 2002:a05:620a:2b88:b0:762:5179:5d97 with SMTP id dz8-20020a05620a2b8800b0076251795d97mr26896722qkb.12.1687790197711; Mon, 26 Jun 2023 07:36:37 -0700 (PDT) X-Received: by 2002:a05:620a:2b88:b0:762:5179:5d97 with SMTP id dz8-20020a05620a2b8800b0076251795d97mr26896682qkb.12.1687790197466; Mon, 26 Jun 2023 07:36:37 -0700 (PDT) Received: from ypodemsk.tlv.csb (IGLD-84-229-250-192.inter.net.il. [84.229.250.192]) by smtp.gmail.com with ESMTPSA id pe34-20020a05620a852200b00765a71e399bsm1204141qkn.55.2023.06.26.07.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 07:36:37 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2 2/2] mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to MM CPUs From: ypodemsk@redhat.com To: Dave Hansen , mtosatti@redhat.com, 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, peterz@infradead.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 Date: Mon, 26 Jun 2023 17:36:28 +0300 In-Reply-To: References: <20230620144618.125703-1-ypodemsk@redhat.com> <20230620144618.125703-3-ypodemsk@redhat.com> <680fadba-9104-3914-5175-e207fd3d9246@intel.com> <79f29f99fa07c46dbaee7b802cdd7b477b2d8dd1.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-22.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Thu, 2023-06-22 at 06:37 -0700, Dave Hansen wrote: > On 6/22/23 06:14, ypodemsk@redhat.com wrote: > > I will send a new version with the local variable as you suggested > > soon. > > As for the config name, what about CONFIG_ARCH_HAS_MM_CPUMASK? > > The confusing part about that name is that mm_cpumask() and > mm->cpu_bitmap[] are defined unconditionally. So, they're *around* > unconditionally but just aren't updated. > I think your right about the config name, How about the CONFIG_ARCH_USE_MM_CPUMASK? This has the right semantic as these archs use the cpumask field of the mm struct. > BTW, it would also be nice to have _some_ kind of data behind this > patch. > > Fewer IPIs are better I guess, but it would still be nice if you > could say: > > Before this patch, /proc/interrupts showed 123 IPIs/hour for an > isolated CPU. After the approach here, it was 0. > > ... or something. This is part of an ongoing effort to remove IPIs and this one was found via code inspection.