HomeFreeBSD

linuxkpi: guarantee allocations of task and mm for interrupt threads

Description

linuxkpi: guarantee allocations of task and mm for interrupt threads

Create and use zones for task and mm. Reserve items in zones based on the
estimation of the max number of interrupts in the system. Use M_USE_RESERVE
to allow to take reserved items when allocation occurs from the interrupt
thread context.

Of course, this would only work first time we allocate the task for
interrupt thread. If interrupt is deallocated and allocated anew,
creating a new thread, it might be that zone is depleted. It still
should be good enough for practical uses.

Reviewed by: hselasky
Sponsored by: Mellanox Technologies/NVidia Networking
MFC after: 1 week

Details

Provenance
kibAuthored on Mar 11 2021, 6:34 AM
Parents
rG4ce1f6162e9e: linuxkpi: some style, wrap too long lines
Branches
Unknown
Tags
Unknown