Bug 1376861 - pcp pmwebd performance improvements
Summary: pcp pmwebd performance improvements
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: pcp-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-16 16:09 UTC by Frank Ch. Eigler
Modified: 2021-12-10 14:44 UTC (History)
8 users (show)

Fixed In Version: 3.12.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-25 21:35:05 UTC
Type: Bug


Attachments (Terms of Use)

Description Frank Ch. Eigler 2016-09-16 16:09:10 UTC
pmwebd is slow to answer certain types of queries, sometimes painfully so.
Some ideas:

- fix multithreading problems in libpcp, so that the core pmwebapi portion of
  pmwebd could become multithreaded

- fix multithreading problems in libpcp, so that the graphite pmwebapi portion can be fully multithreaded too (with concurrent service of different requests, rather than just concurrent scans of multiple archives for a given request)

- for graphite mode, cache archive metadata somehow.  We can't keep all of the   archives open because of FD limits.  Plus we must be tolerant to archives that are being actively written-to (so the metadata cache must be flushable).

- for graphite-json query outputs, investigate whether all the JSON "{null, $timestamp}" entries actually must be emitted.  Maybe the graphite/grafana webapps we bundle can fill in that stuff.

- for graphite-png query outputs, rework the representation of all the timeseries in memory as a big rectangular vector-of-vectors.  The nulls/nans probably don't need to be materialized, and costing perhaps tens or hundreds of MB (for massive sets of series).

Comment 1 Fedora End Of Life 2017-02-28 10:19:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 2 Mark Goodwin 2017-08-03 00:49:10 UTC
Frank, how much of this is in mainline and/or your pcpfans tree, what's left to be done?

Comment 3 Nathan Scott 2017-08-03 00:52:21 UTC
(In reply to Mark Goodwin from comment #2)
> Frank, how much of this is in mainline and/or your pcpfans tree, what's left
> to be done?

Frank is on PTO for a few weeks Mark.  Nothing has been sent upstream at this stage, although of course Ken's libpcp threading improvements continue onward independently.

Comment 4 Frank Ch. Eigler 2017-10-25 21:35:05 UTC
pmfuntools pmwebd -J related functionality is in pcp 3.12.2.


Note You need to log in before you can comment on or make changes to this bug.