Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2885509rdb; Wed, 15 Nov 2023 13:37:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3rGcotNsceA491cTFXPt0IAmhQDb8c83IIMk91NdiOCHr/G4WNIhGAVt/x7d+SYXWnLPQ X-Received: by 2002:a05:6870:f14c:b0:1ea:183d:ff65 with SMTP id l12-20020a056870f14c00b001ea183dff65mr17509618oac.35.1700084276324; Wed, 15 Nov 2023 13:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700084276; cv=none; d=google.com; s=arc-20160816; b=xP91w53YPCVP3NoQDhDY6bMDyNVhb+P6zZSEaR1cisRf2VNVk57Ox4G7Vrr9AK6fvf 6eU+Lx/sKoA5B8zXFApyI+YrvENqtKqlFETyXPoryJbCrkvW0iZxtHqrjjiPpUXVlvFd 8+Egj7p3Ij8q1WyBHFrBLV7lmL6rNVaX9E881cLe9FWguYyMxG4asAZRGSZ62Mtyobq5 3SxdHyu19HqI5sBkk9eWcZJ0CQzZLiLIy+iPCH/XrFz7/scrIAJVicaWxpBmcNZCQP7C Asn9TWrZy1613p92UiprPR97+ZcEw9ZGtuUc2H/JMEkTHLHinqPbODtnYGxpVc/SU4D/ zmwQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=JHMDtwytSISP4M/+2w0+LaBH6N6zrPRzqAfen5A9Z5s=; fh=ApkUWO7dJX90x3iNdxy17pKGbmnJAym1gqrKelqX6Js=; b=WbTbYFBb08gsZmGxbSCgJXieNN98SiLpqxwOF4jsW5kx/vk1VQXRavnRADjq+qCYY8 5yYPgd62b++kikxCZNlsd4XzZRwG12eJP41cteR+WZzRqDcTOVpA/ovCpbVZ5jdABnie Z+GTo4FHn0bvtFPA4jCQuHhJFv+rmkFDYvC9AizpWWX1cgq4YRkGA17QUe5DD/VS0MUR XDGzWu5C1c5eLT0Es1t/zaZL/LQ1GqLE3mA40uSqZStJrqHjesqg/pgA6WCSMiD9EdSZ +Df2c6UL+6mVlOxvy0Ug/SH4GGdHytVlFM/SlzZzxz0CYxAh5FSRzb1SZZ1K9hFDdV7g Rujg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=sv7n1QEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a190-20020a6390c7000000b005ac50a019b2si10432748pge.766.2023.11.15.13.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 13:37:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=sv7n1QEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E1D308098AD2; Wed, 15 Nov 2023 13:37:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235076AbjKOVht (ORCPT + 99 others); Wed, 15 Nov 2023 16:37:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjKOVhs (ORCPT ); Wed, 15 Nov 2023 16:37:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F50A7 for ; Wed, 15 Nov 2023 13:37:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D6A8C433C7; Wed, 15 Nov 2023 21:37:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1700084265; bh=TFoTHcEUNvXn3HPCw0gAhjtcUPXY2nHk/gab9kxZ9VE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sv7n1QElgb76rqGToIAUTZedLTS/X9qMA6j8l+9hRUdBY0E+pxb/5+Ltz7rkDnIgm zaONW59Qxi1ad6w0pkPNwKCkuqvuyEZ6MszSUEsBKesg37khLpOcLkGa8y4OBwsM1Y ERXZeEI2P2t2rBRKrjKPjthF4uRmzOYTheF+HgBg= Date: Wed, 15 Nov 2023 13:37:43 -0800 From: Andrew Morton To: Ryan Roberts Cc: Catalin Marinas , Will Deacon , Ard Biesheuvel , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Anshuman Khandual , Matthew Wilcox , Yu Zhao , Mark Rutland , David Hildenbrand , Kefeng Wang , John Hubbard , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 01/14] mm: Batch-copy PTE ranges during fork() Message-Id: <20231115133743.674690dc78041768b79fadd9@linux-foundation.org> In-Reply-To: <20231115163018.1303287-2-ryan.roberts@arm.com> References: <20231115163018.1303287-1-ryan.roberts@arm.com> <20231115163018.1303287-2-ryan.roberts@arm.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 13:37:54 -0800 (PST) On Wed, 15 Nov 2023 16:30:05 +0000 Ryan Roberts wrote: > However, the primary motivation for this change is to reduce the number > of tlb maintenance operations that the arm64 backend has to perform > during fork Do you have a feeling for how much performance improved due to this? Are there other architectures which might similarly benefit? By implementing ptep_set_wrprotects(), it appears. If so, what sort of gains might they see?