From 39944c89a9223ee646cd9263317b284149baa4f1 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Tue, 8 Sep 2015 11:24:07 -0700 Subject: [PATCH] logd: increase dgram_max_qlen to 600 Seeing liblog messages on system_server runtime restart (too much system_server spam, 566 messages in 72ms) Bug: 23788621 Change-Id: I5171f2c19a3538da190fc6c2b40e978d89bf0e20 --- logd/main.cpp | 2 +- rootdir/init.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logd/main.cpp b/logd/main.cpp index 9b889838d..f90da374b 100644 --- a/logd/main.cpp +++ b/logd/main.cpp @@ -422,7 +422,7 @@ int main(int argc, char *argv[]) { LogListener *swl = new LogListener(logBuf, reader); // Backlog and /proc/sys/net/unix/max_dgram_qlen set to large value - if (swl->startListener(300)) { + if (swl->startListener(600)) { exit(1); } diff --git a/rootdir/init.rc b/rootdir/init.rc index 5f1169daf..dc85d98cd 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -86,7 +86,7 @@ on init write /proc/sys/kernel/kptr_restrict 2 write /proc/sys/vm/mmap_min_addr 32768 write /proc/sys/net/ipv4/ping_group_range "0 2147483647" - write /proc/sys/net/unix/max_dgram_qlen 300 + write /proc/sys/net/unix/max_dgram_qlen 600 write /proc/sys/kernel/sched_rt_runtime_us 950000 write /proc/sys/kernel/sched_rt_period_us 1000000