OBS User unknown 2007-04-26 22:28:53 +00:00 committed by Git OBS Bridge
parent d3e679aeb3
commit 27c387a1d1
3 changed files with 17 additions and 7 deletions

View File

@ -26,9 +26,7 @@
# Check for missing binaries (stale symlinks should not happen)
IRQBALANCE_BIN=/usr/sbin/irqbalance
test -x $IRQBALANCE_BIN || exit 5
PHYS=$(grep '^physical id' /proc/cpuinfo | sort -u | wc -l)
PROC=$(grep -c '^processor' /proc/cpuinfo)
TIMER_IRQ=$(cat /proc/interrupts |grep timer | cut -f 1 -d ':' | sed -e 's/ \+//g')
. /etc/rc.status
@ -38,10 +36,11 @@ rc_reset
case "$1" in
start)
echo -n "Starting irqbalance "
if [ $PHYS -gt 1 ] || [ $PROC -gt 1 -a $PHYS -eq 0 ] ; then
if [ -n "$TIMER_IRQ" ] ; then
export IRQBALANCE_BANNED_INTERRUPTS="$TIMER_IRQ"
fi
# still check the number of processors here althought the irq
# balancer terminates automatically if number_cpus == 0
# simply to provide a better user output ('unused' vs. 'done')
if [ $PROC -gt 1 ] ; then
startproc $IRQBALANCE_BIN
# Remember status and be verbose
rc_status -v

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Apr 26 20:53:45 CEST 2007 - bwalle@suse.de
- remove special handling of timer interrupt and dual core
systems from init script because the new irq balancer does
that automatically
-------------------------------------------------------------------
Mon Apr 16 00:19:32 CEST 2007 - bwalle@suse.de

View File

@ -16,7 +16,7 @@ Group: System/Daemons
Autoreqprov: on
PreReq: %insserv_prereq
Version: 0.55
Release: 2
Release: 5
Summary: Balance IRQs on SMP Machines
Source: %{name}-%{version}.tar.bz2
Source1: irqbalance.pod
@ -77,6 +77,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/irqbalance.1.gz
%changelog
* Thu Apr 26 2007 - bwalle@suse.de
- remove special handling of timer interrupt and dual core
systems from init script because the new irq balancer does
that automatically
* Mon Apr 16 2007 - bwalle@suse.de
- wrote manpage for irqbalance
* Wed Apr 11 2007 - bwalle@suse.de