Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
compctl-kam
Commits
7274b775
Commit
7274b775
authored
Feb 16, 2018
by
Martin Mareš
Browse files
Compctl: SWAP_LIMIT is off by default
parent
f1fba98a
Changes
2
Hide whitespace changes
Inline
Side-by-side
cgroup.c
View file @
7274b775
...
...
@@ -9,7 +9,7 @@
#include "cgroup.h"
#include "common.h"
#if SWAP_LIMIT
#if
def
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
#if
def
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
);
...
...
debian/changelog
View file @
7274b775
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment