• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1NAME = "platform_CompressedSwap"
2PURPOSE = "Verify compressed swap is configured and basically works."
3CRITERIA = """
4This test will fail if:
5  - compressed swap is not configured.
6  - oom events occur before swap space is mostly consumed.
7"""
8AUTHOR = "bfreed@chromium.org (Bryan Freed)"
9TIME = "SHORT"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "platform"
12TEST_TYPE = "client"
13DOC = """
14Verify compressed swap is configured and basically works.
15
16The resources being verified are:
17
18MemTotal
19MemFree
20SwapTotal
21SwapFree
22
23Memory hogs are started to allocate and touch pages to consume free memory.
24As free memory approaches 0, swap space starts to be used.
25Verify we can consume most of swap without hitting any oom conditions.
26Verify we get low memory notification.
27Verify low memory notification goes away after some memory is freed.
28"""
29
30job.run_test('platform_CompressedSwap')
31