[mythtv-commits] Ticket #11461: mythlogserver busy with 200 poll() calls per second even if there is nothing to log
MythTV
noreply at mythtv.org
Sat Mar 30 21:55:30 UTC 2013
#11461: mythlogserver busy with 200 poll() calls per second even if there is
nothing to log
------------------------------------+----------------------------
Reporter: tino@… | Owner: beirdo
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: 0.26-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+----------------------------
Comment (by dekarl):
You could try this patch to reduce the wake ups from 200/sec to 20/sec,
see also [4a9a609c450f865c898b7b474dc4b609472e4aef]
{{{
diff --git a/mythtv/libs/libmythbase/loggingserver.cpp
b/mythtv/libs/libmythbase/loggingserver.cpp
index 602f518..1223454 100644
--- a/mythtv/libs/libmythbase/loggingserver.cpp
+++ b/mythtv/libs/libmythbase/loggingserver.cpp
@@ -789,7 +789,7 @@ void LogServerThread::run(void)
m_zmqContext = nzmqt::createDefaultContext(NULL);
nzmqt::PollingZMQContext *ctx = static_cast<nzmqt::PollingZMQContext
*>
(m_zmqContext);
- ctx->setInterval(100);
+ ctx->setInterval(10);
ctx->start();
bool abortThread = false;
@@ -1101,6 +1101,7 @@ void LogForwardThread::run(void)
m_zmqContext = nzmqt::createDefaultContext(NULL);
nzmqt::PollingZMQContext *ctx = static_cast<nzmqt::PollingZMQContext
*>
(m_zmqContext);
+ ctx->setInterval(10);
ctx->start();
m_zmqPubSock = m_zmqContext->createSocket(nzmqt::ZMQSocket::TYP_PUB,
this);
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11461#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list