forked from redhat-performance/tuned
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtuned.spec
1065 lines (961 loc) · 37.1 KB
/
tuned.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%bcond_with snapshot
%if 0%{?fedora}
%if 0%{?fedora} > 27
%bcond_without python3
%else
%bcond_with python3
%endif
%else
%if 0%{?rhel} && 0%{?rhel} < 8
%bcond_with python3
%else
%bcond_without python3
%endif
%endif
%if %{with python3}
%global _py python3
%global make_python_arg PYTHON=%{__python3}
%else
%{!?python2_sitelib:%global python2_sitelib %{python_sitelib}}
%global make_python_arg PYTHON=%{__python2}
%if 0%{?rhel} && 0%{?rhel} < 8
%global _py python
%else
%global _py python2
%endif
%endif
%if %{with snapshot}
%if 0%{!?git_short_commit:1}
%global git_short_commit %(git rev-parse --short=8 --verify HEAD)
%endif
%global git_date %(date +'%Y%m%d')
%global git_suffix %{git_date}git%{git_short_commit}
%endif
#%%global prerelease rc
#%%global prereleasenum 1
%global prerel1 %{?prerelease:.%{prerelease}%{prereleasenum}}
%global prerel2 %{?prerelease:-%{prerelease}.%{prereleasenum}}
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.12.0
Release: 1%{?prerel1}%{?with_snapshot:.%{git_suffix}}%{?dist}
License: GPLv2+
Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}/%{name}-%{version}%{?prerel2}.tar.gz
URL: http://www.tuned-project.org/
BuildArch: noarch
BuildRequires: systemd, desktop-file-utils
%if 0%{?rhel}
BuildRequires: asciidoc
%else
BuildRequires: asciidoctor
%endif
Requires(post): systemd, virt-what
Requires(preun): systemd
Requires(postun): systemd
BuildRequires: %{_py}, %{_py}-devel
Requires: %{_py}-decorator, %{_py}-pyudev, %{_py}-configobj
Requires: %{_py}-schedutils, %{_py}-linux-procfs, %{_py}-perf
# requires for packages with inconsistent python2/3 names
%if %{with python3}
Requires: python3-dbus, python3-gobject-base
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
Recommends: python3-dmidecode
%endif
%else
Requires: dbus-python, pygobject3-base
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
Recommends: python-dmidecode
%endif
%endif
Requires: virt-what, ethtool, gawk, hdparm
Requires: util-linux, dbus, polkit
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
Recommends: kernel-tools
%endif
%if 0%{?rhel} > 7
Requires: python3-syspurpose
%endif
%description
The tuned package contains a daemon that tunes system settings dynamically.
It does so by monitoring the usage of several system components periodically.
Based on that information components will then be put into lower or higher
power saving modes to adapt to the current usage. Currently only ethernet
network and ATA harddisk devices are implemented.
%if 0%{?rhel} <= 7 && 0%{!?fedora:1}
# RHEL <= 7
%global docdir %{_docdir}/%{name}-%{version}
%else
# RHEL > 7 || fedora
%global docdir %{_docdir}/%{name}
%endif
%package gtk
Summary: GTK GUI for tuned
Requires: %{name} = %{version}-%{release}
Requires: powertop, polkit
# requires for packages with inconsistent python2/3 names
%if %{with python3}
Requires: python3-gobject-base
%else
Requires: pygobject3-base
%endif
%description gtk
GTK GUI that can control tuned and provides simple profile editor.
%package utils
Requires: %{name} = %{version}-%{release}
Requires: powertop
Summary: Various tuned utilities
%description utils
This package contains utilities that can help you to fine tune and
debug your system and manage tuned profiles.
%package utils-systemtap
Summary: Disk and net statistic monitoring systemtap scripts
Requires: %{name} = %{version}-%{release}
Requires: systemtap
%description utils-systemtap
This package contains several systemtap scripts to allow detailed
manual monitoring of the system. Instead of the typical IO/sec it collects
minimal, maximal and average time between operations to be able to
identify applications that behave power inefficient (many small operations
instead of fewer large ones).
%package profiles-sap
Summary: Additional tuned profile(s) targeted to SAP NetWeaver loads
Requires: %{name} = %{version}
%description profiles-sap
Additional tuned profile(s) targeted to SAP NetWeaver loads.
%package profiles-mssql
Summary: Additional tuned profile(s) for MS SQL Server
Requires: %{name} = %{version}
%description profiles-mssql
Additional tuned profile(s) for MS SQL Server.
%package profiles-oracle
Summary: Additional tuned profile(s) targeted to Oracle loads
Requires: %{name} = %{version}
%description profiles-oracle
Additional tuned profile(s) targeted to Oracle loads.
%package profiles-sap-hana
Summary: Additional tuned profile(s) targeted to SAP HANA loads
Requires: %{name} = %{version}
%description profiles-sap-hana
Additional tuned profile(s) targeted to SAP HANA loads.
%package profiles-atomic
Summary: Additional tuned profile(s) targeted to Atomic
Requires: %{name} = %{version}
%description profiles-atomic
Additional tuned profile(s) targeted to Atomic host and guest.
%package profiles-realtime
Summary: Additional tuned profile(s) targeted to realtime
Requires: %{name} = %{version}
Requires: tuna
%description profiles-realtime
Additional tuned profile(s) targeted to realtime.
%package profiles-nfv-guest
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV) guest
Requires: %{name} = %{version}
Requires: %{name}-profiles-realtime = %{version}
Requires: tuna
%description profiles-nfv-guest
Additional tuned profile(s) targeted to Network Function Virtualization (NFV) guest.
%package profiles-nfv-host
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV) host
Requires: %{name} = %{version}
Requires: %{name}-profiles-realtime = %{version}
Requires: tuna
%if 0%{?rhel} == 7
Requires: qemu-kvm-tools-rhev
%else
Recommends: tuned-profiles-nfv-host-bin
%endif
%description profiles-nfv-host
Additional tuned profile(s) targeted to Network Function Virtualization (NFV) host.
# this is kept for backward compatibility, it should be dropped for RHEL-8
%package profiles-nfv
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
Requires: %{name} = %{version}
Requires: %{name}-profiles-nfv-guest = %{version}
Requires: %{name}-profiles-nfv-host = %{version}
%description profiles-nfv
Additional tuned profile(s) targeted to Network Function Virtualization (NFV).
%package profiles-cpu-partitioning
Summary: Additional tuned profile(s) optimized for CPU partitioning
Requires: %{name} = %{version}
%description profiles-cpu-partitioning
Additional tuned profile(s) optimized for CPU partitioning.
%package profiles-compat
Summary: Additional tuned profiles mainly for backward compatibility with tuned 1.0
Requires: %{name} = %{version}
%description profiles-compat
Additional tuned profiles mainly for backward compatibility with tuned 1.0.
It can be also used to fine tune your system for specific scenarios.
%prep
%setup -q -n %{name}-%{version}%{?prerel2}
%build
make html %{make_python_arg}
%install
make install DESTDIR=%{buildroot} DOCDIR=%{docdir} %{make_python_arg}
%if 0%{?rhel}
sed -i 's/\(dynamic_tuning[ \t]*=[ \t]*\).*/\10/' %{buildroot}%{_sysconfdir}/tuned/tuned-main.conf
%endif
# manual
make install-html DESTDIR=%{buildroot} DOCDIR=%{docdir}
# conditional support for grub2, grub2 is not available on all architectures
# and tuned is noarch package, thus the following hack is needed
mkdir -p %{buildroot}%{_datadir}/tuned/grub2
mv %{buildroot}%{_sysconfdir}/grub.d/00_tuned %{buildroot}%{_datadir}/tuned/grub2/00_tuned
rmdir %{buildroot}%{_sysconfdir}/grub.d
# ghost for persistent storage
mkdir -p %{buildroot}%{_var}/lib/tuned
# ghost for NFV
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d
touch %{buildroot}%{_sysconfdir}/modprobe.d/kvm.rt.tuned.conf
# validate desktop file
desktop-file-validate %{buildroot}%{_datadir}/applications/tuned-gui.desktop
%post
%systemd_post tuned.service
# convert active_profile from full path to name (if needed)
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
# convert GRUB_CMDLINE_LINUX to GRUB_CMDLINE_LINUX_DEFAULT
if [ -r "%{_sysconfdir}/default/grub" ]; then
sed -i 's/GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX \\$tuned_params"/GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT \\$tuned_params"/' \
%{_sysconfdir}/default/grub
fi
%preun
%systemd_preun tuned.service
if [ "$1" == 0 ]; then
# clear persistent storage
rm -f %{_var}/lib/tuned/*
# clear temporal storage
rm -f /run/tuned/*
fi
%postun
%systemd_postun_with_restart tuned.service
# conditional support for grub2, grub2 is not available on all architectures
# and tuned is noarch package, thus the following hack is needed
if [ "$1" == 0 ]; then
rm -f %{_sysconfdir}/grub.d/00_tuned || :
# unpatch /etc/default/grub
if [ -r "%{_sysconfdir}/default/grub" ]; then
sed -i '/GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT:+$GRUB_CMDLINE_LINUX_DEFAULT }\\$tuned_params"/d' %{_sysconfdir}/default/grub
fi
# cleanup for Boot loader specification (BLS)
# clear grubenv variables
grub2-editenv - unset tuned_params tuned_initrd &>/dev/null || :
# unpatch BLS entries
MACHINE_ID=`cat /etc/machine-id 2>/dev/null`
if [ "$MACHINE_ID" ]
then
for f in /boot/loader/entries/$MACHINE_ID-*.conf
do
if [ -f "$f" -a "${f: -12}" != "-rescue.conf" ]
then
sed -i '/^\s*options\s\+.*\$tuned_params/ s/\s\+\$tuned_params\b//g' "$f" &>/dev/null || :
sed -i '/^\s*initrd\s\+.*\$tuned_initrd/ s/\s\+\$tuned_initrd\b//g' "$f" &>/dev/null || :
fi
done
fi
fi
%triggerun -- tuned < 2.0-0
# remove ktune from old tuned, now part of tuned
/usr/sbin/service ktune stop &>/dev/null || :
/usr/sbin/chkconfig --del ktune &>/dev/null || :
%posttrans
# conditional support for grub2, grub2 is not available on all architectures
# and tuned is noarch package, thus the following hack is needed
if [ -d %{_sysconfdir}/grub.d ]; then
cp -a %{_datadir}/tuned/grub2/00_tuned %{_sysconfdir}/grub.d/00_tuned
selinuxenabled &>/dev/null && \
restorecon %{_sysconfdir}/grub.d/00_tuned &>/dev/null || :
fi
%files
%defattr(-,root,root,-)
%exclude %{docdir}/README.utils
%exclude %{docdir}/README.scomes
%exclude %{docdir}/README.NFV
%doc %{docdir}
%{_datadir}/bash-completion/completions/tuned-adm
%if %{with python3}
%exclude %{python3_sitelib}/tuned/gtk
%{python3_sitelib}/tuned
%else
%exclude %{python2_sitelib}/tuned/gtk
%{python2_sitelib}/tuned
%endif
%{_sbindir}/tuned
%{_sbindir}/tuned-adm
%exclude %{_sysconfdir}/tuned/realtime-variables.conf
%exclude %{_sysconfdir}/tuned/realtime-virtual-guest-variables.conf
%exclude %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf
%exclude %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
%exclude %{_prefix}/lib/tuned/default
%exclude %{_prefix}/lib/tuned/desktop-powersave
%exclude %{_prefix}/lib/tuned/laptop-ac-powersave
%exclude %{_prefix}/lib/tuned/server-powersave
%exclude %{_prefix}/lib/tuned/laptop-battery-powersave
%exclude %{_prefix}/lib/tuned/enterprise-storage
%exclude %{_prefix}/lib/tuned/spindown-disk
%exclude %{_prefix}/lib/tuned/sap-netweaver
%exclude %{_prefix}/lib/tuned/sap-hana
%exclude %{_prefix}/lib/tuned/mssql
%exclude %{_prefix}/lib/tuned/oracle
%exclude %{_prefix}/lib/tuned/atomic-host
%exclude %{_prefix}/lib/tuned/atomic-guest
%exclude %{_prefix}/lib/tuned/realtime
%exclude %{_prefix}/lib/tuned/realtime-virtual-guest
%exclude %{_prefix}/lib/tuned/realtime-virtual-host
%exclude %{_prefix}/lib/tuned/cpu-partitioning
%{_prefix}/lib/tuned
%dir %{_sysconfdir}/tuned
%dir %{_sysconfdir}/tuned/recommend.d
%dir %{_libexecdir}/tuned
%{_libexecdir}/tuned/defirqaffinity*
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/active_profile
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/profile_mode
%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline
%{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
%verify(not size mtime md5) %{_sysconfdir}/modprobe.d/tuned.conf
%{_tmpfilesdir}/tuned.conf
%{_unitdir}/tuned.service
%dir %{_localstatedir}/log/tuned
%dir /run/tuned
%dir %{_var}/lib/tuned
%{_mandir}/man5/tuned*
%{_mandir}/man7/tuned-profiles.7*
%{_mandir}/man8/tuned*
%dir %{_datadir}/tuned
%{_datadir}/tuned/grub2
%{_datadir}/polkit-1/actions/com.redhat.tuned.policy
%ghost %{_sysconfdir}/modprobe.d/kvm.rt.tuned.conf
%{_prefix}/lib/kernel/install.d/92-tuned.install
%files gtk
%defattr(-,root,root,-)
%{_sbindir}/tuned-gui
%if %{with python3}
%{python3_sitelib}/tuned/gtk
%else
%{python2_sitelib}/tuned/gtk
%endif
%{_datadir}/tuned/ui
%{_datadir}/icons/hicolor/scalable/apps/tuned.svg
%{_datadir}/applications/tuned-gui.desktop
%files utils
%doc COPYING
%{_bindir}/powertop2tuned
%{_libexecdir}/tuned/pmqos-static*
%files utils-systemtap
%defattr(-,root,root,-)
%doc doc/README.utils
%doc doc/README.scomes
%doc COPYING
%{_sbindir}/varnetload
%{_sbindir}/netdevstat
%{_sbindir}/diskdevstat
%{_sbindir}/scomes
%{_mandir}/man8/varnetload.*
%{_mandir}/man8/netdevstat.*
%{_mandir}/man8/diskdevstat.*
%{_mandir}/man8/scomes.*
%files profiles-sap
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/sap-netweaver
%{_mandir}/man7/tuned-profiles-sap.7*
%files profiles-sap-hana
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/sap-hana
%{_mandir}/man7/tuned-profiles-sap-hana.7*
%files profiles-mssql
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/mssql
%{_mandir}/man7/tuned-profiles-mssql.7*
%files profiles-oracle
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/oracle
%{_mandir}/man7/tuned-profiles-oracle.7*
%files profiles-atomic
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/atomic-host
%{_prefix}/lib/tuned/atomic-guest
%{_mandir}/man7/tuned-profiles-atomic.7*
%files profiles-realtime
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/tuned/realtime-variables.conf
%{_prefix}/lib/tuned/realtime
%{_mandir}/man7/tuned-profiles-realtime.7*
%files profiles-nfv-guest
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-guest-variables.conf
%{_prefix}/lib/tuned/realtime-virtual-guest
%{_mandir}/man7/tuned-profiles-nfv-guest.7*
%files profiles-nfv-host
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf
%{_prefix}/lib/tuned/realtime-virtual-host
%{_mandir}/man7/tuned-profiles-nfv-host.7*
%files profiles-nfv
%defattr(-,root,root,-)
%doc %{docdir}/README.NFV
%files profiles-cpu-partitioning
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
%{_prefix}/lib/tuned/cpu-partitioning
%{_mandir}/man7/tuned-profiles-cpu-partitioning.7*
%files profiles-compat
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/default
%{_prefix}/lib/tuned/desktop-powersave
%{_prefix}/lib/tuned/laptop-ac-powersave
%{_prefix}/lib/tuned/server-powersave
%{_prefix}/lib/tuned/laptop-battery-powersave
%{_prefix}/lib/tuned/enterprise-storage
%{_prefix}/lib/tuned/spindown-disk
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
* Thu Jun 27 2019 Jaroslav Škarvada <[email protected]> - 2.12.0-1
- new release
- rebased tuned to latest upstream
related: rhbz#1685585
* Wed Jun 12 2019 Jaroslav Škarvada <[email protected]> - 2.12.0-0.1.rc1
- new release
- rebased tuned to latest upstream
resolves: rhbz#1685585
- sap-netweaver: changed values of kernel.shmall and kernel.shmmax to RHEL-8 defaults
resolves: rhbz#1708418
- sap-netweaver: changed value of kernel.sem to RHEL-8 default
resolves: rhbz#1701394
- sap-hana-vmware: dropped profile
resolves: rhbz#1715541
- s2kb function: fixed to be compatible with python3
resolves: rhbz#1684122
- do fallback to the powersave governor (balanced and powersave profiles)
resolves: rhbz#1679205
- added support for negation of CPU list
resolves: rhbz#1676588
- switched from sysctl tool to own implementation
resolves: rhbz#1666678
- realtime-virtual-host: added tsc-deadline=on to qemu cmdline
resolves: rhbz#1554458
- fixed handling of devices that have been removed and re-attached
resolves: rhbz#1677730
* Thu Mar 21 2019 Jaroslav Škarvada <[email protected]> - 2.11.0-1
- new release
- rebased tuned to latest upstream
related: rhbz#1643654
- used dmidecode only on x86 architectures
resolves: rhbz#1688371
- recommend: fixed to work without tuned daemon running
resolves: rhbz#1687397
* Sun Mar 10 2019 Jaroslav Škarvada <[email protected]> - 2.11.0-0.1.rc1
- new release
- rebased tuned to latest upstream
resolves: rhbz#1643654
- use online CPUs for cpusets calculations instead of present CPUs
resolves: rhbz#1613478
- realtime-virtual-guest: run script.sh
related: rhbz#1616043
- make python-dmidecode a weak dependency
resolves: rhbz#1565598
- make virtual-host identical to latency-performance
resolves: rhbz#1588932
- added support for Boot loader specification (BLS)
resolves: rhbz#1576435
- scheduler: keep polling file objects alive long enough
resolves: rhbz#1659140
- mssql: updated tuning
resolves: rhbz#1660178
- s2kb: fixed to be compatible with python3
resolves: rhbz#1684122
- profiles: fallback to the 'powersave' scaling governor
resolves: rhbz#1679205
- disable KSM only once, re-enable it only on full rollback
resolves: rhbz#1622239
- functions: reworked setup_kvm_mod_low_latency to count with kernel changes
resolves: rhbz#1649408
- updated virtual-host profile
resolves: rhbz#1569375
- added log message for unsupported parameters in plugin_net
resolves: rhbz#1533852
- added range feature for cpu exclusion
resolves: rhbz#1533908
- make a copy of devices when verifying tuning
resolves: rhbz#1592743
- fixed disk plugin/plugout problem
resolves: rhbz#1595156
- fixed unit configuration reading
resolves: rhbz#1613379
- reload profile configuration on SIGHUP
resolves: rhbz#1631744
- use built-in functionality to apply system sysctl
resolves: rhbz#1663412
* Wed Jul 4 2018 Jaroslav Škarvada <[email protected]> - 2.10.0-1
- new release
- rebased tuned to latest upstream
related: rhbz#1546598
- IRQ affinity handled by scheduler plugin
resolves: rhbz#1590937
* Mon Jun 11 2018 Jaroslav Škarvada <[email protected]> - 2.10.0-0.1.rc1
- new release
- rebased tuned to latest upstream
resolves: rhbz#1546598
- script: show stderr output in the log
resolves: rhbz#1536476
- realtime-virtual-host: script.sh: add error checking
resolves: rhbz#1461509
- man: improved tuned-profiles-cpu-partitioning.7
resolves: rhbz#1548148
- bootloader: check if grub2_cfg_file_name is None in _remove_grub2_tuning()
resolves: rhbz#1571403
- plugin_scheduler: whitelist/blacklist processed also for thread names
resolves: rhbz#1512295
- bootloader: patch all GRUB2 config files
resolves: rhbz#1556990
- profiles: added mssql profile
resolves: rhbz#1442122
- tuned-adm: print log excerpt when changing profile
resolves: rhbz#1538745
- cpu-partitioning: use no_balance_cores instead of no_rebalance_cores
resolves: rhbz#1550573
- sysctl: support assignment modifiers as other plugins do
resolves: rhbz#1564092
- oracle: fixed ip_local_port_range parity warning
resolves: rhbz#1527219
- Fix verifying cpumask on systems with more than 32 cores
resolves: rhbz#1528368
- oracle: updated the profile to be in sync with KCS 39188
resolves: rhbz#1447323
* Sun Oct 29 2017 Jaroslav Škarvada <[email protected]> - 2.9.0-1
- new release
- rebased tuned to latest upstream
related: rhbz#1467576
* Fri Oct 20 2017 Jaroslav Škarvada <[email protected]> - 2.9.0-0.2.rc2
- new release
- rebased tuned to latest upstream
related: rhbz#1467576
- fixed expansion of the variables in the 'devices' section
related: rhbz#1490399
- cpu-partitioning: add no_rebalance_cores= option
resolves: rhbz#1497182
* Thu Oct 12 2017 Jaroslav Škarvada <[email protected]> - 2.9.0-0.1.rc1
- new release
- rebased tuned to latest upstream
resolves: rhbz#1467576
- added recommend.d functionality
resolves: rhbz#1459146
- recommend: added support for matching of processes
resolves: rhbz#1461838
- plugin_video: added support for the 'dpm' power method
resolves: rhbz#1417659
- list available profiles on 'tuned-adm profile'
resolves: rhbz#988433
- cpu-partitioning: used tuned instead of tuna for cores isolation
resolves: rhbz#1442229
- inventory: added workaround for pyudev < 0.18
resolves: rhbz#1251240
- realtime: used skew_tick=1 in kernel cmdline
resolves: rhbz#1447938
- realtime-virtual-guest: re-assigned kernel thread priorities
resolves: rhbz#1452357
- bootloader: splitted string for removal from cmdline
resolves: rhbz#1461279
- network-latency: added skew_tick=1 kernel command line parameter
resolves: rhbz#1451073
- bootloader: accepted only certain values for initrd_remove_dir
resolves: rhbz#1455161
- increased udev monitor buffer size, made it configurable
resolves: rhbz#1442306
- bootloader: don't add nonexistent overlay image to grub.cfg
resolves: rhbz#1454340
- plugin_cpu: don't log error in execute() if EPB is not supported
resolves: rhbz#1443182
- sap-hana: fixed description of the sap-hana profiles
resolves: rhbz#1482005
- plugin_systemd: on full_rollback notify about need of initrd regeneration
resolves: rhbz#1469258
- don't log errors about missing files on verify with ignore_missing set
resolves: rhbz#1451435
- plugin_scheduler: improved logging
resolves: rhbz#1474961
- improved checking if we are rebooting or not
resolves: rhbz#1475571
- started dbus exports after a profile is applied
resolves: rhbz#1443142
- sap-hana: changed force_latency to 70
resolves: rhbz#1501252
* Fri Apr 7 2017 Jaroslav Škarvada <[email protected]> - 2.8.0-1
- new release
- rebase tuned to latest upstream
resolves: rhbz#1388454
- cpu-partitioning: enabled timer migration
resolves: rhbz#1408308
- cpu-partitioning: disabled kvmclock sync and ple
resolves: rhbz#1395855
- spec: muted error if there is no selinux support
resolves: rhbz#1404214
- units: implemented instance priority
resolves: rhbz#1246172
- bootloader: added support for initrd overlays
resolves: rhbz#1414098
- cpu-partitioning: set CPUAffinity early in initrd image
resolves: rhbz#1394965
- cpu-partitioning: set workqueue affinity early
resolves: rhbz#1395899
- scsi_host: fixed probing of ALPM, missing ALPM logged as info
resolves: rhbz#1416712
- added new profile cpu-partitioning
resolves: rhbz#1359956
- bootloader: improved inheritance
resolves: rhbz#1274464
- units: mplemented udev-based regexp device matching
resolves: rhbz#1251240
- units: introduced pre_script, post_script
resolves: rhbz#1246176
- realtime-virtual-host: accommodate new ktimersoftd thread
resolves: rhbz#1332563
- defirqaffinity: fixed traceback due to syntax error
resolves: rhbz#1369791
- variables: support inheritance of variables
resolves: rhbz#1433496
- scheduler: added support for cores isolation
resolves: rhbz#1403309
- tuned-profiles-nfv splitted to host/guest and dropped unneeded dependency
resolves: rhbz#1413111
- desktop: fixed typo in profile summary
resolves: rhbz#1421238
- with systemd don't do full rollback on shutdown / reboot
resolves: rhbz#1421286
- builtin functions: added virt_check function and support to include
resolves: rhbz#1426654
- cpulist_present: explicitly sorted present CPUs
resolves: rhbz#1432240
- plugin_scheduler: fixed initialization
resolves: rhbz#1433496
- log errors when applying a profile fails
resolves: rhbz#1434360
- systemd: added support for older systemd CPUAffinity syntax
resolves: rhbz#1441791
- scheduler: added workarounds for low level exceptions from
python-linux-procfs
resolves: rhbz#1441792
- bootloader: workaround for adding tuned_initrd to new kernels on restart
resolves: rhbz#1441797
* Tue Aug 2 2016 Jaroslav Škarvada <[email protected]> - 2.7.1-1
- new-release
- gui: fixed traceback caused by DBus paths copy&paste error
related: rhbz#1356369
- tuned-adm: fixed traceback of 'tuned-adm list' if daemon is not running
resolves: rhbz#1358857
- tuned-adm: fixed profile_info traceback
resolves: rhbz#1362481
* Tue Jul 19 2016 Jaroslav Škarvada <[email protected]> - 2.7.0-1
- new-release
- gui: fixed save profile
resolves: rhbz#1242491
- tuned-adm: added --ignore-missing parameter
resolves: rhbz#1243807
- plugin_vm: added transparent_hugepage alias
resolves: rhbz#1249610
- plugins: added modules plugin
resolves: rhbz#1249618
- plugin_cpu: do not show error if cpupower or x86_energy_perf_policy are
missing
resolves: rhbz#1254417
- tuned-adm: fixed restart attempt if tuned is not running
resolves: rhbz#1258755
- nfv: avoided race condition by using synchronous mode
resolves: rhbz#1259039
- realtime: added check for isolcpus sanity
resolves: rhbz#1264128
- pm_qos: fixed exception if PM_QoS is not available
resolves: rhbz#1296137
- plugin_sysctl: reapply system sysctl after Tuned sysctl are applied
resolves: rhbz#1302953
- atomic: increase number of inotify watches
resolves: rhbz#1322001
- realtime-virtual-host/guest: added rcu_nocbs kernel boot parameter
resolves: rhbz#1334479
- realtime: fixed kernel.sched_rt_runtime_us to be -1
resolves: rhbz#1346715
- tuned-adm: fixed detection of no_daemon mode
resolves: rhbz#1351536
- plugin_base: correctly strip assignment modifiers even if not used
resolves: rhbz#1353142
- plugin_disk: try to workaround embedded '/' in device names
related: rhbz#1353142
- sap-hana: explicitly setting kernel.numa_balancing = 0 for better performance
resolves: rhbz#1355768
- switched to polkit authorization
resolves: rhbz#1095142
- plugins: added scsi_host plugin
resolves: rhbz#1246992
- spec: fixed conditional support for grub2 to work with selinux
resolves: rhbz#1351937
- gui: added tuned icon and desktop file
resolves: rhbz#1356369
* Tue Jan 5 2016 Jaroslav Škarvada <[email protected]> - 2.6.0-1
- new-release
- plugin_cpu: do not show error if cpupower or x86_energy_perf_policy are missing
- plugin_sysctl: fixed quoting of sysctl values
resolves: rhbz#1254538
- tuned-adm: added log file location hint to verify command output
- libexec: fixed listdir and isdir in defirqaffinity.py
resolves: rhbz#1252160
- plugin_cpu: save and restore only intel pstate attributes that were changed
resolves: rhbz#1252156
- functions: fixed sysfs save to work with options
resolves: rhbz#1251507
- plugins: added scsi_host plugin
- tuned-adm: fixed restart attempt if tuned is not running
- spec: fixed post scriptlet to work without grub
resolves: rhbz#1265654
- tuned-profiles-nfv: fix find-lapictscdeadline-optimal.sh for CPUS where ns > 6500
resolves: rhbz#1267284
- functions: fixed restore_logs_syncing to preserve SELinux context on rsyslog.conf
resolves: rhbz#1268901
- realtime: set unboud workqueues cpumask
resolves: rhbz#1259043
- spec: correctly remove tuned footprint from /etc/default/grub
resolves: rhbz#1268845
- gui: fixed creation of new profile
resolves: rhbz#1274609
- profiles: removed nohz_full from the realtime profile
resolves: rhbz#1274486
- profiles: Added nohz_full and nohz=on to realtime guest/host profiles
resolves: rhbz#1274445
- profiles: fixed lapic_timer_adv_ns cache
resolves: rhbz#1259452
- plugin_sysctl: pass verification even if the option doesn't exist
related: rhbz#1252153
- added support for 'summary' and 'description' of profiles,
extended D-Bus API for Cockpit
related: rhbz#1228356
* Tue Aug 4 2015 Jaroslav Škarvada <[email protected]> - 2.5.1-1
- new-release
related: rhbz#1155052
- plugin_scheduler: work with nohz_full
resolves: rhbz#1247184
- fixed realtime-virtual-guest/host profiles packaged twice
resolves: rhbz#1249028
- fixed requirements of realtime and nfv profiles
- fixed tuned-gui not starting
- various other minor fixes
* Sun Jul 5 2015 Jaroslav Škarvada <[email protected]> - 2.5.0-1
- new-release
resolves: rhbz#1155052
- add support for ethtool -C to tuned network plugin
resolves: rhbz#1152539
- add support for ethtool -K to tuned network plugin
resolves: rhbz#1152541
- add support for calculation of values for the kernel command line
resolves: rhbz#1191595
- no error output if there is no hdparm installed
resolves: rhbz#1191775
- do not run hdparm on hotplug events if there is no hdparm tuning
resolves: rhbz#1193682
- add oracle tuned profile
resolves: rhbz#1196298
- fix bash completions for tuned-adm
resolves: rhbz#1207668
- add glob support to tuned sysfs plugin
resolves: rhbz#1212831
- add tuned-adm verify subcommand
resolves: rhbz#1212836
- do not install tuned kernel command line to rescue kernels
resolves: rhbz#1223864
- add variables support
resolves: rhbz#1225124
- add built-in support for unit conversion into tuned
resolves: rhbz#1225135
- fix vm.max_map_count setting in sap-netweaver profile
resolves: rhbz#1228562
- add tuned profile for RHEL-RT
resolves: rhbz#1228801
- plugin_scheduler: added support for runtime tuning of processes
resolves: rhbz#1148546
- add support for changing elevators on xvd* devices (Amazon EC2)
resolves: rhbz#1170152
- add workaround to be run after systemd-sysctl
resolves: rhbz#1189263
- do not change settings of transparent hugepages if set in kernel cmdline
resolves: rhbz#1189868
- add tuned profiles for RHEL-NFV
resolves: rhbz#1228803
- plugin_bootloader: apply $tuned_params to existing kernels
resolves: rhbz#1233004
* Thu Oct 16 2014 Jaroslav Škarvada <[email protected]> - 2.4.1-1
- new-release
- fixed return code of tuned grub template
resolves: rhbz#1151768
- plugin_bootloader: fix for multiple parameters on command line
related: rhbz#1148711
- tuned-adm: fixed traceback on "tuned-adm list"
resolves: rhbz#1149162
- plugin_bootloader is automatically disabled if grub2 is not found
resolves: rhbz#1150047
- plugin_disk: set_spindown and set_APM made independent
resolves: rhbz#976725
* Wed Oct 1 2014 Jaroslav Škarvada <[email protected]> - 2.4.0-1
- new-release
resolves: rhbz#1093883
- fixed traceback if profile cannot be loaded
related: rhbz#953128
- powertop2tuned: fixed traceback if rewriting file instead of dir
resolves: rhbz#963441
- daemon: fixed race condition in start/stop
- improved timings, it can be fine tuned in /etc/tuned/tuned-main.conf
resolves: rhbz#1028122
- throughput-performance: altered dirty ratios for better performance
resolves: rhbz#1043533
- latency-performance: leaving THP on its default
resolves: rhbz#1064510
- used throughput-performance profile on server by default
resolves: rhbz#1063481
- network-latency: added new profile
resolves: rhbz#1052418
- network-throughput: added new profile
resolves: rhbz#1052421
- recommend.conf: fixed config file
resolves: rhbz#1069123
- spec: added kernel-tools requirement
resolves: rhbz#1073008
- systemd: added cpupower.service conflict
resolves: rhbz#1073392
- balanced: used medium_power ALPM policy
- added support for >, < assignment modifiers in tuned.conf
- handled root block devices
- balanced: used conservative CPU governor
resolves: rhbz#1124125
- plugins: added selinux plugin
- plugin_net: added nf_conntrack_hashsize parameter
- profiles: added atomic-host profile
resolves: rhbz#1091977
- profiles: added atomic-guest profile
resolves: rhbz#1091979
- moved profile autodetection from post install script to tuned daemon
resolves: rhbz#1144067
- profiles: included sap-hana and sap-hana-vmware profiles
- man: structured profiles manual pages according to sub-packages
- added missing hdparm dependency
resolves: rhbz#1144858
- improved error handling of switch_profile
resolves: rhbz#1068699
- tuned-adm: active: detect whether tuned deamon is running
related: rhbz#1068699
- removed active_profile from RPM verification
resolves: rhbz#1104126
- plugin_disk: readahead value can be now specified in sectors
resolves: rhbz#1127127
- plugins: added bootloader plugin
resolves: rhbz#1044111
- plugin_disk: added error counter to hdparm calls
- plugins: added scheduler plugin
resolves: rhbz#1100826
- added tuned-gui
* Wed Nov 6 2013 Jaroslav Škarvada <[email protected]> - 2.3.0-1
- new-release
resolves: rhbz#1020743
- audio plugin: fixed audio settings in standard profiles
resolves: rhbz#1019805
- video plugin: fixed tunings
- daemon: fixed crash if preset profile is not available
resolves: rhbz#953128
- man: various updates and corrections
- functions: fixed usb and bluetooth handling
- tuned: switched to lightweighted pygobject3-base
- daemon: added global config for dynamic_tuning
resolves: rhbz#1006427
- utils: added pmqos-static script for debug purposes
resolves: rhbz#1015676
- throughput-performance: various fixes
resolves: rhbz#987570
- tuned: added global option update_interval
- plugin_cpu: added support for x86_energy_perf_policy
resolves: rhbz#1015675
- dbus: fixed KeyboardInterrupt handling
- plugin_cpu: added support for intel_pstate
resolves: rhbz#996722
- profiles: various fixes
resolves: rhbz#922068
- profiles: added desktop profile
resolves: rhbz#996723
- tuned-adm: implemented non DBus fallback control
- profiles: added sap profile
- tuned: lowered CPU usage due to python bug
resolves: rhbz#917587
* Tue Mar 19 2013 Jaroslav Škarvada <[email protected]> - 2.2.2-1
- new-release:
- cpu plugin: fixed cpupower workaround
- cpu plugin: fixed crash if cpupower is installed
* Fri Mar 1 2013 Jaroslav Škarvada <[email protected]> - 2.2.1-1
- new release:
- audio plugin: fixed error handling in _get_timeout
- removed cpupower dependency, added sysfs fallback
- powertop2tuned: fixed parser crash on binary garbage
resolves: rhbz#914933
- cpu plugin: dropped multicore_powersave as kernel upstream already did
- plugins: options manipulated by dynamic tuning are now correctly saved and restored
- powertop2tuned: added alias -e for --enable option
- powertop2tuned: new option -m, --merge-profile to select profile to merge
- prefer transparent_hugepage over redhat_transparent_hugepage
- recommend: use recommend.conf not autodetect.conf
- tuned.service: switched to dbus type service
resolves: rhbz#911445
- tuned: new option --pid, -P to write PID file
- tuned, tuned-adm: added new option --version, -v to show version
- disk plugin: use APM value 254 for cleanup / APM disable instead of 255
resolves: rhbz#905195
- tuned: new option --log, -l to select log file
- powertop2tuned: avoid circular deps in include (one level check only)
- powertop2tuned: do not crash if powertop is not installed