I have been sitting on some changes to veriexec for ~ years that change it from locking everything to using reference counts and condition variables which removes some nasty hacks I did. I have not committed the changes because the kernel would sometimes deadlock and I was having trouble tracking down why. Perhaps I was looking in the wrong spot for the error and it was fileassoc all along that was causing the deadlock.
----- Original Message -----
From:
"Mindaugas Rasiukevicius" <rmind%netbsd.org@localhost>
To:
"Jason Thorpe" <thorpej%me.com@localhost>
Cc:
<tech-kern%NetBSD.org@localhost>
Sent:
Fri, 10 Aug 2018 00:12:23 +0100
Subject:
Re: 8.0 performance issue when running build.sh?
Jason Thorpe <thorpej%me.com@localhost> wrote:
>
>
> > On Aug 9, 2018, at 10:40 AM, Thor Lancelot Simon <tls%panix.com@localhost> wrote:
> >
> > Actually, I wonder if we could kill off the time spent by fileassoc. Is
> > it still used only by veriexec? We can easily option that out of the
> > build box kernels.
>
> Indeed. And there are better ways to do what veriexec does, in any case.
>
Many years ago I wrote a diff to make fileassoc MP-safe:
http://www.netbsd.org/~rmind/fileassoc.diff
If somebody wants to finish -- I am glad to help.
--
Mindaugas