Example #1
0
 def cgmigrate(group_from, group_to):
     """Migrate tasks from one group to another."""
     subsystems = cgroups.available_subsystems()
     for subsystem in subsystems:
         try:
             _transfer_processes(subsystem, group_from, group_to)
         except:  # pylint: disable=W0702
             pass
Example #2
0
 def test_available_subsystems(self):
     """Test functions """
     subsystems = cgroups.available_subsystems()
     self.assertEqual(['cpu', 'cpuacct', 'memory'], subsystems)