Skip to content
Snippets Groups Projects
Commit 7274b775 authored by Martin Mareš's avatar Martin Mareš
Browse files

Compctl: SWAP_LIMIT is off by default

parent f1fba98a
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "cgroup.h" #include "cgroup.h"
#include "common.h" #include "common.h"
#if SWAP_LIMIT #ifdef SWAP_LIMIT
#define MEMSW ".memsw" #define MEMSW ".memsw"
#else #else
#define MEMSW #define MEMSW
...@@ -174,7 +174,7 @@ cgroup_set_mem_limit_twice(const char *chier, const char *cgroup, size_t nlimit, ...@@ -174,7 +174,7 @@ cgroup_set_mem_limit_twice(const char *chier, const char *cgroup, size_t nlimit,
int int
cgroup_set_mem_limit(const char *chier, const char *cgroup, size_t nlimit) 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 /* We need to set both the "normal" and memsw limits, but in such
* order that normal <= memsw always holds. */ * order that normal <= memsw always holds. */
size_t curlimit = cgroup_get_mem_limit(chier, cgroup); 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 compctl (1.2-2) stable; urgency=medium
* Updated packaging for Debian Stretch. * Updated packaging for Debian Stretch.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment