- Add a workaround for rt cgroup controller.
This commit is contained in:
		
							parent
							
								
									6501285b8b
								
							
						
					
					
						commit
						41434f7895
					
				
							
								
								
									
										20
									
								
								04-fedora-workaround-for-sysdefault.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								04-fedora-workaround-for-sysdefault.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| diff --git a/scripts/init.d/cgconfig b/scripts/init.d/cgconfig
 | ||||
| index 1c60b86..fe3ff65 100644
 | ||||
| --- a/scripts/init.d/cgconfig
 | ||||
| +++ b/scripts/init.d/cgconfig
 | ||||
| @@ -122,6 +122,15 @@ start() {
 | ||||
|                      ${MOUNTPOINT[$i]}/$defaultcgroup/cpuset.mems | ||||
|              fi | ||||
|              # | ||||
| +            # special rule for cpu
 | ||||
| +            #
 | ||||
| +            echo ${MOUNTOPTS[$i]} | grep -q -w cpu
 | ||||
| +            if [ $? -eq 0 ]
 | ||||
| +            then
 | ||||
| +                cat ${MOUNTPOINT[$i]}/cpu.rt_runtime_us > \
 | ||||
| +                    ${MOUNTPOINT[$i]}/$defaultcgroup/cpu.rt_runtime_us
 | ||||
| +	    fi
 | ||||
| +            #
 | ||||
|              # classify everything to default cgroup | ||||
|              # | ||||
|              for j in `ps --no-headers -eL o tid` | ||||
| @ -2,13 +2,14 @@ Name: libcgroup | ||||
| Summary: Tools and libraries to control and monitor control groups | ||||
| Group: Development/Libraries | ||||
| Version: 0.33 | ||||
| Release: 2%{?dist} | ||||
| Release: 3%{?dist} | ||||
| License: LGPLv2+ | ||||
| URL: http://libcg.sourceforge.net/ | ||||
| Source0: http://downloads.sourceforge.net/libcg/%{name}-%{version}.tar.bz2 | ||||
| Patch0: http://downloads.sourceforge.net/libcg/01-fedora-fix-build.patch | ||||
| Patch1: http://downloads.sourceforge.net/libcg/02-fedora-fix-initscripts.patch | ||||
| Patch2: http://downloads.sourceforge.net/libcg/03-fedora-adjust-initscript-priority.patch | ||||
| Patch3: http://downloads.sourceforge.net/libcg/04-fedora-workaround-for-sysdefault.patch | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||||
| BuildRequires: byacc | ||||
| BuildRequires: flex | ||||
| @ -38,6 +39,7 @@ provide scripts to manage that configuration. | ||||
| %patch0 -p1 | ||||
| %patch1 -p1 | ||||
| %patch2 -p1 | ||||
| %patch3 -p1 | ||||
| 
 | ||||
| %build | ||||
| %configure --bindir=/bin --sbindir=/sbin --libdir=/%{_lib} | ||||
| @ -104,6 +106,8 @@ rm -rf $RPM_BUILD_ROOT | ||||
| 
 | ||||
| 
 | ||||
| %changelog | ||||
| * Mon Mar 09 2009 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.33-3 | ||||
| - Add a workaround for rt cgroup controller. | ||||
| * Mon Mar 09 2009 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.33-2 | ||||
| - Change the cgconfig script to start earlier | ||||
| - Move the binaries to /bin and /sbin | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user