diff --git a/irqbalance.rules b/irqbalance.rules deleted file mode 100644 index 0f0f93e..0000000 --- a/irqbalance.rules +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -echo > /dev/null diff --git a/irqbalance.spec b/irqbalance.spec index 808051d..513e423 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -1,14 +1,12 @@ Summary: A dynamic adaptive IRQ balancing daemon Name: irqbalance Version: 1.8.0 -Release: 5 +Release: 6 Epoch: 3 License: GPLv2 Source0: https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz#/irqbalance-%{version}.tar.gz Source1: irqbalance.service -Source2: irqbalance.sysconfig -Source3: irqbalance.rules -Source4: irq_balancer +Source2: irq_balancer Url: https://github.com/irqbalance/irqbalance BuildRequires: autoconf automake libtool libcap-ng systemd @@ -46,9 +44,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 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name} -install -D -p -m 0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}.rules -install -D -p -m 0755 %{SOURCE4} %{buildroot}%{_sbindir}/irq_balancer +install -D -p -m 0644 ./misc/irqbalance.env %{buildroot}%{_sysconfdir}/sysconfig/%{name} +install -D -p -m 0755 %{SOURCE2} %{buildroot}%{_sbindir}/irq_balancer install -d %{buildroot}%{_mandir}/man1/ install -p -m 0644 ./%{name}.1 %{buildroot}%{_mandir}/man1/ @@ -61,7 +58,6 @@ make check %{_sbindir}/%{name} %{_unitdir}/%{name}.service %config(noreplace) %{_sysconfdir}/sysconfig/%{name} -%{_sysconfdir}/sysconfig/%{name}.rules %{_sbindir}/irq_balancer %files help @@ -83,7 +79,13 @@ fi /sbin/chkconfig --del %{name} >/dev/null 2>&1 || : %changelog -*Thu Nov 11 2021 Liu Chao - 3:1.8.0-5 +* Sat Jan 15 2022 Liu Chao - 3:1.8.0-6 +- Type:bugfix +- ID:NA +- SUG:restart +- DESC: remove --hintpolicy to avoid startup fails and useless file irqbalance.rules + +* Thu Nov 11 2021 Liu Chao - 3:1.8.0-5 - Type:bugfix - ID:NA - SUG:restart diff --git a/irqbalance.sysconfig b/irqbalance.sysconfig deleted file mode 100644 index a4ad313..0000000 --- a/irqbalance.sysconfig +++ /dev/null @@ -1,52 +0,0 @@ -# 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_CPULIST -# The CPUs list which allows you to indicate which CPUs should -# be skipped when reblancing IRQs. CPU numbers in CPUs list will -# not have any IRQs assigned to them on rebalance. -# -# The format of CPUs list is: -# ,..., -# or a range: -# - -# or a mixture: -# ,...,- -# -#IRQBALANCE_BANNED_CPULIST= - -# -# 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="--hintpolicy=subset"