Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5032966rwb; Tue, 17 Jan 2023 08:22:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXuRop9ToJqtktoSh3Ma4UeAPip/+0/x5wLHpUs8JAID2SrWok1bRLsFqeBTpRfS4z6ESI2t X-Received: by 2002:a17:906:af13:b0:86d:f370:19ab with SMTP id lx19-20020a170906af1300b0086df37019abmr3450346ejb.5.1673972544372; Tue, 17 Jan 2023 08:22:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673972544; cv=none; d=google.com; s=arc-20160816; b=LwxtiPYApmlzMx9BhBGXc1R563LpD2b1F94zFGtxBWatMNRVvvlacBHsOBvr6TvidG yF2lDF3ETkU0viAezTnEEQAmiURV4TWhvel8if2Y4bWI94vHCGEM+K41k9IZJKg3LOJf FPvJMWknylqNrW1sxx6tWxggF29ZJvFgGm/87EiceTUvhRyV3oPSdcvFm9P3y2eOcSwA maEvQUwR0cKILNrFbbzPJ3UhYHzExRxcrhJ24mEd1MmmF+ECQ4GhS/1nxgkQ+0ggpN/S 0VU0TIZEr0GcKwC+kgeHsXUhugVj46mSt7b7ZmEZwCAKKxfnGj9vOj4F/HOJlY1aSVYv B5cg== 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=ZPZY3FkQTU5PcHvi/xKbNCo5wtFX4+klrwWTiGiGKKY=; b=IRwwx788QZskOq8PE88IsxqVPspAhvB4zO+GeJ9zPNiZ1+yjtV74EHB/hpW5oHWFNx 1s115xXzjl67LEmCiy915BzXKoVI2pEkV3jLPBTT903IeNmSv638/HS1DcLLcwWhykCe ssJRCyogBkzmOkvITm3cNkyoEal3GOxNEn1ZLk6YjkMyDkGuJQfTUi0Q9gTf0XsdQI3P I+wQ2sa8IsRvHWtj3S07AiisCivDM8JzHtvPelxKSNXgmqxDkOHK0FJD8xDJRrjgHxIY Xrs2/+u1nZa1J6R8xBrzUViJlRaIYrp1NrrQq2WyRyXfunNYcWJq1gNIyCX3j3xJq4cL v9Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=QRPsVr1q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du1-20020a17090772c100b007c0a8ff3384si9785460ejc.763.2023.01.17.08.22.12; Tue, 17 Jan 2023 08:22:24 -0800 (PST) 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=@suse.com header.s=susede1 header.b=QRPsVr1q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231651AbjAQP5y (ORCPT + 48 others); Tue, 17 Jan 2023 10:57:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231382AbjAQP5s (ORCPT ); Tue, 17 Jan 2023 10:57:48 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F1D72B2B4 for ; Tue, 17 Jan 2023 07:57:42 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1603A3449A; Tue, 17 Jan 2023 15:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1673971061; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZPZY3FkQTU5PcHvi/xKbNCo5wtFX4+klrwWTiGiGKKY=; b=QRPsVr1ql3IDuzeX0NDvrOV3XqE/uVfcC9hhiQanX/q8uEOGIYjSjRBn/xvLFyu6tt3nYk o6izVI1LSpJ6l5yrivgXO5fZ4zCU8Kp3ZIA5c9Mnv+HKAe9fM0fHE00FnHZXYXlFbnCAqJ CCKQndaZGZTrBd0sMK+TiO7/z939sKU= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E27F513357; Tue, 17 Jan 2023 15:57:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id UwP7NnTFxmNSXQAAMHmgww (envelope-from ); Tue, 17 Jan 2023 15:57:40 +0000 Date: Tue, 17 Jan 2023 16:57:40 +0100 From: Michal Hocko To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, michel@lespinasse.org, jglisse@google.com, vbabka@suse.cz, hannes@cmpxchg.org, mgorman@techsingularity.net, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, peterz@infradead.org, ldufour@linux.ibm.com, laurent.dufour@fr.ibm.com, paulmck@kernel.org, luto@kernel.org, songliubraving@fb.com, peterx@redhat.com, david@redhat.com, dhowells@redhat.com, hughd@google.com, bigeasy@linutronix.de, kent.overstreet@linux.dev, punit.agrawal@bytedance.com, lstoakes@gmail.com, peterjung1337@gmail.com, rientjes@google.com, axelrasmussen@google.com, joelaf@google.com, minchan@google.com, jannh@google.com, shakeelb@google.com, tatashin@google.com, edumazet@google.com, gthelen@google.com, gurua@google.com, arjunroy@google.com, soheil@google.com, hughlynch@google.com, leewalsh@google.com, posk@google.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free Message-ID: References: <20230109205336.3665937-1-surenb@google.com> <20230109205336.3665937-40-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230109205336.3665937-40-surenb@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Mon 09-01-23 12:53:34, Suren Baghdasaryan wrote: > call_rcu() can take a long time when callback offloading is enabled. > Its use in the vm_area_free can cause regressions in the exit path when > multiple VMAs are being freed. What kind of regressions. > To minimize that impact, place VMAs into > a list and free them in groups using one call_rcu() call per group. Please add some data to justify this additional complexity. -- Michal Hocko SUSE Labs