/external/autotest/client/tests/cgroup/ |
control | 2 NAME = "Cgroup" 12 job.run_test('cgroup')
|
cgroup_common.py | 4 Helpers for cgroup testing. 15 class Cgroup(object): 17 Cgroup handling class. 22 @param module: Name of the cgroup module 34 @param modules: Array of all available cgroup modules. 48 Creates new temporary cgroup 49 @param root: where to create this cgroup (default: self.root) 54 pwd = mkdtemp(prefix='cgroup-', dir=root) + '/' 56 pwd = mkdtemp(prefix='cgroup-', dir=self.root) + '/' 65 Removes cgroup [all...] |
cgroup.py | 7 from cgroup_common import Cgroup as CG 10 class cgroup(test.test): class in inherits:test.test 12 Tests the cgroup functionalities. It works by creating a process (which is 22 Try to access different resources which are restricted by cgroup. 24 logging.info('Starting cgroup testing') 61 raise error.TestFail('Can\'t mount any cgroup modules') 84 err += "\nCan't remove cgroup directory" 97 raise error.TestFail("cgroup init failed") 104 raise error.TestFail("Can't create cgroup") 140 # Fill the memory without cgroup limitatio [all...] |
/external/iproute2/man/man8/ |
tc-cgroup.8 | 1 .TH "Cgroup classifier in tc" 8 " 21 Oct 2015" "iproute2" "Linux" 4 cgroup \- control group based traffic control filter 8 .BR tc " " filter " ... " cgroup " [ " match 31 cgroup named "foobar": 36 mkdir /sys/fs/cgroup/net_cls 37 mount -t cgroup -onet_cls net_cls /sys/fs/cgroup/net_cls 38 mkdir /sys/fs/cgroup/net_cls/foobar 42 To assign a class ID to the created cgroup, a file named 51 assigns class ID 1:2 to foobar cgroup [all...] |
/external/autotest/client/site_tests/platform_ChromeCgroups/ |
platform_ChromeCgroups.py | 11 CGROUP_DIR = '/sys/fs/cgroup/cpu/chrome_renderers' 20 Returns the set of tasks in a cgroup. 22 @param cgroup_dir Directory containing the cgroup. 30 logging.info('tasks in cgroup %s: %s', cgroup_dir, ','.join(tasks)) 39 # Make sure the cgroup directories actually exist. 41 raise error.TestFail('chrome_renderers cgroup does not exist') 43 raise error.TestFail('foreground cgroup does not exist') 45 raise error.TestFail('background cgroup does not exist') 58 raise error.TestFail('no tasks in foreground cgroup') 60 raise error.TestFail('no tasks in background cgroup') [all...] |
/external/fio/ |
cgroup.c | 2 * Code related to setting up a blkio cgroup 11 #include "cgroup.h" 36 if (!strcmp(mnt->mnt_type, "cgroup") && 44 log_err("fio: cgroup blkio does not appear to be mounted\n"); 61 log_err("fio: failed to allocate cgroup member\n"); 104 if (td->o.cgroup) 105 sprintf(str, "%s%s%s", mnt, FIO_OS_PATH_SEPARATOR, td->o.cgroup); 136 return write_int_to_file(td, root, "tasks", val, "cgroup write pid"); 165 td_verror(td, __e, "cgroup mkdir"); 175 "cgroup open weight") [all...] |
/external/autotest/client/site_tests/kernel_SchedBandwith/ |
control | 7 Runs a cpu-hogging process in the Chrome renderer background cgroup, which is 12 Checks that /sys/fs/cgroup/cpu/chrome_renderers/background/cpu.cfs_quota_us
|
kernel_SchedBandwith.py | 16 """Test kernel CFS_BANDWIDTH scheduler mechanism (/sys/fs/cgroup/...)""" 24 _CG_DIR = "/sys/fs/cgroup/cpu" 96 """Start a CPU hogging task and add to cgroup. 99 in_cgroup: Boolean, if true add to cgroup otherwise just start. 124 """Set CPU quota that can be used for cgroup 144 """Set CPU shares that can be used for cgroup 226 raise error.TestError("Locating cgroup dir %s" % self._CG_CRB_DIR) 243 error.TestFail("Cgroup bandwidth throttling not working")
|
/external/autotest/client/site_tests/kernel_SchedCgroups/ |
kernel_SchedCgroups.py | 27 utils.system('mount -t cgroup cgroup %s -o cpu' % self._tmpdir)
|
control | 20 This test tries to create a cgroup hierarchy and verifies division of CPU within
|
/external/libnl/src/cls/ |
cgroup.c | 2 * src/cls/cgroup.c Control Groups Classifier 12 #include <netlink/route/cls/cgroup.h> 18 "Usage: ... cgroup [OPTIONS]...\n" 66 .name = "cgroup",
|
/system/sepolicy/ |
mediadrmserver.te | 29 r_dir_file(mediadrmserver, cgroup) 30 allow mediadrmserver cgroup:dir { search write }; 31 allow mediadrmserver cgroup:file w_file_perms;
|
bootanim.te | 31 r_dir_file(bootanim, cgroup)
|
dhcp.te | 8 allow dhcp cgroup:dir { create write add_name };
|
lmkd.te | 32 allow lmkd cgroup:dir { remove_name rmdir };
|
racoon.te | 13 allow racoon cgroup:dir { add_name create };
|
/external/libnl/include/netlink/route/cls/ |
cgroup.h | 2 * netlink/route/cls/cgroup.h Control Groups Classifier
|
/external/libnl/lib/route/cls/ |
cgroup.c | 2 * lib/route/cls/cgroup.c Control Groups Classifier 14 * @defgroup cgroup Control Groups Classifier 26 #include <netlink/route/cls/cgroup.h> 121 .co_kind = "cgroup",
|
/system/update_engine/common/ |
cpu_limiter.cc | 30 // Cgroup container is created in update-engine's upstart script located at 32 const char kCGroupSharesPath[] = "/sys/fs/cgroup/cpu/update-engine/cpu.shares"; 71 LOG(INFO) << "Setting cgroup cpu shares to " << string_shares; 74 LOG(ERROR) << "Failed to change cgroup cpu shares to " << string_shares
|
/system/update_engine/init/ |
update-engine.conf | 33 # Put update_engine process in its own cgroup. 36 cgroup_dir="/sys/fs/cgroup/cpu/${UPSTART_JOB}"
|
/device/lge/bullhead/sepolicy/ |
rmt.te | 17 allow rmt cgroup:dir { create add_name };
|
/frameworks/base/core/tests/coretests/src/android/os/ |
BinderThreadPriorityTest.java | 79 Process.setThreadPriority(mSavedPriority); // To realign priority & cgroup, if needed 98 String fn = "/proc/" + Process.myPid() + "/task/" + Process.myTid() + "/cgroup"; 100 String cgroup = FileUtils.readTextFile(new File(fn), 1024, null); local 101 for (String line : cgroup.split("\n")) {
|
/external/kernel-headers/original/uapi/linux/ |
cgroupstats.h | 1 /* cgroupstats.h - exporting per-cgroup statistics 22 * Data shared between user space and kernel space on a per cgroup
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
cgroupstats.h | 1 /* cgroupstats.h - exporting per-cgroup statistics 22 * Data shared between user space and kernel space on a per cgroup
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
cgroupstats.h | 1 /* cgroupstats.h - exporting per-cgroup statistics 22 * Data shared between user space and kernel space on a per cgroup
|