Re: Policy regarding service preset enabled (e.g. performance co-pilot)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Sun, Feb 10, 2019 at 10:08:51AM +1100, Nathan Scott wrote:
> On Sun, Feb 10, 2019 at 6:47 AM Georg Sauthoff <mail@xxxxxxxx> wrote:
> > [...]
> > I'm asking because installing the dstat replacement[1] in Fedora 29
> > resulted in 3 additional always running systemd services[2] and 2 open
> > ports.
 
> The new dstat script resides in the pcp-system-tools sub-package of
> PCP.  This package depends on python3, python3-pcp and pcp-libs.  None
> of these packages contain systemd services.

The {pmcd,pmlogger,pmie}.service files are provided by the 'pcp'
package. And pcp-system-tools *does* depend on pcp. See also:

# dnf remove pcp
Dependencies resolved.
================================================================================
 Package                Arch         Version               Repository      Size
================================================================================
Removing:
 pcp                    x86_64       4.3.0-3.fc29          @updates       4.2 M
Removing dependent packages:
 pcp-system-tools       x86_64       4.3.0-3.fc29          @updates       620 k


[..]
> I wonder if you have installed the (optional) pcp-zeroconf package,
> Georg?  This is a convenience package which automates setup of

No, I don't have it installed:

# rpm -q pcp-zeroconf
package pcp-zeroconf is not installed

> frequently needed PCP services for use in customer support situations.
> You do not need to install this package to use dstat.

As-is, because of the dependencies (see above) I have to install them.

> The new dstat does not require running services, by default it runs in

Yes, this is true, the service don't need to be running for the new dstat.

> a standalone fashion.
[..]

> > Perhaps it's just me, but having 3 services enabled after installing the
> > dstat replacement ('which strives for 100% output compatibility with the
> > original dstat') feels like a violation of the principle of least
> > astonishment.
 
> Agreed - that's why the code is written the way it is, and the
> packages are structured the way they are.  It is not the case that you
> need to have 3 additional services running when using the new dstat.

The problem is that pmie/pmcd/pmlogger are enabled by default because they have
their 'vendor preset' configured to 'enabled'. See also:

# systemctl status pmie pmcd pmlogger                          
● pmie.service - Performance Metrics Inference Engine
   Loaded: loaded (/usr/lib/systemd/system/pmie.service; disabled; vendor preset: enabled)
[..]

# find /usr/lib/systemd -name '*.preset' | xargs grep '\<\(pmcd\|pmlogger\|pmie\)'
/usr/lib/systemd/system-preset/90-default.preset:enable pmcd.service
/usr/lib/systemd/system-preset/90-default.preset:enable pmlogger.service
/usr/lib/systemd/system-preset/90-default.preset:enable pmie.service

# dnf provides /usr/lib/systemd/system-preset/90-default.preset             
fedora-release-29-7.noarch : Fedora release files
[..]

Do I need to create a Bugzilla tickets for fixing the pcp dependencies and
presets or do you take care of it?

Best regards
Georg

-- 
https://gms.tf/
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux