lkml.org 
[lkml]   [1996]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectThings that make you go "Hmmm"
Date
From

I was just thinking about something with VFAT and how ppl have mentioned how
doing a simple 'ls' is slow. I was browsing the 'fs/dcache.c' code and wondered
if this might be why. [I realize FAT has its own cache, but I think it still
uses dcache (?). I haven't looked at it closely enough to know. (Since this
just popped in my head anyway)]

Code snippet from dcache.c:

/*
* Don't bother caching long names.. They just take up space in the cache, and
* for a name cache you just want to cache the "normal" names anyway which tend
* to be short.
*/
#define DCACHE_NAME_LEN 15
#define DCACHE_SIZE 128

For the sake of experimentation, I'm going to increase the NAME_LEN on my
machine and see if it makes a difference.

You know, those numbers above might be a handy /proc tunable entry.
I might just do that too. :)




\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.022 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site