1. 31 5月, 2018 2 次提交
    • M
      selftests: cgroup/memcontrol: add basic test for swap controls · 478b2784
      Mike Rapoport 提交于
      The new test verifies that memory.swap.max and memory.swap.current behave
      as expected for simple allocation scenarios
      Signed-off-by: NMike Rapoport <rppt@linux.vnet.ibm.com>
      Acked-by: NTejun Heo <tj@kernel.org>
      Acked-by: NRoman Gushchin <guro@fb.com>
      Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
      478b2784
    • R
      selftests: cgroup: add memory controller self-tests · 84092dbc
      Roman Gushchin 提交于
      Cgroups are used for controlling the physical resource distribution
      (memory, CPU, io, etc) and often are used as basic building blocks
      for large distributed computing systems. Even small differences
      in the actual behavior may lead to significant incidents.
      
      The codebase is under the active development, which will unlikely
      stop at any time soon. Also it's scattered over different kernel
      subsystems, which makes regressions more probable.
      
      Given that, the lack of any tests is crying.
      
      This patch implements some basic tests for the memory controller,
      as well as a minimal required framework. It doesn't pretend for a
      very good coverage, but pretends to be a starting point.
      
      Hopefully, any following significant changes will include corresponding
      tests.
      
      Tests for CPU and io controllers, as well as cgroup core
      are next in the todo list.
      Signed-off-by: NRoman Gushchin <guro@fb.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
      Cc: kernel-team@fb.com
      Cc: linux-kselftest@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Acked-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
      84092dbc