Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757909AbZKCD6R (ORCPT ); Mon, 2 Nov 2009 22:58:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757884AbZKCD6P (ORCPT ); Mon, 2 Nov 2009 22:58:15 -0500 Received: from kroah.org ([198.145.64.141]:46080 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757862AbZKCD6O (ORCPT ); Mon, 2 Nov 2009 22:58:14 -0500 Date: Mon, 2 Nov 2009 19:50:58 -0800 From: Greg KH To: Benjamin LaHaise Cc: Eric Dumazet , "Eric W. Biederman" , Octavian Purdila , netdev@vger.kernel.org, Cosmin Ratiu , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] sysfs directory scaling: rbtree for dirent name lookups Message-ID: <20091103035058.GA19515@kroah.com> References: <20091101163130.GA7911@kvack.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091101163130.GA7911@kvack.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 21 On Sun, Nov 01, 2009 at 11:31:30AM -0500, Benjamin LaHaise wrote: > Use an rbtree in sysfs_dirent to speed up file lookup times > > Systems with large numbers (tens of thousands and more) of network > interfaces stress the sysfs code in ways that make the linear search for > a name match take far too long. Avoid this by using an rbtree. What kind of speedups are you seeing here? And do these changes cause a memory increase due to the structure changes which outweigh the speedups? What kind of test are you doing to reproduce this? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/