Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp170185ybc; Fri, 22 Nov 2019 18:37:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxOhwv8MCe2EhfDd9nJJjScvfMFGWz1A6BVPAZqO9HHkMzZn7+cWtm9Ux0P+8vdGhKNUf0t X-Received: by 2002:a50:f096:: with SMTP id v22mr5305348edl.149.1574476637961; Fri, 22 Nov 2019 18:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574476637; cv=none; d=google.com; s=arc-20160816; b=Kp/ocOEeDlRZLw2oAl7nTz6Mhp2VOcnbpqYgz4YziwqncxAOSDglhHRttEnrO3cZrg u3FOVq9n+3rEpQAWrNZsU8mq3Glp5MaqKw/erbZx4hxrhcH2OoA/4aDXvJ6XWU7cQKkt /axxTEgPEzf4XZD3EtvlmAWFiofMp4tRPIvfezyS+fLdARZvTnz/ci41gQwyEJiK/cUW V2Ek2Q2DKqaMSLa4yYrPsiwrSpTNSM73T5kQfSq8VYLXXXlpu+PAerOzp18et4ntizSr W2nVJSzQttVasVel4v9HxmdO5r0qNP4FCzOnmxGqiRs1Rj1i4htcPnAVbB0vVXi1ynez 3CRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nPuduIsmzT4eyNy6AgYyeWm8a3lye8lEUGi+OFLWHQE=; b=Hic/JTyL+va44DoYsm/8cikYJLyu7+TpfUI/sTNE2bsL1S4iaxrr0uwXt4+/UTi0C/ n75aS87vQI4X8Pj19lzIVUN17MXBf7Lxx+lfjXoAN2j7U5qQQzAeuY2uCOUVr+oCOK+2 4ljOJg0WTppm9ymnzsYokLMJczc0ayX3ndLmupHZ/O1QoLyJ+6daAZmvlq9GmJO7kn8C ntB5ksj8Ckqx4kdLvvVJQXVrCdhvtS0m/G7tNE19HgOV9HocFtvD8VhcjDYfCIpu8ad9 DZ8EzrwCg4W83yT/tbZ1lu4VFFJsyl2uUbhO7aUxUKn2zugaBZcNCCIKBSLrA6OLw8BH s9JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UMaVsJij; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si942780edy.200.2019.11.22.18.36.53; Fri, 22 Nov 2019 18:37:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UMaVsJij; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726494AbfKWCdf (ORCPT + 99 others); Fri, 22 Nov 2019 21:33:35 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:57076 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfKWCde (ORCPT ); Fri, 22 Nov 2019 21:33:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nPuduIsmzT4eyNy6AgYyeWm8a3lye8lEUGi+OFLWHQE=; b=UMaVsJijpyg+a0E75vUQkK7rg XWQcUQCgvHIOltFSFQ8of0MXhAXTDQ+LEgp/aZPcsKfZWDNuJMxrT+JnVRsrnGPLN4ZTHWN/1P61s IRlUCeGaPjd+/enFAGSylVBReBSPyMYmb2poYTrDXEoIRo9Xdjp6/XFZp9AesW02vXhaItc8wJ/9q YKBaQA6k8wkdU9IdCLgjSxKrEJvzglgm7vDvCvdzkjRqsqpwUrqjCh9ObctTA1RPyVJQoU/4FQVXQ YZUp89zmv4AAxj9Sgx/hYqgCrKN0wB34ICyv7xwzPvoRtQWW68GhucrtJL9ijKCjACkcod6bd4vhd ves1wV+4w==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iYLEj-0004Ol-JZ; Sat, 23 Nov 2019 02:33:25 +0000 Date: Fri, 22 Nov 2019 18:33:25 -0800 From: Matthew Wilcox To: "zhengbin (A)" Cc: Hugh Dickins , viro@zeniv.linux.org.uk, linux-mm@kvack.org, linux-kernel@vger.kernel.org, houtao1@huawei.com, yi.zhang@huawei.com, "J. R. Okajima" , Eric Dumazet Subject: Re: [PATCH] tmpfs: use ida to get inode number Message-ID: <20191123023325.GY20752@bombadil.infradead.org> References: <1574259798-144561-1-git-send-email-zhengbin13@huawei.com> <20191120154552.GS20752@bombadil.infradead.org> <1c64e7c2-6460-49cf-6db0-ec5f5f7e09c4@huawei.com> <5423a199-eefb-0a02-6e86-1f6210939c11@huawei.com> <20191122221327.GW20752@bombadil.infradead.org> <77f67d7a-4a93-4319-e6af-54daffcc37e2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77f67d7a-4a93-4319-e6af-54daffcc37e2@huawei.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 23, 2019 at 10:16:39AM +0800, zhengbin (A) wrote: > By the way, percpu IDA is for reducing performance impact? This patch has 2.16% > performance degradation(Use perf to get the cost of ida_alloc_range) 2.16% degradation in your tests ... I bet Eric didn't make it so complex for only 2% performance impact. Unfortunately, he didn't give any numbers in his patch submission, but it's going to be a bigger problem on multi-socket machines than on a laptop. Eric, any memories from 2010? Commit f991bd2e14210fb93d722cb23e54991de20e8a3d if it helps.