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 <[email protected]> > Message-ID: <[email protected]> > > 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
