Index: trunk/udpprofile/collector.c |
— | — | @@ -72,6 +72,7 @@ |
73 | 73 | fds[1].fd = exp, fds[1].events |= POLLIN; |
74 | 74 | |
75 | 75 | db_create(&db,NULL,0); |
| 76 | + db->set_cachesize(db, 0, 256*1024*1024, 0); |
76 | 77 | db->open(db,NULL,"stats.db",NULL,DB_BTREE,DB_CREATE|DB_TRUNCATE,0); |
77 | 78 | |
78 | 79 | signal(SIGHUP,hup); |