I think you are right. each connection will contain a conn.a conn contain many data. I guess a conn is about 5KB by add the data of struct conn. so, the more connections, the more memory is needed.
-- Blog: http://www.chenzongzhi.info Twitter: https://twitter.com/baotiao Git: https://github.com/baotiao On 2012-3-8, at 上午8:40, Wendy Cheng wrote: > As part of the tuning work, it is noticed that the maximum connection > count is controlled by "settings.maxconns". There is a comment next to > the default setting: > > settings.maxconns = 1024; /* to limit connections-related > memory to about 5MB */ > > I'm wondering how the 5MB was calculated. Could I assume that if I > allow 2048 connections, then the network would take ~10MB :) ? > > Thanks, > Wendy
