Actions
Bug #42059
closedget_cgroup_memory_limit magic value is error when os page_size is 64k
% Done:
0%
Source:
Community (user)
Tags:
osd,cgroup.memory.limit_in_bytes,pagesize
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
in the utils.c file,
when os pagesize is 65536,default value of cgroup.memory.limit_in_bytes is 9223372036854710272 or 0x7fffffffffff0000, but get_cgroup_memory_limit just processed the situation of 4096(the magic value 9223372036854771712 or 0x7ffffffffffff000)
part of code in get_cgroup_memory_limit at line 159:
if (value == 0x7ffffffffffff000) {
*limit = 0; // no limit
} else {
*limit = value;
}
the value of memory.limit_in_bytes when os`s pagesize is 65536:
[root@ceph2 build]# getconf PAGE_SIZE
65536
[root@ceph2 build]# cat /sys/fs/cgroup/memory/memory.limit_in_bytes
9223372036854710272
Actions