On Thu, Apr 11, 2024 at 03:36:29PM +0200, Federico Giannici wrote:
> On 4/11/24 14:12, Nick Holland wrote:
> > On 4/11/24 05:47, Federico Giannici wrote:
> > > We have a server with A LOT of files in some directories (an email
> > > server in maildir format).
> > > 
> > > Since we upgraded from OpenBSD amd64 7.3 to 7.5 (passing through 7.4) it
> > > became very very very slow to access these large directories!
> > ,,,
> > You may be being bitten by the removal of softdeps (soft updates)
> > in 7.4 more than the availability of a knob to twist.  This was a
> > huge hit for some things -- I had one backup job go from a couple
> > hours to eight or so hours.  However, it turned out that increase
> > in time has not inconvenienced me at all, and some random lockups
> > related to softdeps have gone away.  Overall, win for me (the
> > fscks after a lockup took hours, too, not to mention all the time
> > and effort spent replacing part after part assuming it was a HW
> > issue).
> > 
> > As I understand it...there were known (known unknown?) bugs in the
> > softdep code, the code was ugly, and it made it difficult to
> > actually improve the code.
> 
> No, we knew that softdeps were being deprecated and we removed from
> everywhere some time ago. It must be something else.
> 
> Anyway, it's strange that dirhash parameters has being changed and removed
> without any mention...

It was not (this is on -current amd64):
vfs.ffs.dirhash_dirsize=2560
vfs.ffs.dirhash_maxmem=5242880
vfs.ffs.dirhash_mem=4832510

Are you sure your kernel and userland are in sync?
-- 
:wq Claudio

Reply via email to