r112227 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112226‎ | r112227 | r112228 >
Date:19:15, 23 February 2012
Author:midom
Status:deferred
Tags:
Comment:
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) (history)

Diff [purge]

Index: trunk/udpprofile/collector.c
@@ -72,6 +72,7 @@
7373 fds[1].fd = exp, fds[1].events |= POLLIN;
7474
7575 db_create(&db,NULL,0);
 76+ db->set_cachesize(db, 0, 256*1024*1024, 0);
7677 db->open(db,NULL,"stats.db",NULL,DB_BTREE,DB_CREATE|DB_TRUNCATE,0);
7778
7879 signal(SIGHUP,hup);

Sign-offs

UserFlagDate
😂inspected03:46, 8 March 2012

Status & tagging log