[dpdk-dev] Get the socket id

2013-08-07 Thread Damien Millescamps
On 08/07/2013 05:52 PM, Stephen Hemminger wrote: > But can't find any documentation > on numa_maps in detail. You should try with man 5 numa_maps. -- Damien Millescamps

[dpdk-dev] Get the socket id

2013-08-07 Thread dvr
hi, all I'm confused with the following code(Eal_memory.c in lib\librte_eal\linuxapp\eal directory, LINE 373): nodestr = strstr(buf," N"); if(nodestr == NULL) {...} nodestr += 2; end = strstr(nodestr,"="); if(end == NULL) {...} // here nodestr = "0=1" end[0] = '\0';

[dpdk-dev] Get the socket id

2013-08-07 Thread Stephen Hemminger
On Wed, 07 Aug 2013 17:56:55 +0200 Damien Millescamps wrote: > On 08/07/2013 05:52 PM, Stephen Hemminger wrote: > > But can't find any documentation > > on numa_maps in detail. > You should try with man 5 numa_maps. > Thanks, knew it was there some where: N= The number of p

[dpdk-dev] Get the socket id

2013-08-07 Thread Stephen Hemminger
On Wed, 7 Aug 2013 14:14:19 +0800 (CST) dvr wrote: > hi, >all >I'm confused with the following code(Eal_memory.c in > lib\librte_eal\linuxapp\eal directory, LINE 373): > >nodestr = strstr(buf," N"); >if(nodestr == NULL) {...} >nodestr += 2; >end = strstr(nodestr,"="); >