# # spec file for package cpuset (Version 1.04) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: cpuset Version: 1.04 Release: 1 Summary: Allows manipluation of cpusets on system and provides higher level functions. Source: %{name}-%{version}.tar.gz License: GPL v2 only Group: System/Management BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://developer.novell.com/wiki/index.php/Cpuset BuildRequires: python-devel %py_requires %description Cpuset is a Python application to make using the cpusets facilities in the Linux kernel easier. The actual included command is called cset and it allows manipulation of cpusets on system and provides higher level functions such as implementation and control of a basic cpu shielding setup. It is recommended that you run at least 2.6.22 for best results. Authors: -------- Alex Tsariounov %prep %setup %build python setup.py build #make doc ->not yet, asciidoc is missing... %install python setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix} cd doc ; prefix=$RPM_BUILD_ROOT%{_mandir} make install ; cd .. for i in `( cd $RPM_BUILD_ROOT ; find * | sort )` ; do if ! test -d $RPM_BUILD_ROOT/$i ; then echo "/$i" fi done > %{_builddir}/%{name}.list %clean rm -rf $RPM_BUILD_ROOT %files -f %{_builddir}/%{name}.list %defattr(-,root,root) %dir %{py_sitedir}/cpuset %dir %{py_sitedir}/cpuset/commands %dir %{_defaultdocdir}/cpuset %changelog * Wed Sep 03 2008 alext@suse.de - Update to svn version 135, release 1.04 - Fixes bnc#422324 - Cset tool fails when cpu offlined * Sat Jul 19 2008 alext@suse.de - Update to svn version 133, release 1.03 - Remove class variable CpuSet.sets dictionary when CpuSet object (re)initialized. If you use cset as a library, then since the class var did not get zeroed out, old sets were found on cset.rescan() which broke the data structure. - Fixes bnc#410636 * Wed Jun 11 2008 alext@suse.de - Update to svn version 126, release 1.02 - Fix bug in new cpuset mount detection code * Tue Jun 10 2008 alext@suse.de - Update to svn version 122, release 1.01 - Fix community reported bug of not seeing cpuset filesystem mounted if running control groups (cgroups) - Remove need to mount cpuset filesystem if only executing help - Fix traceback if giving list of sets to list procs command * Sat May 31 2008 alext@suse.de - Update to svn version 117, release 1.0 - Addition of man pages and html docs * Fri May 09 2008 alext@suse.de - Update to svn revision 104, release 0.9.1 - Fix bug #388958 - Add files README and COPYING to rpm * Fri May 02 2008 alext@suse.de - Update to svn version 102, release 0.9 - Added -k/--kthread to proc move command to move kernel threads - Kernel threads are not moved automatically for generic move unless -k is also used - If kernel threads are not unbound, then both -k and -a is necessary - Improved information output for why tasks are moved or not - FYI: previous release 0.8 was svn revision 96 * Wed Apr 23 2008 alext@suse.de - Fixed bug #380819 - Fixed incorrect test for unbound task for shield; affects kernel thread shielding - Change proc -l to always output long listing of tasks in specified cpuset since set -l will output summary - Removed text re recommending 2.6.22 - Added correct source url - Added check for existing subsets for set --delete command - Switched to Novell Outerforge for svn: http://developer.novell.com/wiki/index.php/Cpuset * Thu Apr 03 2008 alext@suse.de - Update to svn version 143, release 0.7 - First fully functional release: commands shield, set and proc work. - Updated online docs. - Known issues: - irq threads not moved for -kon for shield command - odd messages output from OS when incorrect cpusets commands issued - missing documentation: man pages and tutorial * Fri Mar 21 2008 alext@suse.de - Update to svn version 127, release 0.6 - Added --user/--group for exec options for the shield and proc commands. Cset still needs to be root in order to manipulate cpusets, but you can exec other processes as different users. - Removed explicit check for root uid. Now all permissions checks are implicit. - Changed proc/--run to proc/--exec to match shield. - Shield/unshield commands now only move tasks from unshield to shield or shield to unshield, and leave tasks in the root cpuset alone, unless the --force option is specified. - Added clearer output feedback. * Tue Mar 18 2008 alext@suse.de - Update to svn version 116, release 0.5 - Fixes to cset/proc command for moving tasks. - More cset/set code, but set still not 100%%. * Sat Mar 15 2008 alext@suse.de - Update to svn version 109, release 0.4 - The proc command is fully functional. The set command has documentation and revised options. The mem command has been removed. * Wed Mar 12 2008 alext@suse.de - Update to svn version 89, release 0.3 - Incorporate feedback for shield supercommand from initial 0.2 release. * Sat Feb 16 2008 alext@suse.de - Update to version 0.2, svn version 77. - The shield supercommand is fully functional. Other commands are not yet implemented. * Thu Jan 24 2008 alext@suse.de - Remove error in abuild for including generic doc directory in list of files * Thu Jan 24 2008 alext@suse.de - Changed --record to --record-rpm to fix build. * Wed Jan 16 2008 alext@suse.de - Initial submission to autobuild, pdb entry exists. - Currently not functional, version set to 0.1.