Geoip cache options patch

Igor Sysoev igor at sysoev.ru
Mon Dec 20 21:59:40 MSK 2010


On Mon, Dec 20, 2010 at 09:41:28PM +0300, Igor Sysoev wrote:

> On Mon, Dec 20, 2010 at 01:29:20PM -0500, Akins, Brian wrote:
> 
> > The attached patch allows you to change the geoip cache option in the
> > config.  For example:
> > 
> > geoip_country /usr/share/GeoIP/GeoIP.dat mmap;
> > 
> > Will use GEOIP_MMAP_CACHE.  The default is memory ( GEOIP_MEMORY_CACHE ),
> > the same as today.  The mmap option can make a large difference in memory
> > usage when using the large city data files.
> 
> Thank you for the patch.
> How large bases do you use ? As far as I remember MaxMind bases are too

Sorry, typo: are NOT too big, of course.

> big, at least no more than 50M. I think this is not big issue to keep
> it entirely in memory.


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx-devel mailing list