tech-kern archive

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

Re: Call for testers - Audio improvements for NetBSD 8.1



On Sat, Jun 23, 2018 at 06:15:34PM +0700, Robert Elz wrote:
>     Date:        Sat, 23 Jun 2018 10:49:51 +0200
>     From:        Manuel Bouyer <bouyer%antioche.eu.org@localhost>
>     Message-ID:  <20180623084951.GA3921%antioche.eu.org@localhost>
> 
> Unrelated to the topic, but ...
> 
>   | The kernel has a limited number of softints, 
> 
> Why?

It was simpler that way ;-)

Auto-scaling is not trivial (per cpu data, can not easily be updated 
at the moment it is first needed), but doable.

I would count the number of reqeuted softints at cpu_hatch time, add a bit
of slope, and later always double the allocation when running out. You can
never hit a softint not yet allocated on a cpu that did not do the
extension of the allocation yet.

Martin


Home | Main Index | Thread Index | Old Index