hi all, can someone help explaining what we are seeing? it makes no sense to us. this is a host running centos 7.4 with 3.10.0-693.17.1 kernel, and it has 192GB of ram> [] free -b > total used free shared buff/cache available > Mem: 201402642432 14413479936 75642777600 48586752 111346384896 185689632768 > Swap: 21474832384 31961088 21442871296 > [] cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes > 273102151680how can the max be so much higher than total, and this is not even memsw? either we're very tired and are overlooking something obvious, or there's something new to be learned ;) many thanks, stijn
m.roth at 5-cent.us
2018-Apr-04 21:20 UTC
[CentOS] memory cgroup max_usage_in_bytes question
Stijn De Weirdt wrote:> hi all, > > can someone help explaining what we are seeing? it makes no sense to us. > this is a host running centos 7.4 with 3.10.0-693.17.1 kernel, and it > has 192GB of ram > >> [] free -b >> total used free shared buff/cache >> available >> Mem: 201402642432 14413479936 75642777600 48586752 111346384896 >> 185689632768 >> Swap: 21474832384 31961088 21442871296 >> [] cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes >> 273102151680 > > how can the max be so much higher than total, and this is not even memsw? > > either we're very tired and are overlooking something obvious, or > there's something new to be learned ;) >Wonder if it's overcommitting memory.VMs do that, as a matter of course. mark
On 05/04/18 01:56, Stijn De Weirdt wrote:> hi all, > > can someone help explaining what we are seeing? it makes no sense to us. > this is a host running centos 7.4 with 3.10.0-693.17.1 kernel, and it > has 192GB of ram > >> [] free -b >> total used free shared buff/cache available >> Mem: 201402642432 14413479936 75642777600 48586752 111346384896 185689632768 >> Swap: 21474832384 31961088 21442871296 >> [] cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes >> 273102151680 > how can the max be so much higher than total, and this is not even memsw?Binary K,M,G are 1024 multiples not 1000 so total seems a little low.> either we're very tired and are overlooking something obvious, or > there's something new to be learned ;) > > many thanks, > > stijn > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
hi rob,>> can someone help explaining what we are seeing? it makes no sense to us. >> this is a host running centos 7.4 with 3.10.0-693.17.1 kernel, and it >> has 192GB of ram >> >>> [] free -b >>> ?????????????? total??????? used??????? free????? shared? >>> buff/cache?? available >>> Mem:??? 201402642432 14413479936 75642777600??? 48586752 111346384896 >>> 185689632768 >>> Swap:?? 21474832384??? 31961088 21442871296 >>> [] cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes >>> 273102151680 >> how can the max be so much higher than total, and this is not even memsw? > Binary K,M,G are 1024 multiples not 1000 so total seems a little low.no, it's a bit lower than i expected, but it's the ususal reserved/absent memory (dmesg|grep Memory) and i mainly want to know why the max is higher than the limit. stijn>> either we're very tired and are overlooking something obvious, or >> there's something new to be learned ;) >> >> many thanks, >> >> stijn >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos > >
hi mark,>> can someone help explaining what we are seeing? it makes no sense to us. >> this is a host running centos 7.4 with 3.10.0-693.17.1 kernel, and it >> has 192GB of ram >> >>> [] free -b >>> total used free shared buff/cache >>> available >>> Mem: 201402642432 14413479936 75642777600 48586752 111346384896 >>> 185689632768 >>> Swap: 21474832384 31961088 21442871296 >>> [] cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes >>> 273102151680 >> >> how can the max be so much higher than total, and this is not even memsw? >> >> either we're very tired and are overlooking something obvious, or >> there's something new to be learned ;) >> > Wonder if it's overcommitting memory.VMs do that, as a matter of course.should have mentioned this, but this is not a VM. also, i expect any overcommit related numbers to show up in the memsw counters stijn> > mark > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >