Re: [PATCH] cifs: Add a laundromat thread for cached directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 7 Jul 2023 at 16:37, Shyam Prasad N <nspmangalore@xxxxxxxxx> wrote:
>
> On Fri, Jul 7, 2023 at 11:20 AM ronnie sahlberg
> <ronniesahlberg@xxxxxxxxx> wrote:
> >
> > We can only cache a limited amount of entries.
> > We need to force entries to be dropped from the cache at regular
> > intervals to make room for potential new entries/different
> > directories.
> >
> > Access patterns change over time and what is the "hot" directory will
> > also change over time so we need to drop entries to make sure that
> > when some directory becomes hot there will be decent chance that it
> > will be able to become cached.
> >
> > If a directory becomes "cold" we no longer want it to take up entries
> > in our cache.
> >
>
> Makes sense.
>
> However, the value of MAX_CACHED_FIDS to 16 seems very restrictive.
> And as Steve suggested, 30s expiry seems very aggressive.
> I think we can increase both.

We can and should increase it at some stage but lets keep it small and
short for now until we feel confident it is all stable.
Once we are confident it is good we can increase these quite a bit.




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux