Hacker News new | ask | show | jobs
by austin-cheney 2 days ago
Understanding the implications of queue management on memory performance taught me two things over the past few months.

1. By taking this more seriously I increased the message send speed of my WebSocket library 8x.

2. The paper mentions Utilization Curve as the most important factor and the paper is completely right. I found that, without bounds checking, as memory fills as a percentage of total capacity CPU utilization rises exponentially until an application locks the OS. The best solution in my garbage collected application was to help tell it what to forcefully garbage collect when a parent object closes.

1 comments

100% yes. As your arrivals increase toward a capacity limit, the utilization curve races upward super-linearly to infinity. Your description of lock contention is a perfect example. Forceful collection is a good pre-failure tactic, and if things get really out of control an OOM-killer equivalent can help as a post-failure tactic.