This commit is contained in:
parent
d3e679aeb3
commit
27c387a1d1
11
irq_balancer
11
irq_balancer
@ -26,9 +26,7 @@
|
|||||||
# Check for missing binaries (stale symlinks should not happen)
|
# Check for missing binaries (stale symlinks should not happen)
|
||||||
IRQBALANCE_BIN=/usr/sbin/irqbalance
|
IRQBALANCE_BIN=/usr/sbin/irqbalance
|
||||||
test -x $IRQBALANCE_BIN || exit 5
|
test -x $IRQBALANCE_BIN || exit 5
|
||||||
PHYS=$(grep '^physical id' /proc/cpuinfo | sort -u | wc -l)
|
|
||||||
PROC=$(grep -c '^processor' /proc/cpuinfo)
|
PROC=$(grep -c '^processor' /proc/cpuinfo)
|
||||||
TIMER_IRQ=$(cat /proc/interrupts |grep timer | cut -f 1 -d ':' | sed -e 's/ \+//g')
|
|
||||||
|
|
||||||
. /etc/rc.status
|
. /etc/rc.status
|
||||||
|
|
||||||
@ -38,10 +36,11 @@ rc_reset
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting irqbalance "
|
echo -n "Starting irqbalance "
|
||||||
if [ $PHYS -gt 1 ] || [ $PROC -gt 1 -a $PHYS -eq 0 ] ; then
|
|
||||||
if [ -n "$TIMER_IRQ" ] ; then
|
# still check the number of processors here althought the irq
|
||||||
export IRQBALANCE_BANNED_INTERRUPTS="$TIMER_IRQ"
|
# balancer terminates automatically if number_cpus == 0
|
||||||
fi
|
# simply to provide a better user output ('unused' vs. 'done')
|
||||||
|
if [ $PROC -gt 1 ] ; then
|
||||||
startproc $IRQBALANCE_BIN
|
startproc $IRQBALANCE_BIN
|
||||||
# Remember status and be verbose
|
# Remember status and be verbose
|
||||||
rc_status -v
|
rc_status -v
|
||||||
|
@ -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
|
Mon Apr 16 00:19:32 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Group: System/Daemons
|
|||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
PreReq: %insserv_prereq
|
PreReq: %insserv_prereq
|
||||||
Version: 0.55
|
Version: 0.55
|
||||||
Release: 2
|
Release: 5
|
||||||
Summary: Balance IRQs on SMP Machines
|
Summary: Balance IRQs on SMP Machines
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: irqbalance.pod
|
Source1: irqbalance.pod
|
||||||
@ -77,6 +77,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/irqbalance.1.gz
|
%{_mandir}/man1/irqbalance.1.gz
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 16 2007 - bwalle@suse.de
|
||||||
- wrote manpage for irqbalance
|
- wrote manpage for irqbalance
|
||||||
* Wed Apr 11 2007 - bwalle@suse.de
|
* Wed Apr 11 2007 - bwalle@suse.de
|
||||||
|
Loading…
x
Reference in New Issue
Block a user