1 May 2012 22:09
Tune reader_thread poll timeout value
Turgis, Frederic <f-turgis <at> ti.com>
2012-05-01 20:09:49 GMT
2012-05-01 20:09:49 GMT
Hi, I am following-up remark made in the context of "Making the transport layer more robust" topic. Goal is to reduce number of systemtap wake-ups in the context of embedded low-power use cases like MP3 playback. The last non tunable or small duration source of wake-up is "reader_thread" ppoll timeout value, every 200ms. We compile systemtap with a value of 2s or more for our daily use. So I am proposing to introduce tunables below as an example. Don't know if I should have correlated s and ns, also don't know if this should also be applied to relay_old.c. Please tell me if this is an acceptable change: From 3fac053713be44c00e05423b4f31e2ed8edaa993 Mon Sep 17 00:00:00 2001 From: Frederic Turgis <f-turgis <at> ti.com> Date: Wed, 2 May 2012 01:16:28 +0200 Subject: [PATCH] Make reader_thread poll timeout tunable at compilation --- runtime/staprun/relay.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/runtime/staprun/relay.c b/runtime/staprun/relay.c index e08ff60..d81a45f 100644 --- a/runtime/staprun/relay.c +++ b/runtime/staprun/relay.c <at> <at> -12,6 +12,13 <at> <at> #include "staprun.h" +#ifndef STP_RELAY_TIMEOUT_S +#define STP_RELAY_TIMEOUT_S 0 +#endif(Continue reading)
RSS Feed