> > speedup: i suggested O_ANY 6 years ago as a speedup to Apache -
> > non-linear fds are cheaper to allocate/map:
> >
> >
http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg23820.html
> >
> > (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).
>
> Only very few apps need to open more than 100.000 files.