Commit 7274b775 authored by Martin Mareš's avatar Martin Mareš
Browse files

Compctl: SWAP_LIMIT is off by default

parent f1fba98a
......@@ -9,7 +9,7 @@
#include "cgroup.h"
#include "common.h"
#if SWAP_LIMIT
#ifdef SWAP_LIMIT
#define MEMSW ".memsw"
#else
#define MEMSW
......@@ -174,7 +174,7 @@ cgroup_set_mem_limit_twice(const char *chier, const char *cgroup, size_t nlimit,
int
cgroup_set_mem_limit(const char *chier, const char *cgroup, size_t nlimit)
{
#if SWAP_LIMIT
#ifdef SWAP_LIMIT
/* We need to set both the "normal" and memsw limits, but in such
* order that normal <= memsw always holds. */
size_t curlimit = cgroup_get_mem_limit(chier, cgroup);
......
compctl (1.2-3) UNRELEASED; urgency=medium
* Turned off SWAP_LIMIT by default.
-- Martin Mares <mj@ucw.cz> Fri, 16 Feb 2018 13:16:34 +0100
compctl (1.2-2) stable; urgency=medium
* Updated packaging for Debian Stretch.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment