Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4853497pxb; Tue, 5 Oct 2021 11:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzI+1ox25h9MhAP4dtfXY4YjxuLw9UhzSlaPMasF7V9J0njCZK2GggfwxgssVpaaYIdQcPs X-Received: by 2002:a50:be8a:: with SMTP id b10mr3048552edk.235.1633459454721; Tue, 05 Oct 2021 11:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633459454; cv=none; d=google.com; s=arc-20160816; b=RoflzPQI3pXAk7gKroqlMdh2wrMkJGbvMrnBHLdYVRQYzMjHOSlyJLQ8XEli1pU3uE uO0vNuEMsZG6PG2Ve5iTUi97wYKQiALJRZkwd0Jm3Y/wvKYZAC29HTGt3tFvnCXmQUM1 YcqOBvyh5Fxd1hS3+sgUF9TMQk78smnfxGw/CQZzWlE/VzzkYvRhjfg2Nihoow/rm/Tv jhO/PUDlr4rbj33N2GczjvTHrBOdG0sGXLQDcRF7Pazwnz4NrpJFqYMsJYY09ozUY44j H2vDbhXDOqBBaOcCfhzfPfWDXRUl3VJHcEjU7NwjCdjswcvzIDNwldyENwe1QyUuobIU 7qIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=iqeOX5O8iwE2cw56KG+NQAwP2WLH/4mG8NRNIvSXVnA=; b=vMrmUICvRt8Y/jzX9St0fH2i6Fee3ialRrYLOyDJTTj73tTZCns2y9qsNawdVcm8lI VnJfjLH0Cc4ysxhEGwe0CwB3SLy4OV7z6RQDp9v1XmrzcHwXYVLZY7EOEAfzCrfDYuV4 T+Kp4X3ISWRhar7eIW8v/lnbOb3cBFh/tlVjZTvCY2Uxxj0Zn8KXEwiqNv7mKjrpNzKN 18r0xYHcgtAZHzs8dM9g/Rv2hOLAAsljG1w5/2L/lPTsiHZtrCp4HDS0SEocLfV4EU/0 MR9nBf7UoE2cJk8MCJkaMh51X42b64nTinI3WzoP/JfSKNJAkzjthHBJZZnfuVQTC1/f pWQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si18893488edm.248.2021.10.05.11.43.50; Tue, 05 Oct 2021 11:44:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231858AbhJESoF (ORCPT + 99 others); Tue, 5 Oct 2021 14:44:05 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:40552 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbhJESoE (ORCPT ); Tue, 5 Oct 2021 14:44:04 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id CF8431C0B80; Tue, 5 Oct 2021 20:42:11 +0200 (CEST) Date: Tue, 5 Oct 2021 20:42:11 +0200 From: Pavel Machek To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, ccross@google.com, sumit.semwal@linaro.org, mhocko@suse.com, dave.hansen@intel.com, keescook@chromium.org, willy@infradead.org, kirill.shutemov@linux.intel.com, vbabka@suse.cz, hannes@cmpxchg.org, corbet@lwn.net, viro@zeniv.linux.org.uk, rdunlap@infradead.org, kaleshsingh@google.com, peterx@redhat.com, rppt@kernel.org, peterz@infradead.org, catalin.marinas@arm.com, vincenzo.frascino@arm.com, chinwen.chang@mediatek.com, axelrasmussen@google.com, aarcange@redhat.com, jannh@google.com, apopple@nvidia.com, jhubbard@nvidia.com, yuzhao@google.com, will@kernel.org, fenghua.yu@intel.com, thunder.leizhen@huawei.com, hughd@google.com, feng.tang@intel.com, jgg@ziepe.ca, guro@fb.com, tglx@linutronix.de, krisman@collabora.com, chris.hyser@oracle.com, pcc@google.com, ebiederm@xmission.com, axboe@kernel.dk, legion@kernel.org, eb@emlix.com, gorcunov@gmail.com, songmuchun@bytedance.com, viresh.kumar@linaro.org, thomascedeno@google.com, sashal@kernel.org, cxfcosmos@gmail.com, linux@rasmusvillemoes.dk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, kernel-team@android.com Subject: Re: [PATCH v10 3/3] mm: add anonymous vma name refcounting Message-ID: <20211005184211.GA19804@duo.ucw.cz> References: <20211001205657.815551-1-surenb@google.com> <20211001205657.815551-3-surenb@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20211001205657.815551-3-surenb@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2021-10-01 13:56:57, Suren Baghdasaryan wrote: > While forking a process with high number (64K) of named anonymous vmas the > overhead caused by strdup() is noticeable. Experiments with ARM64 Android I still believe you should simply use numbers and do the numbers->strings mapping in userspace. We should not need to optimize strdups in kernel... Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYVycgwAKCRAw5/Bqldv6 8ldxAJ42e5af3RsjK7JWO3GXzU8KdW/AEACePslf94VkISUgVCg0Ezu8/5NcUbg= =46UI -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--