pcp
[Top] [All Lists]

Reduce pmdaproc.sh runtime for pmdaInstall

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Reduce pmdaproc.sh runtime for pmdaInstall
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 9 Feb 2015 00:08:20 -0500 (EST)
Cc: "pcp@xxxxxxxxxxx >> PCP" <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <648304535.926907.1423458368849.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: MKoQmru8UoRSUj5w1b8nIWvkdgt2xg==
Thread-topic: Reduce pmdaproc.sh runtime for pmdaInstall
(resending, oss rejected the .sh attachment suffix)

Hi Ken,

When the dust settles on the current crop of failures we're
triaging, could you toss the attached patch into your regular
QA and see how it fares?  (no regressions so far here).  The
aim is to reduce the runtime for all of QA, but there's one/
two tests that are particularly problematic (3x speedup with
this - one pmdasample test goes from ~2.5mins to < ~50sec).

It makes PMDA installs quicker in general, so a bonus for all
users really.  The comments in the code (removed) about a 1s
timestamp resolution have long been resolved in the kernel (it
is from early 2.4 days IIRC - all modern Linux filesystems use
higher resolution timestamps, as does the VFS - so I think its
safe at this stage).

cheers.

--
Nathan

Attachment: speedup.pmdaproc.patch
Description: Text Data

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