projects
/
platform
/
core
/
system
/
resourced.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79efc68
)
swap: skip setting hard limit on top (memory) cgroup
32/276232/3
submit/tizen/20220614.014557
author
Unsung Lee
<unsung.lee@samsung.com>
Mon, 13 Jun 2022 07:57:52 +0000
(16:57 +0900)
committer
Unsung Lee
<unsung.lee@samsung.com>
Mon, 13 Jun 2022 08:06:26 +0000
(17:06 +0900)
Change-Id: I677458716c54a11fb6a1360976a4e32091828274
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-optimizer/memory/swap/swap.c
patch
|
blob
|
history
diff --git
a/src/resource-optimizer/memory/swap/swap.c
b/src/resource-optimizer/memory/swap/swap.c
index
3dfc4da
..
8087c12
100644
(file)
--- a/
src/resource-optimizer/memory/swap/swap.c
+++ b/
src/resource-optimizer/memory/swap/swap.c
@@
-225,6
+225,10
@@
static int swap_use_hard_limit(char *memcg)
int ret;
unsigned long long usage_bytes, memcg_limit_bytes;
+ /* Setting hard limit on top dir is useless */
+ if (!strncmp(memcg, MEMCG_PATH, strlen(memcg)+1))
+ return RESOURCED_ERROR_NONE;
+
ret = cgroup_read_node_ulonglong(memcg, MEMCG_USAGE, &usage_bytes);
if (ret != RESOURCED_ERROR_NONE)
usage_bytes = 0;