Re: more mem for dirhash

2019-02-21 Thread Mark Kettenis
> From: "Ted Unangst" > Date: Thu, 21 Feb 2019 17:25:09 -0500 > > Jeremie Courreges-Anglas wrote: > > I may be naive, but shouldn't dirhash memory be accounted with/like > > buffer cache memory (freed when other sybsystems need it)? > > Probably. The limit exists in part because there is no back

Re: more mem for dirhash

2019-02-21 Thread Ted Unangst
Jeremie Courreges-Anglas wrote: > I may be naive, but shouldn't dirhash memory be accounted with/like > buffer cache memory (freed when other sybsystems need it)? Probably. The limit exists in part because there is no backpressure.

Re: more mem for dirhash

2019-02-21 Thread Jeremie Courreges-Anglas
On Thu, Feb 21 2019, "Todd C. Miller" wrote: > On Wed, 20 Feb 2019 17:00:23 -0500, "Ted Unangst" wrote: > >> I picked a new limit of 5MB. This allows for my one very large directory, a >> few additional directories, and some spare room. It's also still reasonably >> conservative imo. > > Yes pleas

Re: more mem for dirhash

2019-02-21 Thread Todd C . Miller
On Wed, 20 Feb 2019 17:00:23 -0500, "Ted Unangst" wrote: > I picked a new limit of 5MB. This allows for my one very large directory, a > few additional directories, and some spare room. It's also still reasonably > conservative imo. Yes please, this makes a huge difference with my email dirs ;-)

more mem for dirhash

2019-02-20 Thread Ted Unangst
UFS dirhash has a limit on how much memory is used to prevent runaway allocations. I believe the default limit (2MB) is rather conservative. It was picked to avoid causing trouble back when machines were tiny and dirhash was new. For example, a maildir with 100K files takes about 3MB of memory. Be