Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Memory Pool (4 replies)

$
0
0
Nginx when it accepts a connection, it creates a memory pool for that connection (allocating from heap). After which further memory requirement for that connection will be allocated from that pool. This is good.
But, why don't we pre create the memory pools depending upon the number of connections and use that pool. In the current approach if some connections are coming up going down., we will be allocating and freeing to heap frequently.

Can someone please clarify why this has been done like this?

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>