Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1216078
| From | zhong jiang <zhongjiang@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | is it a problem when cat /proc/pid/status |
| Date | 2015-08-31 10:00 +0200 |
| Message-ID | <q3sau-1r5-15@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
I want to know whether the NUMA bound memory node with CONFIG_CGROUPS related or associted with NUMA binding. I wrote an example test,the results are as follows. > euler-linux:/home/zhongjiang # numactl --membind=1 ./new & > [1] 6529 > euler-linux:/home/zhongjiang # ps -ef | grep new > root 6529 4483 0 14:40 pts/1 00:00:00 ./new > root 6556 4483 0 14:40 pts/1 00:00:00 grep new > euler-linux:/home/zhongjiang # cat /proc/6529/status > Name: new > State: S (sleeping) ........ > Cpus_allowed: ffffff > Cpus_allowed_list: 0-23 > Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,007fffff > Mems_allowed_list: 0-22 > voluntary_ctxt_switches: 19 > nonvoluntary_ctxt_switches: 0 euler-linux:/home/zhongjiang # numactl --membind=3 ./new & [1] 9113 euler-linux:/home/zhongjiang # ps -ef | grep mew root 9140 8948 0 14:55 pts/1 00:00:00 grep mew euler-linux:/home/zhongjiang # ps -ef | grep new root 9113 8948 0 14:55 pts/1 00:00:00 ./new root 9209 8948 0 14:55 pts/1 00:00:00 grep new euler-linux:/home/zhongjiang # cat /proc/9113/status Name: new State: S (sleeping) Tgid: 9113 Ngid: 0 Pid: 9113 PPid: 8948 ...... Cpus_allowed: ffffff Cpus_allowed_list: 0-23 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,007fffff Mems_allowed_list: 0-22 voluntary_ctxt_switches: 26 nonvoluntary_ctxt_switches: 0 Through the comparison of the above, I can find Whatever I use node for binding, the mems_allowed fields has been no change -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
is it a problem when cat /proc/pid/status zhong jiang <zhongjiang@huawei.com> - 2015-08-31 10:00 +0200
csiph-web