pcp
[Top] [All Lists]

[patch] speed pmie startup

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, Lukas Berk <lberk@xxxxxxxxxx>
Subject: [patch] speed pmie startup
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 21 Apr 2015 00:09:40 -0400 (EDT)
Cc: pcp developers <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <2142101767.3718573.1429580600364.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: jZmdtbk8GPFF3zl/F+vRTYrwfuAS4Q==
Thread-topic: speed pmie startup
Hi Ken,

Lukas and I were looking into an intermittent qa/312 failure he is
observing.  If the sleep in that test is increased (to 3) its then
back to always passing (312 is a very simple pmie test).

But, seemed odd that pmie takes so long to startup and dump out the
result from that initial sample.  ltrace pointed toward some calls 
to nanosleep and following that led to unexpected time differences
for scheduled tasks vs the initial notion of "now".  It turned out
those delays were due to some places where we do 'now = now + 1sec'
- see attached patch.  Do you know the reason behind adding in that
one second difference there?  (and is it safe to remove, or reduce,
as the patch does?)

thanks!

--
Nathan

Attachment: slow-pmie.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>