Bug 1482568 - tuned in FAH
Summary: tuned in FAH
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: tuned
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-17 15:17 UTC by Colin Walters
Modified: 2019-11-27 22:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-27 22:25:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to disable dbus-related imports (1014 bytes, patch)
2019-04-04 16:06 UTC, Ondřej Lysoněk
no flags Details | Diff

Description Colin Walters 2017-08-17 15:17:08 UTC
This bug will track any improvements/fixes in tuned to do as part of:

https://pagure.io/atomic-wg/issue/315

tuned maintainer, feel free to reply in either place.

Comment 1 Colin Walters 2017-08-17 15:22:52 UTC
One sort of obvious thing is that tuned drags in more python2 stuff.  We have to carry both python2 and python3 due to https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/HLYKS4LIK6CIKAZG34EI7FNROUWXMVUL/
but it's definitely unfortunate to add more.

I am also still unhappy about the fact that tuned is a Python daemon that sits around idle but taking up memory; it will become the #3 RAM consumer at 23MB RSS after system bootup.

Has there been any investigation into having tuned be a privileged container that supports both one-shot and persistent modes?

Comment 2 Jaroslav Škarvada 2017-08-18 12:35:02 UTC
I subscribed to the ticket.

Comment 3 Jaroslav Škarvada 2017-08-18 12:44:11 UTC
(In reply to Colin Walters from comment #1)
> One sort of obvious thing is that tuned drags in more python2 stuff.  We
> have to carry both python2 and python3 due to
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/
> message/HLYKS4LIK6CIKAZG34EI7FNROUWXMVUL/
> but it's definitely unfortunate to add more.
> 
We are working on Python 3 switch. The main problem is that some of the used libraries (e.g. python-perf, which came from the kernel upstream) haven't had Python 3 support yet.

> I am also still unhappy about the fact that tuned is a Python daemon that
> sits around idle but taking up memory; it will become the #3 RAM consumer at
> 23MB RSS after system bootup.
> 
It can be resolved by no daemon mode, which can be configured in /etc/tuned/tuned-main.conf. It lacks some functionality, but it consumes no resident RAM.

> Has there been any investigation into having tuned be a privileged container
> that supports both one-shot and persistent modes?
>
So far I haven't heard about any activity in this field. At the moment one-shot (no daemon) and persistent (daemon) mode can be switched in the Tuned configuration. I think it could run in the privileged container. We are listening for ideas and/or patches.

Comment 4 Dusty Mabe 2017-08-18 15:28:31 UTC
> 
> > I am also still unhappy about the fact that tuned is a Python daemon that
> > sits around idle but taking up memory; it will become the #3 RAM consumer at
> > 23MB RSS after system bootup.
> > 
> It can be resolved by no daemon mode, which can be configured in
> /etc/tuned/tuned-main.conf. It lacks some functionality, but it consumes no
> resident RAM.
> 


This is interesting. Without having any current knowledge of how tuned works it seems like it would make sense to do the following:

- If tuned is started via a systemd .service unit then default to daemon mode
- If tuned is run from the command line then default to one shot mode

Basically default to daemon=0 in the conf file but have systemd set that configuration value to 1 before it starts the service.

Comment 6 Fedora End Of Life 2018-02-20 15:32:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 7 Ondřej Lysoněk 2019-04-04 16:06:36 UTC
Created attachment 1552024 [details]
patch to disable dbus-related imports

Update: Starting with Fedora 29, Tuned runs with python3.

We've also been discussing how to reduce the memory usage of the Tuned daemon. The attached patch disables some dbus-related imports when dbus is not used. It saves ~7 MB of RSS.

Comment 8 Ben Cotton 2019-05-02 19:43:18 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Ben Cotton 2019-10-31 19:25:11 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Ben Cotton 2019-11-27 22:25:29 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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