From ca059ab9ef18918dd486e899482327ce157eb629 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 2 Sep 2007 20:39:45 +0000 Subject: [PATCH] Don't set RLIMIT_MEMBLOCK to 0 on startup. Retain 4 pages git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1749 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/daemon/daemon-conf.c | 4 ++-- src/daemon/daemon.conf.in | 4 ++-- src/daemon/main.c | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c index e3ad8b3..7b503f8 100644 --- a/src/daemon/daemon-conf.c +++ b/src/daemon/daemon-conf.c @@ -86,13 +86,13 @@ static const pa_daemon_conf default_conf = { .rlimit_core = { .value = 0, .is_set = 0 }, .rlimit_data = { .value = 0, .is_set = 0 }, .rlimit_fsize = { .value = 0, .is_set = 0 }, - .rlimit_nofile = { .value = 200, .is_set = 1 }, + .rlimit_nofile = { .value = 256, .is_set = 1 }, .rlimit_stack = { .value = 0, .is_set = 0 } #ifdef RLIMIT_NPROC , .rlimit_nproc = { .value = 0, .is_set = 0 } #endif #ifdef RLIMIT_MEMLOCK - , .rlimit_memlock = { .value = 0, .is_set = 1 } + , .rlimit_memlock = { .value = 16384, .is_set = 1 } #endif #endif }; diff --git a/src/daemon/daemon.conf.in b/src/daemon/daemon.conf.in index 9bd5cba..2132bf3 100644 --- a/src/daemon/daemon.conf.in +++ b/src/daemon/daemon.conf.in @@ -92,10 +92,10 @@ ; rlimit-core = -1 ; rlimit-data = -1 ; rlimit-fsize = -1 -; rlimit-nofile = 200 +; rlimit-nofile = 256 ; rlimit-stack = -1 ; rlimit-nproc = -1 -; rlimit-memlock = 25 +; rlimit-memlock = 16384 ## Disable shared memory data transfer ; disable-shm = 0 diff --git a/src/daemon/main.c b/src/daemon/main.c index b927b2a..639d6dc 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -80,6 +80,7 @@ #include #include #include +#include #include "cmdline.h" #include "cpulimit.h" @@ -584,8 +585,10 @@ int main(int argc, char *argv[]) { signal(SIGPIPE, SIG_IGN); #endif + pa_log_info("Page size is %lu bytes", (unsigned long) PA_PAGE_SIZE); + if (pa_rtclock_hrtimer()) - pa_log_debug("Fresh high-resolution timers available! Bon appetit!"); + pa_log_info("Fresh high-resolution timers available! Bon appetit!"); else pa_log_info("Dude, your kernel stinks! The chef's recommendation today is Linux with high-resolution timers enabled!"); -- 2.7.4