# How GeoIP database stored in memory?

**URL:** <https://www.ruby-forum.com/t/how-geoip-database-stored-in-memory/208995>\
**Category:** NGINX\
**Created:** [July 2, 2011, 2:49am UTC](https://www.ruby-forum.com/t/how-geoip-database-stored-in-memory/208995 "2011-07-02T02:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 2, 2011, 2:49am UTC](https://www.ruby-forum.com/t/how-geoip-database-stored-in-memory/208995/1 "2011-07-02T02:49:43Z")

</div>

I use nginx with N worker processes.  
GeoIP City database is pretty big, how does it stored in memory ? Is  
every worker process have it’s own geoip database ? Or are the using  
shared memory ? How does it work?

Posted at Nginx Forum:

> **[How GeoIP database stored in memory?](https://forum.nginx.org/read.php?2,211698,211698#msg-211698)**
>
> I use nginx with N worker processes. GeoIP City database is pretty big, how does it stored in memory ? Is every worker process have it's own geoip database ? Or are the using shared memory ? How does it work?

---

<div class="post-metadata">

**Author:** ![temma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@temma](https://www.ruby-forum.com/u/temma)\
**Post date:** [July 2, 2011, 9:52am UTC](https://www.ruby-forum.com/t/how-geoip-database-stored-in-memory/208995/2 "2011-07-02T09:52:56Z")

</div>

Hello!

On Fri, Jul 01, 2011 at 08:49:05PM -0400, temma wrote:

> I use nginx with N worker processes.  
> GeoIP City database is pretty big, how does it stored in memory ? Is  
> every worker process have it’s own geoip database ? Or are the using  
> shared memory ? How does it work?

Already replied in Russian list, in short: it’s loaded to memory  
on configuration parsing and inherited by workers on fork(). Very  
much like any other configuration.

Maxim D.
