Searched refs:swap_total (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/kernel/mem/tunable/ |
D | overcommit_memory.c | 99 long mem_total, swap_total; in setup() local 117 swap_total = SAFE_READ_MEMINFO("SwapTotal:"); in setup() 118 tst_res(TINFO, "SwapTotal is %ld kB", swap_total); in setup() 119 sum_total = mem_total + swap_total; in setup()
|
/external/autotest/client/site_tests/power_LowMemorySuspend/ |
D | power_LowMemorySuspend.py | 129 swap_total = meminfo.SwapTotal 136 perf_results['swap_total'] = swap_total 148 value=swap_total, units='KB')
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise09.c | 317 long int swap_total; in setup() local 329 SAFE_FILE_LINES_SCANF("/proc/meminfo", "SwapTotal: %ld", &swap_total); in setup() 330 if (swap_total <= 0) in setup()
|
/external/autotest/client/site_tests/platform_CompressedSwapPerf/ |
D | platform_CompressedSwapPerf.py | 183 self.swap_total = utils.read_from_meminfo('SwapTotal') 186 self.swap_used = self.swap_total - self.swap_free 195 self.usage_ratio = float(self.swap_used) / self.swap_total 282 swap_target_usage = swap_target * self.swap_total
|
/external/libchrome/base/process/ |
D | process_metrics_linux.cc | 482 res->SetInteger("swap_total", swap_total); in ToValue() 484 res->SetInteger("swap_used", swap_total - swap_free); in ToValue() 544 target = &meminfo->swap_total; in ParseProcMeminfo()
|
D | process_metrics_unittest.cc | 187 EXPECT_EQ(meminfo.swap_total, 5832280); in TEST_F() 208 EXPECT_EQ(meminfo.swap_total, 524280); in TEST_F()
|
D | process_metrics.h | 321 int swap_total = 0; member
|