* Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:
I'm not very familiar with the -rt tree, but possibly what should be happening, if interrupts are executed in process context and allowed to schedule, is that their memory allocations should also be allowed to reclaim memory.
indeed - very good point. Emin, could you try the patch below [which isnt a full solution but should be a good first approximation], does it make any difference?
OTOH, I guess for a deterministic realtime system, you need to allocate fixed minimum amounts of memory for each element of the system so you never run out like this.
yeah, preallocation is pretty much the only way to go for deterministic workloads. Still, networking (and other complex subsystems) can still be used in parallel to deterministic tasks - and those should not be starved easier when PREEMPT_RT is enabled. In fact, with the patch below it could become much more robust - we could in fact achieve to never fail an allocation due to being in an atomic context.