Re: negative dentries wasting ram

David Schwartz (davids@webmaster.com)
Fri, 24 May 2002 13:44:03 -0700


>In glibc 2.3 this will be open("/usr/lib/locale/locale-archive", ), so
>negative dentries won't be useful for glibc locale handling (that
>doesn't mean negative dentries won't be useful for other things, including
>exec?p or searching libraries if $LD_LIBRARY_PATH is used).
>
> Jakub

Web servers tend to look for all kinds of things that don't exist. For
example, if you hit "http://www.mydomain.com/foo" is there a file called
"foo" in the root document directory? Or is "foo" a directory with an
"index.html" file in it?

And what if index files can be "index.html", "index.htm", or "index.cgi"? A
single URL hit can easily involve looking for five files that don't exist
before you find the one that does.

Of course, some web servers have their own internal URL->file mapping
caches. The ideal solution would be to get rid of the negative dentries we
aren't using (much? recently?) when we want to get some more free memory.

DS

-
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/