search for: mxs2

Displaying 3 results from an estimated 3 matches for "mxs2".

Did you mean: mx2
2016 Apr 26
0
Re: /proc/meminfo
...clude <malloc.h> #include <unistd.h> #include <memory.h> #define MB 1024 * 1024 int main() { int total = 0; while (1) { void *p = malloc( 100*MB ); memset(p,0, 100*MB ); total = total + 100; printf("Alloc %d Mb\n",total); sleep(1); } } [root@tst-mxs2 ~]# free total used free shared buff/cache available Mem: 1048576 7412 1028644 11112 12520 1028644 Swap: 1048576 0 1048576 [root@tst-mxs2 ~]# ./a.out Alloc 100 Mb Alloc 200 Mb Alloc 300 Mb Alloc 400 Mb Alloc 5...
2016 Mar 23
7
/proc/meminfo
Has anyone seen this issue? We're running containers under CentOS 7.2 and some of these containers are reporting incorrect memory allocation in /proc/meminfo. The output below comes from a system with 32G of memory and 84GB of swap. The values reported are completely wrong. # cat /proc/meminfo MemTotal: 9007199254740991 kB MemFree: 9007199224543267 kB MemAvailable: 12985680
2016 Apr 26
2
Re: /proc/meminfo
...t;memory.h> > #define MB 1024 * 1024 > int main() { > int total = 0; > while (1) { > void *p = malloc( 100*MB ); > memset(p,0, 100*MB ); > total = total + 100; > printf("Alloc %d Mb\n",total); > sleep(1); > } > } > [root@tst-mxs2 ~]# free > total used free shared buff/cache available > Mem: 1048576 7412 1028644 11112 12520 1028644 > Swap: 1048576 0 1048576 > [root@tst-mxs2 ~]# ./a.out > Alloc 100 Mb > Alloc 200 Mb &gt...