Geoip cache options patch

Akins, Brian Brian.Akins at turner.com
Tue Dec 21 02:24:26 MSK 2010


On 12/20/10 5:56 PM, "Eugaia" <ngx.eugaia at gmail.com> wrote:

> Each worker process will see virtual data usage of 50MB for the data,
> but unless I'm mistaken, the overall system usage should still only be
> 50MB because the data is shared in the same physical memory by the OS
> until such a time that it's changed (which it won't unless you re-read
> the config, and in which case it would change for all worker processes).

I think with the memory cache it reads the entire geoip datafile into memory
for each worker process - and the memory shows as resident for each process.
At least when I switched to using mmap cache, the memory moved from resident
to shared.

-- 
Brian Akins




More information about the nginx-devel mailing list