Bravo to CDN77 for tracking this down.
But limiting TCP socket memory use on a cgroup that could have TB of memory available to it and is not under memory pressure - WTF? The global kernel algorithm for socket memory still applies, so why have this extra socket limit on a cgroup when the user hasn't constrained the cgroup's memory?
We regularly see posts from kernel devs sweating blood to squeeze an extra couple of % of performance under some rare circumstances, yet here we have a process being throttled by more than 80% for no good reason. This has got to be one of the most egregious kernel performance bugs I've seen in a long time. And it's been this way for 11 years.