On 12/9/12 11:02 PM, Aleksey Kluchnikov wrote:
* [email protected] <[email protected]> [2012-12-09 00:47:51 +0800]:
We use ATS on freebsd (6Gb RAM) for tens millions requests at day.
We have to reboot it twise at day becouse of memmory waste.
That sounds more like a memory leak. What the Taobao patch tries to solve is
the case where if you have a very large spike in requests / connections,
memory usage will go up to handle that, but then never releases that memory.
One thing that I still don't understand is how this actually helps a whole
lot. For example, if the system has to allocate 10GB of RAM to handle a
traffic spike, and this patch later reduces that to 6GB, what are you using
that "freed" 4GB of RAM for? You can't allocate it for something else if you
ever want to handle that same size spike that brought you up to 10GB.
What would make sense is to change how we throttle on connections, such that
we don't let the freelist's go above a certain thresshold even at spikes.
But, then again, I'm probably missing something here...
-- Leif