Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760629AbXEaJgA (ORCPT ); Thu, 31 May 2007 05:36:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758056AbXEaJfw (ORCPT ); Thu, 31 May 2007 05:35:52 -0400 Received: from brick.kernel.dk ([80.160.20.94]:29035 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757400AbXEaJfv (ORCPT ); Thu, 31 May 2007 05:35:51 -0400 Date: Thu, 31 May 2007 11:34:51 +0200 From: Jens Axboe To: Ingo Molnar Cc: Linus Torvalds , Davide Libenzi , Ulrich Drepper , Jeff Garzik , Zach Brown , Linux Kernel Mailing List , Arjan van de Ven , Christoph Hellwig , Andrew Morton , Alan Cox , Evgeniy Polyakov , "David S. Miller" , Suparna Bhattacharya , Thomas Gleixner Subject: Re: Syslets, Threadlets, generic AIO support, v6 Message-ID: <20070531093449.GN32105@kernel.dk> References: <465D286E.2080807@redhat.com> <20070530084252.GA15708@elte.hu> <465DE992.6070803@redhat.com> <20070531061303.GA4436@elte.hu> <20070531093202.GA4784@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070531093202.GA4784@elte.hu> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 29 On Thu, May 31 2007, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > (i definitely remember having written code for that too, but i cannot > > find that in the archives. hm.) In theory we could avoid _all_ > > fd-bitmap overhead as well and use a per-process list/pool of struct > > file buffers plus a maximum-fd field as the 'non-linear fd allocator' > > (at the price of only deallocating them at process exit time). > > btw., this also allows mostly-lockless fd allocation, which would > probably benefit threaded apps too. (we can just recycle it from a > per-CPU list of cached fds for that process) See also: http://lkml.org/lkml/2006/6/16/144 which originates from a much simpler patch I did to fix performance regressions in this area for the SLES10 kernel. -- Jens Axboe - 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/