Re: sysctl is too slow

From: Joerg Sonnenberger <>
Date: Tue, 17 Aug 2021 00:05:25 +0200
On Tue, Aug 17, 2021 at 12:03:45AM +0200, Joerg Sonnenberger wrote:
> On Mon, Aug 16, 2021 at 09:30:51PM +0200, Mateusz Guzik wrote:
> > Last time I checked lookup of a sysctl was very bad with linear scans all over.
> > 
> > Short of complete revamp of the entire thing I would start with
> > replacing the scans with a RB tree at each level. As is if you indeed
> > have 5000 datasets, you are doing increasingly longer walks.
> The RB tree is what NetBSD is doing.

Sorry, it is what it should have been doing. I wonder if I am bored
enough to implement the shuffling now...

Received on Mon Aug 16 2021 - 22:05:25 UTC

Original text of this message