From: Eric Dumazet Subject: Re: [PATCH] fs/proc: Move kfree outside pde_unload_lock Date: Fri, 24 Aug 2012 16:58:31 +0200 Message-ID: <1345820311.4824.2.camel@edumazet-laptop> References: <1345653510-22000-1-git-send-email-nzimmer@sgi.com> <1345660110.5158.1969.camel@edumazet-glaptop> <1345671778.5158.2369.camel@edumazet-glaptop> <20120824144852.GA18850@gulag1.americas.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, adobriyan@gmail.com, Alexander Viro , David Woodhouse To: Nathan Zimmer Return-path: In-Reply-To: <20120824144852.GA18850@gulag1.americas.sgi.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Le vendredi 24 ao=C3=BBt 2012 =C3=A0 09:48 -0500, Nathan Zimmer a =C3=A9= crit : > On Wed, Aug 22, 2012 at 11:42:58PM +0200, Eric Dumazet wrote: > > On Wed, 2012-08-22 at 20:28 +0200, Eric Dumazet wrote: > >=20 > > >=20 > > > Thats interesting, but if you really want this to fly, one RCU > > > conversion would be much better ;) > > >=20 > > > pde_users would be an atomic_t and you would avoid the spinlock > > > contention. > >=20 > > Here is what I had in mind, I would be interested to know how it he= lps a 512 core machine ;) > >=20 >=20 > Here are the results and they look great. >=20 > cpuinfo baseline moved kfree Rcu=20 > tasks read-sec read-sec read-sec > 1 0.0141 0.0141 0.0141 > 2 0.0140 0.0140 0.0142 > 4 0.0140 0.0141 0.0141 > 8 0.0145 0.0145 0.0140 > 16 0.0553 0.0548 0.0168 > 32 0.1688 0.1622 0.0549 > 64 0.5017 0.3856 0.1690 > 128 1.7005 0.9710 0.5038 > 256 5.2513 2.6519 2.0804 > 512 8.0529 6.2976 3.0162 >=20 >=20 >=20 Indeed... Could you explicit the test you are actually doing ? Thanks