PREEMPT_NONE Is Dead; Your Postgres Probably Doesn’t Care

29 points by kngl


hailey

I'm still not convinced you ever really want to use spinlocks in userland.

They are a serialization technique that only the kernel has the right vantage point to use correctly, in userland you are better off informing the kernel of your intentions (whether with rseq, or locks if rseq is unavailable) so that it can make effective scheduling decisions.