Re: [PATCH][SMB3] allow controlling length of time directory entries are cached with dir leases

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

 



I also noticed that Windows apparently lets you control the size of
the directory entry cache (the file info cached for directories). See
below:

DirectoryCacheEntrySizeMax
HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DirectoryCacheEntrySizeMax
The default is 64 KB. This is the maximum size of directory cache entries.

Should we add a tuneable similar to this (per mount? per system?)

On Fri, Sep 1, 2023 at 5:20 PM Steve French <smfrench@xxxxxxxxx> wrote:
>
> On Fri, Sep 1, 2023 at 11:31 AM ronnie sahlberg
> <ronniesahlberg@xxxxxxxxx> wrote:
> >
> > Maybe just re-set the timestamp every time the cached directory is reopened,
> > that way a hot directory will remain in cache indefinitely but one
> > that is cold will
> > quickly time out and make space for something else to be chaced.
>
>
> Makes sense
>
>
> --
> Thanks,
>
> Steve



-- 
Thanks,

Steve




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

  Powered by Linux