!32 remove PIDFile in irqbalance.service and add IRQBALANCE_BANNED_INTERRUPTS in irqbalance.sysconfig
From: @SuperSix173 Reviewed-by: @wangbin224 Signed-off-by: @wangbin224
This commit is contained in:
commit
9852dc1539
@ -8,7 +8,6 @@ After=syslog.target
|
||||
[Service]
|
||||
OOMScoreAdjust=-500
|
||||
Type=forking
|
||||
PIDFile=/var/run/irqbalance.pid
|
||||
EnvironmentFile=/etc/sysconfig/irqbalance
|
||||
ExecStart=/usr/sbin/irq_balancer
|
||||
StartLimitInterval=10
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
Summary: A dynamic adaptive IRQ balancing daemon
|
||||
Name: irqbalance
|
||||
Version: 1.7.0
|
||||
Release: 3
|
||||
Release: 4
|
||||
Epoch: 3
|
||||
License: GPLv2
|
||||
Source0: https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz#/irqbalance-%{version}.tar.gz
|
||||
Source1: irqbalance.service
|
||||
Source2: irq_balancer
|
||||
Source2: irqbalance.sysconfig
|
||||
Source3: irq_balancer
|
||||
Url: https://github.com/irqbalance/irqbalance
|
||||
|
||||
BuildRequires: gdb autoconf automake libtool libcap-ng systemd
|
||||
@ -45,8 +46,8 @@ CFLAGS="%{optflags}" %make_build CFLAGS+='-fstack-protector-strong '
|
||||
%install
|
||||
install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
|
||||
install -D -p -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service
|
||||
install -D -p -m 0644 ./misc/irqbalance.env %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||
install -D -p -m 0755 %{SOURCE2} %{buildroot}%{_sbindir}/irq_balancer
|
||||
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||
install -D -p -m 0755 %{SOURCE3} %{buildroot}%{_sbindir}/irq_balancer
|
||||
|
||||
install -d %{buildroot}%{_mandir}/man1/
|
||||
install -p -m 0644 ./%{name}.1 %{buildroot}%{_mandir}/man1/
|
||||
@ -80,6 +81,12 @@ fi
|
||||
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
|
||||
|
||||
%changelog
|
||||
* Tue May 2 2021 Liu Chao <liuchao173@huawei.com> - 3:1.7.0-4
|
||||
- Type:enhanced
|
||||
- ID:NA
|
||||
- SUG:restart
|
||||
- DESC:remove PIDFile in irqbalance.service and add IRQBALANCE_BANNED_INTERRUPTS in irqbalance.sysconfig
|
||||
|
||||
* Tue Jan 15 2021 Yunfeng Ye<yeyunfeng@huawei.com> - 3:1.7.0-3
|
||||
- Type:enhanced
|
||||
- ID:NA
|
||||
|
||||
38
irqbalance.sysconfig
Normal file
38
irqbalance.sysconfig
Normal file
@ -0,0 +1,38 @@
|
||||
# irqbalance is a daemon process that distributes interrupts across
|
||||
# CPUs on SMP systems. The default is to rebalance once every 10
|
||||
# seconds. This is the environment file that is specified to systemd via the
|
||||
# EnvironmentFile key in the service unit file (or via whatever method the init
|
||||
# system you're using has).
|
||||
|
||||
#
|
||||
# IRQBALANCE_ONESHOT
|
||||
# After starting, wait for a minute, then look at the interrupt
|
||||
# load and balance it once; after balancing exit and do not change
|
||||
# it again.
|
||||
#
|
||||
#IRQBALANCE_ONESHOT=
|
||||
|
||||
#
|
||||
# IRQBALANCE_BANNED_CPUS
|
||||
# 64 bit bitmask which allows you to indicate which CPUs should
|
||||
# be skipped when reblancing IRQs. CPU numbers which have their
|
||||
# corresponding bits set to one in this mask will not have any
|
||||
# IRQs assigned to them on rebalance.
|
||||
#
|
||||
#IRQBALANCE_BANNED_CPUS=
|
||||
|
||||
#
|
||||
# IRQBALANCE_BANNED_INTERRUPTS
|
||||
# Interrupts that don't get banlanced as list (separation character
|
||||
# doesn't matter). For example broken chipsets don't allow the timer
|
||||
# interrupt to be set to another CPU than the first, and with this
|
||||
# option that policy can be applied.
|
||||
#
|
||||
#IRQBALANCE_BANNED_INTERRUPTS=""
|
||||
|
||||
#
|
||||
# IRQBALANCE_ARGS
|
||||
# Append any args here to the irqbalance daemon as documented in the man
|
||||
# page.
|
||||
#
|
||||
#IRQBALANCE_ARGS=
|
||||
Loading…
x
Reference in New Issue
Block a user