# # spec file for package irqbalance (Version 0.09) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: irqbalance License: GNU General Public License (GPL) Group: System/Daemons Autoreqprov: on PreReq: %insserv_prereq Version: 0.09 Release: 91 Summary: Balance IRQs on SMP Machines Source: %{name}-%{version}.tar.gz Source2: irq_balancer BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch0: irqbalance-increase-limits Patch1: irqbalance-increase-limits2 Patch2: irqbalance-assert.diff %description irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from being used for all IRQs. Authors: -------- Arjan van de Ven %prep %setup -n irqbalance %patch0 -p1 %patch1 %patch2 -p1 %build rm -rf $RPM_BUILD_ROOT make CFLAGS="$RPM_OPT_FLAGS -fPIE -pie" %install mkdir -p $RPM_BUILD_ROOT/usr/sbin mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/ cp irqbalance $RPM_BUILD_ROOT/usr/sbin cp $RPM_SOURCE_DIR/irq_balancer $RPM_BUILD_ROOT/etc/init.d ln -s /etc/init.d/irq_balancer $RPM_BUILD_ROOT/usr/sbin/rcirq_balancer cp irqbalance.1 $RPM_BUILD_ROOT/usr/share/man/man1/ %clean rm -rf $RPM_BUILD_ROOT %preun %stop_on_removal irq_balancer %post %insserv_force_if_yast irq_balancer %postun %restart_on_update irq_balancer %insserv_cleanup %files %defattr(-,root,root,-) /usr/sbin/irqbalance /etc/init.d/irq_balancer /usr/sbin/rcirq_balancer /usr/share/man/*/* %changelog * Tue Apr 03 2007 - bwalle@suse.de - increased IRQ number to (256 + (32*MAX_CPU)) as done in the x86_64 kernel * Fri Jul 14 2006 - sf@suse.de - added patch from bug #171500, fixing regexps * Tue May 16 2006 - sf@suse.de - added irqbalance-assert.diff to completely fix bug #158186 (see changelog entry below) * Tue May 09 2006 - sf@suse.de - increase MAX_INTERRUPTS to 512 to avoid segfault (bug #158186) * Wed May 03 2006 - sf@suse.de - modified startscript to start irqbalancing only on real SMP machines (multisocket) (bug #171500) * Thu Feb 09 2006 - ak@suse.de - increase max number of cpus to 128 (#146945) - install manpage * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Mon Oct 31 2005 - dmueller@suse.de - don't build as root * Fri Sep 02 2005 - ro@suse.de - rcscript: ignore on machines with < 2 CPUs * Tue Jun 21 2005 - ro@suse.de - build with fPIE/pie * Mon Feb 16 2004 - sf@suse.de - update to 0.09 * Sat Sep 20 2003 - kukuk@suse.de - Add PreRequires for insserv * Thu Sep 04 2003 - ro@suse.de - added stop_on_removal and restart_on_update - changed insserv_and_fillup to insserv_force_if_yast * Thu Sep 04 2003 - sf@suse.de - added %%insserv_and_fillup in %%post and %%insserv_cleanup in %%postun * Thu Sep 04 2003 - ak@suse.de - update to version 0.6 - Clean up init script a bit - Move initscript outside tar and mark as source * Fri Mar 21 2003 - sf@suse.de - initial version 0.1