From e081793f329023804b6a369b012d0a931d882ccc Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Fri, 4 Nov 2011 20:45:06 +0000 Subject: [PATCH] increase log file chunk size to avoid running out of file descriptors --- src/stasis/logger/filePool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stasis/logger/filePool.c b/src/stasis/logger/filePool.c index ea19a42..717ea0a 100644 --- a/src/stasis/logger/filePool.c +++ b/src/stasis/logger/filePool.c @@ -676,7 +676,7 @@ stasis_log_t* stasis_log_file_pool_open(const char* dirname, int filemode, int f fp->live_count = 0; fp->dead_count = 0; - fp->target_chunk_size = 64 * 1024 * 1024; + fp->target_chunk_size = 512 * 1024 * 1024; fp->filemode = filemode | O_DSYNC; /// XXX should not hard-code O_SYNC. fp->fileperm = fileperm;