Skip to contentSkip to conversation

eal: shut up warning about master lcore

PATCH Applied Stephen Hemminger 3 participants 3 messages Apr 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eal: shut up warning about master lcore

This message looks suspicious and seen on healthy testpmd.
EAL: WARNING: Master core has no memory on local socket!

The message is wrong: the master lcore is 0 and its socket is 0 and there are multiple available memory segments on socket 0.

At that point in the startup process, the count value is zero, meaning they are not used yet so the check_socket gets confused.

Fixes 66cc45e293ed ("mem: replace memseg with memseg lists")
---
 lib/librte_eal/linuxapp/eal/eal.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
lib/librte_eal/linuxapp/eal/eal.c +1 -4
index 200e879d241a..e2c0bd649429 100644
@@ -645,10 +645,7 @@ check_socket(const struct rte_memseg_list *msl, void *arg)
 {
 	int *socket_id = arg;
 
-	if (msl->socket_id == *socket_id && msl->memseg_arr.count != 0)
-		return 1;
-
-	return 0;
+	return *socket_id == msl->socket_id;
 }
 
 static void
Signature · 1 line
2.17.0
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Stephen Hemminger

This message looks suspicious and seen on healthy testpmd.
EAL: WARNING: Master core has no memory on local socket!

The message is wrong: the master lcore is 0 and its socket is 0 and there are multiple available memory segments on socket 0.

Quoted 6 lines

At that point in the startup process, the count value is zero, meaning they are not used yet so the check_socket gets confused.

Fixes 66cc45e293ed ("mem: replace memseg with memseg lists")

---

Was aware of this and going to fix it myself, but higher priority items popped up. Thanks for fixing this!

Signature · 2 lines
Thanks,
Anatoly
#2 lore raw

26/04/2018 09:44, Burakov, Anatoly:

Quoted 10 lines · Stephen Hemminger
Quoted 9 lines

This message looks suspicious and seen on healthy testpmd.
EAL: WARNING: Master core has no memory on local socket!

The message is wrong: the master lcore is 0 and its socket is 0 and there are multiple available memory segments on socket 0.

At that point in the startup process, the count value is zero, meaning they are not used yet so the check_socket gets confused.

Quoted 8 lines
Quoted 3 lines
Fixes 66cc45e293ed ("mem: replace memseg with memseg lists")

---

Was aware of this and going to fix it myself, but higher priority items popped up. Thanks for fixing this!

Applied, thanks