Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9805515rwl; Wed, 11 Jan 2023 10:10:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0GGbOdR7bAAs7Mnh38p6q5xUEp/iL43zFwgDCMfTnnYtGQMJ4whFdFAy9lhEVsBAaGl6i X-Received: by 2002:a50:ef12:0:b0:499:c516:fc41 with SMTP id m18-20020a50ef12000000b00499c516fc41mr5944455eds.36.1673460632342; Wed, 11 Jan 2023 10:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673460632; cv=none; d=google.com; s=arc-20160816; b=JtLI6uaAQnzYmEKp+pJTSwzYginikwK4A0tB/fC7M7kmtpdpeNa7XF7T/FBWuj9W8y jTO2+i13hBgss5SRsOutGx/sZR81zsoTFgjy9DIF9jGb9AXVpZcQ/+1ZXhi6pKkMACj9 QzsG2ALGQ8cBb5OxxUQQd5TFRrIAkxnkobX0mwS82tSiQxt0ZYcxDtamp3yzyPLuXWCx CVSy0tM/yAgngGotdu+zYSUp6jsZKQCvA7hxoy9BzTJDrQKeiHUg/lWa7uGZ+6uPsJwB uh0NxH6Qld+5QPGgaqT3AwlpxYkACA276yBwH5/cPjCLtyiKBjEVeidbfor2S6Yyk+Ep Miuw== 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=g2TS0UNExVN4AiesqATrfgArdGM2yjQzXweTQoVYk+4=; b=O7Q0N7Kor9qTJQA7xw44uO8GIpM/bYqNed63MeG2fV1mYpOUm0LnEcT5BEPRGMs8Nd 2zMw0mkl/M0jVDaPDCrk+ulHoinGcvftp1fMmLCSqtDW3YhjcVAIQuNPbhBZCMIB5EgO xBqwHh65l8u4CYTEDl7ynHuSUKx0wxfrr5Jw+qB/9CppfbQZh1wENXwDMGXBJsHrfFSQ neaAc2PdZM6njpZhno8QyoCMUjSZalOh/kZVyYhreaHbeZZ79cEAA3QXcBIIjvf9rQTI PK9bRvCMgJLvXtPO9OVubVNhoj0KARWmoNAMVRf/A5q3pJ4vhDLbk6cgwufdDHZEfMQk jgYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Yn8hj86p; 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 g15-20020a056402320f00b0046f9bcabfe6si14557061eda.601.2023.01.11.10.10.19; Wed, 11 Jan 2023 10:10:32 -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=Yn8hj86p; 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 S235022AbjAKRmn (ORCPT + 51 others); Wed, 11 Jan 2023 12:42:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239175AbjAKRiV (ORCPT ); Wed, 11 Jan 2023 12:38:21 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6296121AE for ; Wed, 11 Jan 2023 09:37:19 -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-out2.suse.de (Postfix) with ESMTPS id 627A44F8A; Wed, 11 Jan 2023 17:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1673458626; 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=g2TS0UNExVN4AiesqATrfgArdGM2yjQzXweTQoVYk+4=; b=Yn8hj86p+46x9S4HNw1QqQPot25eIVF1vtcZdtFRgk6ea828Wen47zYGgYSAcxDnOc2BCo GyFUYYhexK1ScR3aPadwjYicNXlzB4Hka9Z5g14S1Ik/dyJIDxBDrr9kbBG4qEtMqm+oqK 4L+petp0kIaDXCYVHSD4mgnMFCh4D58= 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 37AEA13591; Wed, 11 Jan 2023 17:37:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2TGRDcLzvmMkdwAAMHmgww (envelope-from ); Wed, 11 Jan 2023 17:37:06 +0000 Date: Wed, 11 Jan 2023 18:37:05 +0100 From: Michal Hocko To: Suren Baghdasaryan Cc: David Laight , Ingo Molnar , "michel@lespinasse.org" , "joelaf@google.com" , "songliubraving@fb.com" , "leewalsh@google.com" , "david@redhat.com" , "peterz@infradead.org" , "bigeasy@linutronix.de" , "peterx@redhat.com" , "dhowells@redhat.com" , "linux-mm@kvack.org" , "edumazet@google.com" , "jglisse@google.com" , "punit.agrawal@bytedance.com" , "arjunroy@google.com" , "minchan@google.com" , "x86@kernel.org" , "hughd@google.com" , "willy@infradead.org" , "gurua@google.com" , "laurent.dufour@fr.ibm.com" , "linux-arm-kernel@lists.infradead.org" , "rientjes@google.com" , "axelrasmussen@google.com" , "kernel-team@android.com" , "soheil@google.com" , "paulmck@kernel.org" , "jannh@google.com" , "liam.howlett@oracle.com" , "shakeelb@google.com" , "luto@kernel.org" , "gthelen@google.com" , "ldufour@linux.ibm.com" , "vbabka@suse.cz" , "posk@google.com" , "lstoakes@gmail.com" , "peterjung1337@gmail.com" , "linuxppc-dev@lists.ozlabs.org" , "kent.overstreet@linux.dev" , "hughlynch@google.com" , "linux-kernel@vger.kernel.org" , "hannes@cmpxchg.org" , "akpm@linux-foundation.org" , "tatashin@google.com" Subject: Re: [PATCH 08/41] mm: introduce CONFIG_PER_VMA_LOCK Message-ID: References: <20230109205336.3665937-1-surenb@google.com> <20230109205336.3665937-9-surenb@google.com> <20230111001331.cxdeh52vvta6ok2p@offworld> <6be809f5554a4faaa22c287ba4224bd0@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed 11-01-23 09:04:41, Suren Baghdasaryan wrote: > On Wed, Jan 11, 2023 at 8:44 AM Michal Hocko wrote: > > > > On Wed 11-01-23 08:28:49, Suren Baghdasaryan wrote: > > [...] > > > Anyhow. Sounds like the overhead of the current design is small enough > > > to remove CONFIG_PER_VMA_LOCK and let it depend only on architecture > > > support? > > > > Yes. Further optimizations can be done on top. Let's not over optimize > > at this stage. > > Sure, I won't optimize any further. > Just to expand on your question. Original design would be problematic > for embedded systems like Android. It notoriously has a high number of > VMAs due to anonymous VMAs being named, which prevents them from > merging. What is the usual number of VMAs in that environment? -- Michal Hocko SUSE Labs