From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753651AbbHUJ3z (ORCPT ); Fri, 21 Aug 2015 05:29:55 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:17535 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753363AbbHUJ3x (ORCPT ); Fri, 21 Aug 2015 05:29:53 -0400 Message-ID: <55D6EEEB.7050701@huawei.com> Date: Fri, 21 Aug 2015 17:27:07 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: LKML , Linux MM CC: Xishi Qiu , Xiexiuqi Subject: is this a problem of numactl in RedHat7.0 ? Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.55D6EF14.0011,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 25cf8227f6c595ea64e59a639c2b0f5d Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I use numactl(--localalloc) tool run a test case, but it shows that the numa policy is prefer, I don't know why. [root@localhost test]# numactl --hard available: 2 nodes (0-1) node 0 cpus: 0 1 2 3 4 5 12 13 14 15 16 17 node 0 size: 32739 MB node 0 free: 29134 MB node 1 cpus: 6 7 8 9 10 11 18 19 20 21 22 23 node 1 size: 32768 MB node 1 free: 31682 MB node distances: node 0 1 0: 10 20 1: 20 10 [root@localhost test]# numactl --localalloc --physcpubind=22 ./test.exe [root@localhost linux-3.10-redhat]# ps -ef| grep test root 18532 13994 1 05:24 pts/0 00:00:00 ./test.exe root 18534 14037 0 05:24 pts/1 00:00:00 grep --color=auto test [root@localhost linux-3.10-redhat]# cat /proc/18532/numa_maps 00400000 prefer:0 file=/home/qiuxishi/test/test.exe mapped=1 N0=1 00600000 prefer:0 file=/home/qiuxishi/test/test.exe anon=1 dirty=1 N1=1 00601000 prefer:0 file=/home/qiuxishi/test/test.exe anon=1 dirty=1 N1=1 7f1a15b9b000 prefer:0 file=/usr/lib64/libc-2.17.so mapped=51 mapmax=44 N0=49 N1=2 7f1a15d51000 prefer:0 file=/usr/lib64/libc-2.17.so 7f1a15f51000 prefer:0 file=/usr/lib64/libc-2.17.so anon=4 dirty=4 N1=4 7f1a15f55000 prefer:0 file=/usr/lib64/libc-2.17.so anon=2 dirty=2 N1=2 7f1a15f57000 prefer:0 anon=3 dirty=3 N1=3 7f1a15f5c000 prefer:0 file=/usr/lib64/ld-2.17.so mapped=28 mapmax=15 N0=23 N1=5 7f1a16166000 prefer:0 anon=3 dirty=3 N1=3 7f1a1617c000 prefer:0 anon=1 dirty=1 N1=1 7f1a1617d000 prefer:0 file=/usr/lib64/ld-2.17.so anon=1 dirty=1 N1=1 7f1a1617e000 prefer:0 file=/usr/lib64/ld-2.17.so anon=1 dirty=1 N1=1 7f1a1617f000 prefer:0 anon=1 dirty=1 N1=1 7ffd0d2ed000 prefer:0 stack anon=3 dirty=3 N1=3 7ffd0d3fc000 prefer:0