Home
last modified time | relevance | path

Searched refs:swap_total (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/kernel/mem/tunable/
Dovercommit_memory.c99 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/
Dpower_LowMemorySuspend.py129 swap_total = meminfo.SwapTotal
136 perf_results['swap_total'] = swap_total
148 value=swap_total, units='KB')
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise09.c317 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/
Dplatform_CompressedSwapPerf.py183 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/
Dprocess_metrics_linux.cc482 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()
Dprocess_metrics_unittest.cc187 EXPECT_EQ(meminfo.swap_total, 5832280); in TEST_F()
208 EXPECT_EQ(meminfo.swap_total, 524280); in TEST_F()
Dprocess_metrics.h321 int swap_total = 0; member