Mark Bergsma has uploaded a new change for review.
https://gerrit.wikimedia.org/r/54651
Change subject: Use GEOIP_MMAP_CACHE instead of GEOIP_MEMORY_CACHE
......................................................................
Use GEOIP_MMAP_CACHE instead of GEOIP_MEMORY_CACHE
Let's see how this affects memory usage...
Change-Id: I76e376aa81f7b1f359d6ea1ef7a471ac9de7869a
---
M templates/varnish/geoip.inc.vcl.erb
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/51/54651/1
diff --git a/templates/varnish/geoip.inc.vcl.erb
b/templates/varnish/geoip.inc.vcl.erb
index cfbac67..c5d2d68 100644
--- a/templates/varnish/geoip.inc.vcl.erb
+++ b/templates/varnish/geoip.inc.vcl.erb
@@ -25,7 +25,7 @@
GeoIP *gi;
void geo_init () {
if (!gi) {
- gi = GeoIP_open("/usr/share/GeoIP/GeoIPCity.dat",
GEOIP_MEMORY_CACHE);
+ gi = GeoIP_open("/usr/share/GeoIP/GeoIPCity.dat",
GEOIP_MMAP_CACHE);
}
}
getaddrfamily(const char *addr) {
--
To view, visit https://gerrit.wikimedia.org/r/54651
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I76e376aa81f7b1f359d6ea1ef7a471ac9de7869a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits