forgot one more compiletime flag

2 views
Skip to first unread message

c...@mud.ro

unread,
Oct 11, 2008, 5:44:44 AM10/11/08
to geoipdns-users
-DUSE_TOUCH_RELOADS=1
if a freak mind wants just to reload the data into tinydns without
rebuilding the feeds, do touch data.cdb from shell. if
USE_TOUCH_RELOADS is enabled the event will be catched and processed.

c...@mud.ro

unread,
Oct 11, 2008, 5:49:57 AM10/11/08
to geoipdns-users
compiletimeflags, revisited:


so anyway im recommending these compiletime flags:
-DUSE_LOCMAPS only if one wants to use ipdb lookups. if you dont need
ipdblookups you still gain speed with this patch since it contains a
lot of things not only ipdblookup stuff. in original tinydns ip is
searched for every request (4 db lookups) either you want it or not.
-DUSE_TOUCH_RELOADS only if you want to force reloading data.cdb into
memory by touching it
-DUSE_SFHASH - use this. its faster and you get less hashtable
collisions and more elements with shorter distances



-DHAVE_MMAP_READAHEAD - better dont use this. read the mmap(2) page
see if it is of any help to you. to be honest i just saw it there and
included it in mmap() call if one will need it
Reply all
Reply to author
Forward
0 new messages