In general the linux kernel seems extremely badly behaved under ram pressure, see how it reacts to swapping.
So, it was over some threshold that the kernel decided it was time to start reclaiming all those entries and locked up the entire server while it was doing so. Madness.