https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112227
Revision: 112227
Author: midom
Date: 2012-02-23 19:15:17 +0000 (Thu, 23 Feb 2012)
Log Message:
-----------
set in-RAM cache size to 256M instead of 256k - cuts CPU usage in half on busy
systems
Modified Paths:
--------------
trunk/udpprofile/collector.c
Modified: trunk/udpprofile/collector.c
===================================================================
--- trunk/udpprofile/collector.c 2012-02-23 19:11:34 UTC (rev 112226)
+++ trunk/udpprofile/collector.c 2012-02-23 19:15:17 UTC (rev 112227)
@@ -72,6 +72,7 @@
fds[1].fd = exp, fds[1].events |= POLLIN;
db_create(&db,NULL,0);
+ db->set_cachesize(db, 0, 256*1024*1024, 0);
db->open(db,NULL,"stats.db",NULL,DB_BTREE,DB_CREATE|DB_TRUNCATE,0);
signal(SIGHUP,hup);
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs