DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] i need a help about invalid numasocket
       [not found] <283f8a89e7d09260162064421dfa80@cweb09.nm.nhnsystem.com>
@ 2017-12-19 10:40 ` 박준하
  2017-12-19 12:22   ` Shreyansh Jain
  0 siblings, 1 reply; 9+ messages in thread
From: 박준하 @ 2017-12-19 10:40 UTC (permalink / raw)
  To: users

Hi, I used DPDK tools first before 1 week.
I serached how to install and  follow them.
I finally finished the setup hugepages, uio driver, bind device and make application.
However, when i run the sample application(Helloworld) Memory allocation failed and result is invalid numasocket.

I really want to solve this help me. thank you
 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
  2017-12-19 10:40 ` [dpdk-users] i need a help about invalid numasocket 박준하
@ 2017-12-19 12:22   ` Shreyansh Jain
  2017-12-20  2:23     ` 박준하
  0 siblings, 1 reply; 9+ messages in thread
From: Shreyansh Jain @ 2017-12-19 12:22 UTC (permalink / raw)
  To: 박준하; +Cc: users

> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of ???
> Sent: Tuesday, December 19, 2017 4:10 PM
> To: users@dpdk.org
> Subject: [dpdk-users] i need a help about invalid numasocket
> 
> Hi, I used DPDK tools first before 1 week.
> I serached how to install and  follow them.
> I finally finished the setup hugepages, uio driver, bind device and make
> application.
> However, when i run the sample application(Helloworld) Memory allocation
> failed and result is invalid numasocket.
> 
> I really want to solve this help me. thank you
> 

I don't have a solution - but, I can suggest that if you can paste output of your execution here, someone might give you hints.
Don't forget information about environment (platform, 'cat /proc/meminfo', etc). More the info about what you have attempted or trying to attempt, easier it is to point out possible problem area.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
  2017-12-19 12:22   ` Shreyansh Jain
@ 2017-12-20  2:23     ` 박준하
  2017-12-20  4:35       ` Mayank
  2017-12-20  5:50       ` Shreyansh Jain
  0 siblings, 2 replies; 9+ messages in thread
From: 박준하 @ 2017-12-20  2:23 UTC (permalink / raw)
  To: Shreyansh Jain; +Cc: users

Thank you.
this is my apllication result and lscpu and meminfo. 
 
result: lscpu | grep -i numa
NUMA node(s):          1
NUMA node0 CPU(s):     0-3
 
result: cat /proc/meminfo
MemTotal:        7842552 kB
MemFree:         1118008 kB
MemAvailable:    2285580 kB
Buffers:          109264 kB
Cached:          1598564 kB
SwapCached:            0 kB
Active:          2352924 kB
Inactive:         972164 kB
Active(anon):    1622876 kB
Inactive(anon):   370152 kB
Active(file):     730048 kB
Inactive(file):   602012 kB
Unevictable:          16 kB
Mlocked:              16 kB
SwapTotal:       8051708 kB
SwapFree:        8051708 kB
Dirty:                68 kB
Writeback:             0 kB
AnonPages:       1298032 kB
Mapped:           383092 kB
Shmem:            375772 kB
Slab:             152876 kB
SReclaimable:     112428 kB
SUnreclaim:        40448 kB
KernelStack:       10528 kB
PageTables:        38560 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    10400120 kB
Committed_AS:    6337284 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:    460800 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:    1024
HugePages_Free:     1024
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      113688 kB
DirectMap2M:     4794368 kB
DirectMap1G:     3145728 kB

result: ./build/app/helloworld -l 0-3 -n 4
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:00:1f.6 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:15b8 net_e1000_em
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:01:00.1 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
hello from core 1
hello from core 2
hello from core 3
hello from core 0
 
-----Original Message-----
From: "Shreyansh Jain"&lt;shreyansh.jain@nxp.com&gt; 
To: "박준하"&lt;wnsgkqkr@naver.com&gt;; 
Cc: "users@dpdk.org"&lt;users@dpdk.org&gt;; 
Sent: 2017-12-19 (화) 21:22:59
Subject: RE: [dpdk-users] i need a help about invalid numasocket
 
&gt; -----Original Message-----
&gt; From: users [mailto:users-bounces@dpdk.org] On Behalf Of ???
&gt; Sent: Tuesday, December 19, 2017 4:10 PM
&gt; To: users@dpdk.org
&gt; Subject: [dpdk-users] i need a help about invalid numasocket
&gt; 
&gt; Hi, I used DPDK tools first before 1 week.
&gt; I serached how to install and  follow them.
&gt; I finally finished the setup hugepages, uio driver, bind device and make
&gt; application.
&gt; However, when i run the sample application(Helloworld) Memory allocation
&gt; failed and result is invalid numasocket.
&gt; 
&gt; I really want to solve this help me. thank you
&gt; 

I don't have a solution - but, I can suggest that if you can paste output of your execution here, someone might give you hints.
Don't forget information about environment (platform, 'cat /proc/meminfo', etc). More the info about what you have attempted or trying to attempt, easier it is to point out possible problem area.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
  2017-12-20  2:23     ` 박준하
@ 2017-12-20  4:35       ` Mayank
       [not found]         ` <1744667063.1668474.1513745409006@mail.yahoo.com>
  2017-12-20  5:50       ` Shreyansh Jain
  1 sibling, 1 reply; 9+ messages in thread
From: Mayank @ 2017-12-20  4:35 UTC (permalink / raw)
  To: shreyansh.jain; +Cc: users

Hi Shreyansh,

It seems that your device is not connected with NUMA node.


On Wednesday 20 December 2017 07:53 AM, 박준하 wrote:
> Thank you.
> this is my apllication result and lscpu and meminfo.
>   
> result: lscpu | grep -i numa
> NUMA node(s):          1
> NUMA node0 CPU(s):     0-3
>   
> result: cat /proc/meminfo
> MemTotal:        7842552 kB
> MemFree:         1118008 kB
> MemAvailable:    2285580 kB
> Buffers:          109264 kB
> Cached:          1598564 kB
> SwapCached:            0 kB
> Active:          2352924 kB
> Inactive:         972164 kB
> Active(anon):    1622876 kB
> Inactive(anon):   370152 kB
> Active(file):     730048 kB
> Inactive(file):   602012 kB
> Unevictable:          16 kB
> Mlocked:              16 kB
> SwapTotal:       8051708 kB
> SwapFree:        8051708 kB
> Dirty:                68 kB
> Writeback:             0 kB
> AnonPages:       1298032 kB
> Mapped:           383092 kB
> Shmem:            375772 kB
> Slab:             152876 kB
> SReclaimable:     112428 kB
> SUnreclaim:        40448 kB
> KernelStack:       10528 kB
> PageTables:        38560 kB
> NFS_Unstable:          0 kB
> Bounce:                0 kB
> WritebackTmp:          0 kB
> CommitLimit:    10400120 kB
> Committed_AS:    6337284 kB
> VmallocTotal:   34359738367 kB
> VmallocUsed:           0 kB
> VmallocChunk:          0 kB
> HardwareCorrupted:     0 kB
> AnonHugePages:    460800 kB
> ShmemHugePages:        0 kB
> ShmemPmdMapped:        0 kB
> CmaTotal:              0 kB
> CmaFree:               0 kB
> HugePages_Total:    1024
> HugePages_Free:     1024
> HugePages_Rsvd:        0
> HugePages_Surp:        0
> Hugepagesize:       2048 kB
> DirectMap4k:      113688 kB
> DirectMap2M:     4794368 kB
> DirectMap1G:     3145728 kB
>
> result: ./build/app/helloworld -l 0-3 -n 4
> EAL: Detected 4 lcore(s)
> EAL: Probing VFIO support...
> EAL: PCI device 0000:00:1f.6 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:15b8 net_e1000_em
> EAL: PCI device 0000:01:00.0 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:01:00.1 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> hello from core 1
> hello from core 2
> hello from core 3
> hello from core 0
>   
> -----Original Message-----
> From: "Shreyansh Jain"&lt;shreyansh.jain@nxp.com&gt;
> To: "박준하"&lt;wnsgkqkr@naver.com&gt;;
> Cc: "users@dpdk.org"&lt;users@dpdk.org&gt;;
> Sent: 2017-12-19 (화) 21:22:59
> Subject: RE: [dpdk-users] i need a help about invalid numasocket
>   
> &gt; -----Original Message-----
> &gt; From: users [mailto:users-bounces@dpdk.org] On Behalf Of ???
> &gt; Sent: Tuesday, December 19, 2017 4:10 PM
> &gt; To: users@dpdk.org
> &gt; Subject: [dpdk-users] i need a help about invalid numasocket
> &gt;
> &gt; Hi, I used DPDK tools first before 1 week.
> &gt; I serached how to install and  follow them.
> &gt; I finally finished the setup hugepages, uio driver, bind device and make
> &gt; application.
> &gt; However, when i run the sample application(Helloworld) Memory allocation
> &gt; failed and result is invalid numasocket.
> &gt;
> &gt; I really want to solve this help me. thank you
> &gt;
>
> I don't have a solution - but, I can suggest that if you can paste output of your execution here, someone might give you hints.
> Don't forget information about environment (platform, 'cat /proc/meminfo', etc). More the info about what you have attempted or trying to attempt, easier it is to point out possible problem area.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
  2017-12-20  2:23     ` 박준하
  2017-12-20  4:35       ` Mayank
@ 2017-12-20  5:50       ` Shreyansh Jain
  2017-12-20  7:56         ` 박준하
  1 sibling, 1 reply; 9+ messages in thread
From: Shreyansh Jain @ 2017-12-20  5:50 UTC (permalink / raw)
  To: 박준하; +Cc: users

Hi,

I think your platform doesn’t have more than 1 NUMA node (node 0. See message " NUMA node(s):          1"). And you are giving ‘-n 4’ in command line.
That might be the reason this warning is being reported before defaulting back to node 0.

Does this create any function issue? Like not having I/O in l2fwd/l3fwd application?

-
Shreyansh

From: 박준하 [mailto:wnsgkqkr@naver.com] 
Sent: Wednesday, December 20, 2017 7:54 AM
To: Shreyansh Jain <shreyansh.jain@nxp.com>
Cc: users@dpdk.org
Subject: RE: [dpdk-users] i need a help about invalid numasocket

Thank you.
this is my apllication result and lscpu and meminfo. 
 
result: lscpu | grep -i numa
NUMA node(s):          1
NUMA node0 CPU(s):     0-3
 
result: cat /proc/meminfo
MemTotal:        7842552 kB
MemFree:         1118008 kB
MemAvailable:    2285580 kB
Buffers:          109264 kB
Cached:          1598564 kB
SwapCached:            0 kB
Active:          2352924 kB
Inactive:         972164 kB
Active(anon):    1622876 kB
Inactive(anon):   370152 kB
Active(file):     730048 kB
Inactive(file):   602012 kB
Unevictable:          16 kB
Mlocked:              16 kB
SwapTotal:       8051708 kB
SwapFree:        8051708 kB
Dirty:                68 kB
Writeback:             0 kB
AnonPages:       1298032 kB
Mapped:           383092 kB
Shmem:            375772 kB
Slab:             152876 kB
SReclaimable:     112428 kB
SUnreclaim:        40448 kB
KernelStack:       10528 kB
PageTables:        38560 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    10400120 kB
Committed_AS:    6337284 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:    460800 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:    1024
HugePages_Free:     1024
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      113688 kB
DirectMap2M:     4794368 kB
DirectMap1G:     3145728 kB

result: ./build/app/helloworld -l 0-3 -n 4
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:00:1f.6 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:15b8 net_e1000_em
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:01:00.1 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
hello from core 1
hello from core 2
hello from core 3
hello from core 0
 
-----Original Message-----
From: "Shreyansh Jain"<mailto:shreyansh.jain@nxp.com> 
To: "박준하"<mailto:wnsgkqkr@naver.com>; 
Cc: "mailto:users@dpdk.org"<mailto:users@dpdk.org>; 
Sent: 2017-12-19 (화) 21:22:59
Subject: RE: [dpdk-users] i need a help about invalid numasocket
 
> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of ???
> Sent: Tuesday, December 19, 2017 4:10 PM
> To: mailto:users@dpdk.org
> Subject: [dpdk-users] i need a help about invalid numasocket
> 
> Hi, I used DPDK tools first before 1 week.
> I serached how to install and  follow them.
> I finally finished the setup hugepages, uio driver, bind device and make
> application.
> However, when i run the sample application(Helloworld) Memory allocation
> failed and result is invalid numasocket.
> 
> I really want to solve this help me. thank you
> 

I don't have a solution - but, I can suggest that if you can paste output of your execution here, someone might give you hints.
Don't forget information about environment (platform, 'cat /proc/meminfo', etc). More the info about what you have attempted or trying to attempt, easier it is to point out possible problem area.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
       [not found]         ` <1744667063.1668474.1513745409006@mail.yahoo.com>
@ 2017-12-20  7:48           ` 박준하
  0 siblings, 0 replies; 9+ messages in thread
From: 박준하 @ 2017-12-20  7:48 UTC (permalink / raw)
  To: MAC Lee; +Cc: users

thank you MAC Lee.
so if i want to connect my device with NUMA node.
what i should do?? 
 
-----Original Message-----
From: "MAC Lee"&lt;mac_leehk@yahoo.com.hk&gt; 
To: "박준하"&lt;wnsgkqkr@naver.com&gt;; 
Cc: 
Sent: 2017-12-20 (수) 13:50:08
Subject: RE: [dpdk-users] i need a help about invalid numasocket
 
Hi Shreyansh,    I think it can skip the message since you only have 1 numa node in your platform. And from your log, the print out should be came out from your application, right?hello from core 1hello from core 2hello from core 3hello from core 0    If there is any init failed, the print out will not came out.  Thanks,Marco 
     Mayank &lt;mayank.patel@mayadata.io&gt; 於 2017/12/20 (週三) 12:35 PM 寫道﹕   

 Hi Shreyansh,It seems that your device is not connected with NUMA node.On Wednesday 20 December 2017 07:53 AM, 박준하 wrote:&gt; Thank you.&gt; this is my apllication result and lscpu and meminfo.&gt;   &gt; result: lscpu | grep -i numa&gt; NUMA node(s):          1&gt; NUMA node0 CPU(s):     0-3&gt;   &gt; result: cat /proc/meminfo&gt; MemTotal:        7842552 kB&gt; MemFree:         1118008 kB&gt; MemAvailable:    2285580 kB&gt; Buffers:          109264 kB&gt; Cached:          1598564 kB&gt; SwapCached:            0 kB&gt; Active:          2352924 kB&gt; Inactive:         972164 kB&gt; Active(anon):    1622876 kB&gt; Inactive(anon):   370152 kB&gt; Active(file):     730048 kB&gt; Inactive(file):   602012 kB&gt; Unevictable:          16 kB&gt; Mlocked:              16 kB&gt; SwapTotal:       8051708 kB&gt; SwapFree:        8051708 kB&gt; Dirty:                68 kB&gt; Writeback:             0 kB&gt; AnonPages:       1298032 kB&gt; Mapped:           383092 kB&gt; Shmem:            375772 kB&gt; Slab:             152876 kB&gt; SReclaimable:     112428 kB&gt; SUnreclaim:        40448 kB&gt; KernelStack:       10528 kB&gt; PageTables:        38560 kB&gt; NFS_Unstable:          0 kB&gt; Bounce:                0 kB&gt; WritebackTmp:          0 kB&gt; CommitLimit:    10400120 kB&gt; Committed_AS:    6337284 kB&gt; VmallocTotal:   34359738367 kB&gt; VmallocUsed:           0 kB&gt; VmallocChunk:          0 kB&gt; HardwareCorrupted:     0 kB&gt; AnonHugePages:    460800 kB&gt; ShmemHugePages:        0 kB&gt; ShmemPmdMapped:        0 kB&gt; CmaTotal:              0 kB&gt; CmaFree:               0 kB&gt; HugePages_Total:    1024&gt; HugePages_Free:     1024&gt; HugePages_Rsvd:        0&gt; HugePages_Surp:        0&gt; Hugepagesize:       2048 kB&gt; DirectMap4k:      113688 kB&gt; DirectMap2M:     4794368 kB&gt; DirectMap1G:     3145728 kB&gt;&gt; result: ./build/app/helloworld -l 0-3 -n 4&gt; EAL: Detected 4 lcore(s)&gt; EAL: Probing VFIO support...&gt; EAL: PCI device 0000:00:1f.6 on NUMA socket -1&gt; EAL:   Invalid NUMA socket, default to 0&gt; EAL:   probe driver: 8086:15b8 net_e1000_em&gt; EAL: PCI device 0000:01:00.0 on NUMA socket -1&gt; EAL:   Invalid NUMA socket, default to 0&gt; EAL:   probe driver: 8086:1528 net_ixgbe&gt; EAL: PCI device 0000:01:00.1 on NUMA socket -1&gt; EAL:   Invalid NUMA socket, default to 0&gt; EAL:   probe driver: 8086:1528 net_ixgbe&gt; hello from core 1&gt; hello from core 2&gt; hello from core 3&gt; hello from core 0&gt;   &gt; -----Original Message-----&gt; From: "Shreyansh Jain"&amp;lt;shreyansh.jain@nxp.com&amp;gt;&gt; To: "박준하"&amp;lt;wnsgkqkr@naver.com&amp;gt;;&gt; Cc: "users@dpdk.org"&amp;lt;users@dpdk.org&amp;gt;;&gt; Sent: 2017-12-19 (화) 21:22:59&gt; Subject: RE: [dpdk-users] i need a help about invalid numasocket&gt;   &gt; &amp;gt; -----Original Message-----&gt; &amp;gt; From: users [mailto:users-bounces@dpdk.org] On Behalf Of ???&gt; &amp;gt; Sent: Tuesday, December 19, 2017 4:10 PM&gt; &amp;gt; To: users@dpdk.org&gt; &amp;gt; Subject: [dpdk-users] i need a help about invalid numasocket&gt; &amp;gt;&gt; &amp;gt; Hi, I used DPDK tools first before 1 week.&gt; &amp;gt; I serached how to install and  follow them.&gt; &amp;gt; I finally finished the setup hugepages, uio driver, bind device and make&gt; &amp;gt; application.&gt; &amp;gt; However, when i run the sample application(Helloworld) Memory allocation&gt; &amp;gt; failed and result is invalid numasocket.&gt; &amp;gt;&gt; &amp;gt; I really want to solve this help me. thank you&gt; &amp;gt;&gt;&gt; I don't have a solution - but, I can suggest that if you can paste output of your execution here, someone might give you hints.&gt; Don't forget information about environment (platform, 'cat /proc/meminfo', etc). More the info about what you have attempted or trying to attempt, easier it is to point out possible problem area. 
      



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
  2017-12-20  5:50       ` Shreyansh Jain
@ 2017-12-20  7:56         ` 박준하
  2017-12-20 15:14           ` Stephen Hemminger
  0 siblings, 1 reply; 9+ messages in thread
From: 박준하 @ 2017-12-20  7:56 UTC (permalink / raw)
  To: Shreyansh Jain; +Cc: users

Thank you Shreyansh Jain.
I tried to change -n 1 but i got same problem.
this is log.
 
root@jh-desktop:/home/jh/dpdk-17.11/examples/helloworld# ./build/app/helloworld -l 0-3 -n 1 
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:00:1f.6 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:15b8 net_e1000_em
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:01:00.1 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
hello from core 1
hello from core 2
hello from core 3
hello from core 0 
 
I'm not sure because of it, i want to use tool PKTGEN.
When i use this tool and start packet sending, its link is down and i can't send packet.
I want to use this tool and make simulation.
and also l2fwd doesn't work. 
 
root@jh-desktop:/home/jh/dpdk-17.11/examples/l2fwd# ./build/app/l2fwd -l 0-3 -n 1 -- -p 3
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:00:1f.6 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:15b8 net_e1000_em
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:01:00.1 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
MAC updating enabled
Lcore 0: RX port 0
Lcore 1: RX port 1
Initializing port 0... PMD: ixgbe_dev_link_status_print():  Port 0: Link Down
done: 
Port 0, MAC address: 6C:B3:11:4F:1A:98

Initializing port 1... PMD: ixgbe_dev_link_status_print():  Port 1: Link Down
done: 
Port 1, MAC address: 6C:B3:11:4F:1A:9A 
 
-----Original Message-----
From: "Shreyansh Jain"&lt;shreyansh.jain@nxp.com&gt; 
To: "박준하"&lt;wnsgkqkr@naver.com&gt;; 
Cc: "users@dpdk.org"&lt;users@dpdk.org&gt;; 
Sent: 2017-12-20 (수) 14:50:15
Subject: RE: [dpdk-users] i need a help about invalid numasocket
 
Hi,

I think your platform doesn’t have more than 1 NUMA node (node 0. See message " NUMA node(s):          1"). And you are giving ‘-n 4’ in command line.
That might be the reason this warning is being reported before defaulting back to node 0.

Does this create any function issue? Like not having I/O in l2fwd/l3fwd application?

-
Shreyansh

From: 박준하 [mailto:wnsgkqkr@naver.com] 
Sent: Wednesday, December 20, 2017 7:54 AM
To: Shreyansh Jain &lt;shreyansh.jain@nxp.com&gt;
Cc: users@dpdk.org
Subject: RE: [dpdk-users] i need a help about invalid numasocket

Thank you.
this is my apllication result and lscpu and meminfo. 
 
result: lscpu | grep -i numa
NUMA node(s):          1
NUMA node0 CPU(s):     0-3
 
result: cat /proc/meminfo
MemTotal:        7842552 kB
MemFree:         1118008 kB
MemAvailable:    2285580 kB
Buffers:          109264 kB
Cached:          1598564 kB
SwapCached:            0 kB
Active:          2352924 kB
Inactive:         972164 kB
Active(anon):    1622876 kB
Inactive(anon):   370152 kB
Active(file):     730048 kB
Inactive(file):   602012 kB
Unevictable:          16 kB
Mlocked:              16 kB
SwapTotal:       8051708 kB
SwapFree:        8051708 kB
Dirty:                68 kB
Writeback:             0 kB
AnonPages:       1298032 kB
Mapped:           383092 kB
Shmem:            375772 kB
Slab:             152876 kB
SReclaimable:     112428 kB
SUnreclaim:        40448 kB
KernelStack:       10528 kB
PageTables:        38560 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    10400120 kB
Committed_AS:    6337284 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:    460800 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:    1024
HugePages_Free:     1024
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      113688 kB
DirectMap2M:     4794368 kB
DirectMap1G:     3145728 kB

result: ./build/app/helloworld -l 0-3 -n 4
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:00:1f.6 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:15b8 net_e1000_em
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
EAL: PCI device 0000:01:00.1 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:1528 net_ixgbe
hello from core 1
hello from core 2
hello from core 3
hello from core 0
 
-----Original Message-----
From: "Shreyansh Jain"&lt;mailto:shreyansh.jain@nxp.com&gt; 
To: "박준하"&lt;mailto:wnsgkqkr@naver.com&gt;; 
Cc: "mailto:users@dpdk.org"&lt;mailto:users@dpdk.org&gt;; 
Sent: 2017-12-19 (화) 21:22:59
Subject: RE: [dpdk-users] i need a help about invalid numasocket
 
&gt; -----Original Message-----
&gt; From: users [mailto:users-bounces@dpdk.org] On Behalf Of ???
&gt; Sent: Tuesday, December 19, 2017 4:10 PM
&gt; To: mailto:users@dpdk.org
&gt; Subject: [dpdk-users] i need a help about invalid numasocket
&gt; 
&gt; Hi, I used DPDK tools first before 1 week.
&gt; I serached how to install and  follow them.
&gt; I finally finished the setup hugepages, uio driver, bind device and make
&gt; application.
&gt; However, when i run the sample application(Helloworld) Memory allocation
&gt; failed and result is invalid numasocket.
&gt; 
&gt; I really want to solve this help me. thank you
&gt; 

I don't have a solution - but, I can suggest that if you can paste output of your execution here, someone might give you hints.
Don't forget information about environment (platform, 'cat /proc/meminfo', etc). More the info about what you have attempted or trying to attempt, easier it is to point out possible problem area.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
  2017-12-20  7:56         ` 박준하
@ 2017-12-20 15:14           ` Stephen Hemminger
  2017-12-20 15:27             ` Wiles, Keith
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Hemminger @ 2017-12-20 15:14 UTC (permalink / raw)
  Cc: Shreyansh Jain, users

On Wed, 20 Dec 2017 16:56:00 +0900
박준하<wnsgkqkr@naver.com> wrote:

> Thank you Shreyansh Jain.
> I tried to change -n 1 but i got same problem.
> this is log.
>  
> root@jh-desktop:/home/jh/dpdk-17.11/examples/helloworld# ./build/app/helloworld -l 0-3 -n 1 
> EAL: Detected 4 lcore(s)
> EAL: Probing VFIO support...
> EAL: PCI device 0000:00:1f.6 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:15b8 net_e1000_em
> EAL: PCI device 0000:01:00.0 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:01:00.1 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> hello from core 1
> hello from core 2
> hello from core 3
> hello from core 0 
>  
> I'm not sure because of it, i want to use tool PKTGEN.
> When i use this tool and start packet sending, its link is down and i can't send packet.
> I want to use this tool and make simulation.
> and also l2fwd doesn't work. 
>  
> root@jh-desktop:/home/jh/dpdk-17.11/examples/l2fwd# ./build/app/l2fwd -l 0-3 -n 1 -- -p 3
> EAL: Detected 4 lcore(s)
> EAL: Probing VFIO support...
> EAL: PCI device 0000:00:1f.6 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:15b8 net_e1000_em
> EAL: PCI device 0000:01:00.0 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:01:00.1 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> MAC updating enabled
> Lcore 0: RX port 0
> Lcore 1: RX port 1
> Initializing port 0... PMD: ixgbe_dev_link_status_print():  Port 0: Link Down
> done: 
> Port 0, MAC address: 6C:B3:11:4F:1A:98
> 
> Initializing port 1... PMD: ixgbe_dev_link_status_print():  Port 1: Link Down
> done: 
> Port 1, MAC address: 6C:B3:11:4F:1A:9A 
>  
> -----Original Message-----
> From: "Shreyansh Jain"&lt;shreyansh.jain@nxp.com&gt; 
> To: "박준하"&lt;wnsgkqkr@naver.com&gt;; 
> Cc: "users@dpdk.org"&lt;users@dpdk.org&gt;; 
> Sent: 2017-12-20 (수) 14:50:15
> Subject: RE: [dpdk-users] i need a help about invalid numasocket
>  
> Hi,
> 
> I think your platform doesn’t have more than 1 NUMA node (node 0. See message " NUMA node(s):          1"). And you are giving ‘-n 4’ in command line.
> That might be the reason this warning is being reported before defaulting back to node 0.
> 
> Does this create any function issue? Like not having I/O in l2fwd/l3fwd application?
> 
> -
> Shreyansh
> 
> From: 박준하 [mailto:wnsgkqkr@naver.com] 
> Sent: Wednesday, December 20, 2017 7:54 AM
> To: Shreyansh Jain &lt;shreyansh.jain@nxp.com&gt;
> Cc: users@dpdk.org
> Subject: RE: [dpdk-users] i need a help about invalid numasocket
> 
> Thank you.
> this is my apllication result and lscpu and meminfo. 
>  
> result: lscpu | grep -i numa
> NUMA node(s):          1
> NUMA node0 CPU(s):     0-3
>  
> result: cat /proc/meminfo
> MemTotal:        7842552 kB
> MemFree:         1118008 kB
> MemAvailable:    2285580 kB
> Buffers:          109264 kB
> Cached:          1598564 kB
> SwapCached:            0 kB
> Active:          2352924 kB
> Inactive:         972164 kB
> Active(anon):    1622876 kB
> Inactive(anon):   370152 kB
> Active(file):     730048 kB
> Inactive(file):   602012 kB
> Unevictable:          16 kB
> Mlocked:              16 kB
> SwapTotal:       8051708 kB
> SwapFree:        8051708 kB
> Dirty:                68 kB
> Writeback:             0 kB
> AnonPages:       1298032 kB
> Mapped:           383092 kB
> Shmem:            375772 kB
> Slab:             152876 kB
> SReclaimable:     112428 kB
> SUnreclaim:        40448 kB
> KernelStack:       10528 kB
> PageTables:        38560 kB
> NFS_Unstable:          0 kB
> Bounce:                0 kB
> WritebackTmp:          0 kB
> CommitLimit:    10400120 kB
> Committed_AS:    6337284 kB
> VmallocTotal:   34359738367 kB
> VmallocUsed:           0 kB
> VmallocChunk:          0 kB
> HardwareCorrupted:     0 kB
> AnonHugePages:    460800 kB
> ShmemHugePages:        0 kB
> ShmemPmdMapped:        0 kB
> CmaTotal:              0 kB
> CmaFree:               0 kB
> HugePages_Total:    1024
> HugePages_Free:     1024
> HugePages_Rsvd:        0
> HugePages_Surp:        0
> Hugepagesize:       2048 kB
> DirectMap4k:      113688 kB
> DirectMap2M:     4794368 kB
> DirectMap1G:     3145728 kB
> 
> result: ./build/app/helloworld -l 0-3 -n 4
> EAL: Detected 4 lcore(s)
> EAL: Probing VFIO support...
> EAL: PCI device 0000:00:1f.6 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:15b8 net_e1000_em
> EAL: PCI device 0000:01:00.0 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> EAL: PCI device 0000:01:00.1 on NUMA socket -1
> EAL:   Invalid NUMA socket, default to 0
> EAL:   probe driver: 8086:1528 net_ixgbe
> hello from core 1
> hello from core 2
> hello from core 3
> hello from core 0
>  
> -----Original Message-----
> From: "Shreyansh Jain"&lt;mailto:shreyansh.jain@nxp.com&gt; 
> To: "박준하"&lt;mailto:wnsgkqkr@naver.com&gt;; 
> Cc: "mailto:users@dpdk.org"&lt;mailto:users@dpdk.org&gt;; 
> Sent: 2017-12-19 (화) 21:22:59
> Subject: RE: [dpdk-users] i need a help about invalid numasocket
>  
> &gt; -----Original Message-----
> &gt; From: users [mailto:users-bounces@dpdk.org] On Behalf Of ???
> &gt; Sent: Tuesday, December 19, 2017 4:10 PM
> &gt; To: mailto:users@dpdk.org
> &gt; Subject: [dpdk-users] i need a help about invalid numasocket
> &gt; 
> &gt; Hi, I used DPDK tools first before 1 week.
> &gt; I serached how to install and  follow them.
> &gt; I finally finished the setup hugepages, uio driver, bind device and make
> &gt; application.
> &gt; However, when i run the sample application(Helloworld) Memory allocation
> &gt; failed and result is invalid numasocket.
> &gt; 
> &gt; I really want to solve this help me. thank you
> &gt; 
> 
> I don't have a solution - but, I can suggest that if you can paste output of your execution here, someone might give you hints.
> Don't forget information about environment (platform, 'cat /proc/meminfo', etc). More the info about what you have attempted or trying to attempt, easier it is to point out possible problem area.


Ignore the warning "Invalid NUMA socket" it is meaningless.
If the platform does not support NUMA or kernel is compiled without NUMA support
than the sysfs file for numa node is not present, and DPDK applications default
to all 0

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] i need a help about invalid numasocket
  2017-12-20 15:14           ` Stephen Hemminger
@ 2017-12-20 15:27             ` Wiles, Keith
  0 siblings, 0 replies; 9+ messages in thread
From: Wiles, Keith @ 2017-12-20 15:27 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: @dpdk.org>, Shreyansh Jain, users



> On Dec 20, 2017, at 9:14 AM, Stephen Hemminger <stephen@networkplumber.org> wrote:
> 
> On Wed, 20 Dec 2017 16:56:00 +0900
> 박준하<wnsgkqkr@naver.com> wrote:
> 
>> Thank you Shreyansh Jain.
>> I tried to change -n 1 but i got same problem.
>> this is log.
>> 
>> root@jh-desktop:/home/jh/dpdk-17.11/examples/helloworld# ./build/app/helloworld -l 0-3 -n 1 
>> EAL: Detected 4 lcore(s)
>> EAL: Probing VFIO support...
>> EAL: PCI device 0000:00:1f.6 on NUMA socket -1
>> EAL:   Invalid NUMA socket, default to 0
>> EAL:   probe driver: 8086:15b8 net_e1000_em
>> EAL: PCI device 0000:01:00.0 on NUMA socket -1
>> EAL:   Invalid NUMA socket, default to 0
>> EAL:   probe driver: 8086:1528 net_ixgbe
>> EAL: PCI device 0000:01:00.1 on NUMA socket -1
>> EAL:   Invalid NUMA socket, default to 0
>> EAL:   probe driver: 8086:1528 net_ixgbe
>> hello from core 1
>> hello from core 2
>> hello from core 3
>> hello from core 0 
>> 
> 
> 
> Ignore the warning "Invalid NUMA socket" it is meaningless.
> If the platform does not support NUMA or kernel is compiled without NUMA support
> than the sysfs file for numa node is not present, and DPDK applications default
> to all 0

This is a case were the message Invalid NUMA should be changed to a DEBUG log and the ‘on NUMA socket -1’ should just report 0 not -1.

Regards,
Keith


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-12-20 15:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <283f8a89e7d09260162064421dfa80@cweb09.nm.nhnsystem.com>
2017-12-19 10:40 ` [dpdk-users] i need a help about invalid numasocket 박준하
2017-12-19 12:22   ` Shreyansh Jain
2017-12-20  2:23     ` 박준하
2017-12-20  4:35       ` Mayank
     [not found]         ` <1744667063.1668474.1513745409006@mail.yahoo.com>
2017-12-20  7:48           ` 박준하
2017-12-20  5:50       ` Shreyansh Jain
2017-12-20  7:56         ` 박준하
2017-12-20 15:14           ` Stephen Hemminger
2017-12-20 15:27             ` Wiles, Keith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).