Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Would be nice not to run pmcpp for PM_CONTEXT_LOCAL #2
Comments
|
On 21/01/15 21:20, Marius Vollmer wrote:
pmcpp is needed because we need to load the Performance Metrics Name Would moving pmcpp to the libpcp package resolve this issue? That's a |
I would say so, if that doesn't increase the dependencies of the libpcp package. Of course, spawning processes is still a bit unexpected, but I can't point at any concrete problems that it causes. Maybe @stefwalter can. On Fedora at least, pmcpp seems to depend on avahi, nss, nspr, cyrus-sasl, and maybe others. This might just be from a sloppy build, though. Should I move this to Fedora? |
mvollmer
added a commit
to mvollmer/cockpit
that referenced
this issue
Jan 21, 2015
stefwalter
commented
Jan 21, 2015
|
pmcpp is not available on Atomic. This prevents us from using pcp-libs on Atomic, even if we do bundle the library with Cockpit. Hmmm, I wonder does one need to run pmcpp when connecting to pmcd on another host? |
mvollmer
referenced this issue
in cockpit-project/cockpit
Jan 21, 2015
Closed
bridge: Skip test-metric when PCP can't be initialized. #1697
No. Reading archives also doesn't need it. |
But if we bundle the library, we can also bundle pmcpp right next to it. (And fix the library to find it.) |
stefwalter
commented
Jan 21, 2015
|
True, if we bundle the library we can rewrite it :) |
Actually, libpcp looks at $PCP_ALT_PMCPP and also things like PCP_BINADM_DIR in general can be overwritten in the environment. So we should be good with relocating libpcp |
stefwalter
commented
Jan 21, 2015
|
Hmmm, the only thing that launching pmcpp is used for is removing the license comment at the top of /var/lib/pcp/pmns/root_linux |
stefwalter
commented
Jan 21, 2015
|
Is it true that the linux pmda is useless without the /var/lib/pcp/pmns/root_linux file, which isn't even shipped in the same package either? |
mvollmer
added a commit
to cockpit-project/cockpit
that referenced
this issue
Jan 21, 2015
|
On 21/01/15 22:56, Stef Walter wrote:
Hold on ... root_linux is in the same package as the linux PMDA ... if So installing libpcp3-dev* and pcp is sort of mandated. Now this will Since I'm ignorant as to what you're trying to do, could someone please This is more or less orthogonal to the original pmcpp question that I'll Cheers, Ken. |
|
On 21/01/15 22:54, Stef Walter wrote:
This is not strictly true. The pmns files can contain any valid cpp directive, including #include Now in the case on PM_CONTEXT_LOCAL the pmns that is processed by pmcpp I think this will always be the case for current PCP versions (it was Would that be of interest? And how might we test that in your environment? |
|
I've removed much of the use of pmcpp in the code ... and in particular PM_CONTEXT_LOCAL does not require pmcpp. This is done and tested in my git repo and should flow to github shortly after review and merging. I'm closing this issue ... if there are remaining packaging issues, please open a new issue so we can focus the discussion there. Cheers, Ken. |
kmcdonell
closed this
Apr 26, 2015
Nice, thanks! |
mvollmer commentedJan 21, 2015
Creating a PM_CONTEXT_LOCAL will run pmcpp. This raises some eyebrows, especially since pmcpp is not usually packaged together with libpcp.
For example, the Cockpit unit tests use their own mock pmda and nothing else (no daemon, no other pmda, etc). But they still need the pmcpp binary from a full PCP installation.