【BUG REPORT】l3fwd-power can not exit by ctrl+c
Hi, David Marchand && guys
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and
found that after starting l3fwd-power,
using ctrl+c cannot force quit. But I revert the patch(33666b4 service: fix crash on exit) and it is ok.
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type info
Checking link status...............0000:7d:00.1 hns3_update_link_status(): Link status change to up! done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers
^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original 0000:7d:00.1 hns3_dev_close(): Close port 0 finished
User forced exit
[root@centos-C3 build]#
Thanks
Lijun Ou
Hello,
Quoted 5 lines · oulijun
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and
found that after starting l3fwd-power,using ctrl+c cannot force quit. But I revert the patch(33666b4 service:
fix crash on exit) and it is ok.
We had a fix in rc1 that is supposed to fix this.
https://git.dpdk.org/dpdk/commit?id=613ce6691c0d5ac0f99d7995f1e8e4ac86643882
Copying Anatoly and David H. too.
Quoted 41 lines
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type infoChecking link status...............0000:7d:00.1
hns3_update_link_status(): Link status change to up!
done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers ^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and
Quoted 8 lines
been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original
0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
[root@centos-C3 build]#
So I understand those traces are for when it works.
What about the traces when it does not work?
Can you get a backtrace to know where the process is stuck?
Thanks for reporting.
Signature · 1 line
David Marchand
Quoted 65 lines · David Marchand
Hello,
Quoted 5 lines · oulijun
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and
found that after starting l3fwd-power,using ctrl+c cannot force quit. But I revert the patch(33666b4 service:
fix crash on exit) and it is ok.We had a fix in rc1 that is supposed to fix this.
https://git.dpdk.org/dpdk/commit?id=613ce6691c0d5ac0f99d7995f1e8e4ac86643882Copying Anatoly and David H. too.
Quoted 41 lines
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type infoChecking link status...............0000:7d:00.1
hns3_update_link_status(): Link status change to up!
done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers ^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode andQuoted 8 lines
been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original
0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
[root@centos-C3 build]#
Quoted 4 lines
So I understand those traces are for when it works.
What about the traces when it does not work?
Can you get a backtrace to know where the process is stuck?
I think that it is entered the rte_exit and can not eixt
Quoted 4 lines
Thanks for reporting.
the log as follows when it not works:L3FWD_POWER: lcore 27 sleeps until interrupt triggers
^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original 0000:7d:00.1 hns3_dev_close(): Close port 0 finished
User forced exit
it can not exit and enter the shell window.
Thanks
Quoted 16 lines · oulijun
the log as follows when it not works:
L3FWD_POWER: lcore 27 sleeps until interrupt triggers ^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original
0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
Quoted 1 line
it can not exit and enter the shell window.
Please attach a gdb, list the threads running and get a backtrace on each. Thanks.
Signature · 1 line
David Marchand
Quoted 40 lines · oulijun
Hi, David Marchand && guys
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and
found that after starting l3fwd-power,using ctrl+c cannot force quit. But I revert the patch(33666b4 service: fix crash on exit) and it is ok.
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type infoChecking link status...............0000:7d:00.1
hns3_update_link_status(): Link status change to up! done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27
L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers
Quoted 8 lines
L3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers
^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original 0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
The "user forced exit" string is from before the patches were applied. You are obviously not using the rc2 version. Please pull down the latest l3fwd-power code and retest.
Quoted 11 lines
[root@centos-C3 build]#
Thanks
Lijun Ou
Signature · 2 lines
Thanks, Anatoly
Quoted 9 lines · oulijun
Quoted 6 lines · David Marchand
Hello,
Quoted 3 lines · oulijun
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and found that after starting l3fwd-power,
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
using ctrl+c cannot force quit. But I revert the patch(33666b4 service:
fix crash on exit) and it is ok.We had a fix in rc1 that is supposed to fix this.
https://git.dpdk.org/dpdk/commit?id=613ce6691c0d5ac0f99d7995f1e8e4ac86643882Copying Anatoly and David H. too.
Yes, and also this fix:
https://git.dpdk.org/dpdk/commit/?id=f4d1e19c293dc95073614f630ea729cf0bfb57b7
It's part of rc2 as well. With the above two fixes, all problems with quitting the app should have been fixed (and were fixed, according to our testing).
Quoted 52 lines
Quoted 52 lines
Quoted 51 lines
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type infoChecking link status...............0000:7d:00.1
hns3_update_link_status(): Link status change to up!
done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27
L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers ^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original
0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
[root@centos-C3 build]#
Quoted 3 lines
Quoted 3 lines
So I understand those traces are for when it works.
What about the traces when it does not work?
Yes, supplying log "when it worked" is not helpful if the goal is to figure out what went wrong :)
Quoted 6 lines
Quoted 1 line
Can you get a backtrace to know where the process is stuck?
I think that it is entered the
rte_exitand can not eixtQuoted 4 lines
Thanks for reporting.
Quoted 8 lines
the log as follows when it not works:
L3FWD_POWER: lcore 27 sleeps until interrupt triggers
^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original 0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
Again, this looks like a pre-rc1 log. Please retest with latest rc2 code.
Quoted 8 lines
it can not exit and enter the shell window.
Thanks
Signature · 2 lines
Thanks, Anatoly
Quoted 50 lines · Anatoly
Quoted 40 lines · oulijun
Hi, David Marchand && guys
I am using 20.05-rc2 version to test based on HNS3 NIC hardware,
and found that after starting l3fwd-power,using ctrl+c cannot force quit. But I revert the patch(33666b4 service: fix crash on exit) and it is ok.
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type infoChecking link status...............0000:7d:00.1
hns3_update_link_status(): Link status change to up! done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersQuoted 8 lines
L3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers
^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original 0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
Quoted 2 lines
The "user forced exit" string is from before the patches were applied. You are obviously not using the rc2 version. Please pull down the latest l3fwd-power code and retest.
sorry, our version is 20.05-rc0
Quoted 13 lines
Quoted 11 lines
[root@centos-C3 build]#
Thanks
Lijun Ou
Quoted 52 lines · oulijun
Quoted 49 lines · Anatoly
Quoted 47 lines · oulijun
Hi, David Marchand && guys
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and found that after starting l3fwd-power,
using ctrl+c cannot force quit. But I revert the patch(33666b4 service: fix crash on exit) and it is ok.
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type infoChecking link status...............0000:7d:00.1
hns3_update_link_status(): Link status change to up! done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27
L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers
^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original 0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
Quoted 3 lines
Quoted 2 lines
The "user forced exit" string is from before the patches were applied. You are obviously not using the rc2 version. Please pull down the latest l3fwd-power code and retest.
sorry, our version is 20.05-rc0
Yep. The bug you are reporting has been partially fixed in rc1, and fully fixed in rc2. So, please test rc2.
Quoted 14 lines
Quoted 13 lines
Quoted 11 lines
[root@centos-C3 build]#
Thanks
Lijun Ou
Signature · 2 lines
Thanks, Anatoly
Quoted 6 lines · David Marchand
Hello,
Quoted 3 lines · oulijun
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and
found that after starting l3fwd-power,
Quoted 8 lines
Quoted 2 lines
using ctrl+c cannot force quit. But I revert the patch(33666b4 service:
fix crash on exit) and it is ok.We had a fix in rc1 that is supposed to fix this.
https://git.dpdk.org/dpdk/commit?id=613ce6691c0d5ac0f99d7995f1e8e4ac86643882Copying Anatoly and David H. too.
Hi, David Marchand
I am only merged the patch(examples/l3fwd-power: implement proper
shutdown) based on 20.05-rc0 and test. the bug is not resolved.
Can you provide me with complete solution? I want to understand the cause of the whole problem
The gdb print as follows:
[root@centos-C3 build]# ./l3fwd-power -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
EAL: Detected 128 lcore(s)
EAL: Detected 4 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:7d:00.1 on NUMA socket 0
EAL: probe driver: 19e5:a221 net_hns3
Promiscuous mode selected
soft parse-ptype is enabled
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: Initialized successfully for lcore 26 power management
POWER: Initialized successfully for lcore 27 power management
port 0 is not present on the board
EAL: Error - exiting with code: 1
Cause: check_port_config failed
[root@centos-C3 build]# ./l3fwd-power -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
EAL: Detected 128 lcore(s) EAL: Detected 4 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available hugepages reported in hugepages-2048kB EAL: No available hugepages reported in hugepages-32768kB EAL: No available hugepages reported in hugepages-64kB EAL: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:7d:00.1 on NUMA socket 0 EAL: probe driver: 19e5:a221 net_hns3 EAL: using IOMMU type 1 (Type 1) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(3)
Promiscuous mode selected
soft parse-ptype is enabled
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Initialized successfully for lcore 26 power management
POWER: Initialized successfully for lcore 27 power management
Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... Port 0 modified RSS hash function based on hardware support,requested:0x20820 configured:0x820
Address:00:18:2D:01:00:9E, Allocated mbuf pool on socket 0
LPM: Adding route 0x01010100 / 24 (0)
LPM: Adding route 0x02010100 / 24 (1)
LPM: Adding route 0x03010100 / 24 (2)
LPM: Adding route 0x04010100 / 24 (3)
LPM: Adding route 0x05010100 / 24 (4)
LPM: Adding route 0x06010100 / 24 (5)
LPM: Adding route 0x07010100 / 24 (6)
LPM: Adding route 0x08010100 / 24 (7)
txq=26,0,0 txq=27,1,0
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type info
Checking link status...............0000:7d:00.1 hns3_update_link_status(): Link status change to up! done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers
^C^C^C^C^C
Killed
[root@centos-C3 build]#
[root@centos-C3 build]#
[root@centos-C3 build]#
[root@centos-C3 build]# gdb
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) set args
(gdb)
(gdb)
(gdb) ./l3fwd-power -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
Undefined command: "". Try "help".
(gdb) quit
[root@centos-C3 build]# gdb ./l3fwd-power
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/dpdk/examples/l3fwd-power/build/l3fwd-power...done.
(gdb) set args
(gdb) -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
Undefined command: "-w". Try "help".
(gdb) -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
Undefined command: "-w". Try "help".
(gdb) -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
Undefined command: "-w". Try "help".
(gdb) set args -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
(gdb) r
Starting program: /root/dpdk/examples/l3fwd-power/build/./l3fwd-power -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype Missing separate debuginfo for /root/lib/libnuma.so.1
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/ce/4eea0b0f2150f70a080bbd8835e43e78373096.debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
EAL: Detected 128 lcore(s)
EAL: Detected 4 NUMA nodes
[New Thread 0xfffff7ca8510 (LWP 87238)]
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
[New Thread 0xfffff74a7510 (LWP 87239)]
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
[New Thread 0xfffff6c86510 (LWP 87240)]
EAL: PCI device 0000:7d:00.1 on NUMA socket 0 EAL: probe driver: 19e5:a221 net_hns3 EAL: using IOMMU type 1 (Type 1) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(3)
Promiscuous mode selected
soft parse-ptype is enabled
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Initialized successfully for lcore 26 power management
POWER: Initialized successfully for lcore 27 power management
Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... Port 0 modified RSS hash function based on hardware support,requested:0x20820 configured:0x820
Address:00:18:2D:01:00:9E, Allocated mbuf pool on socket 0
LPM: Adding route 0x01010100 / 24 (0)
LPM: Adding route 0x02010100 / 24 (1)
LPM: Adding route 0x03010100 / 24 (2)
LPM: Adding route 0x04010100 / 24 (3)
LPM: Adding route 0x05010100 / 24 (4)
LPM: Adding route 0x06010100 / 24 (5)
LPM: Adding route 0x07010100 / 24 (6)
LPM: Adding route 0x08010100 / 24 (7)
txq=26,0,0 txq=27,1,0
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type info
0000:7d:00.1 hns3_update_link_status(): Link status change to up!
Checking link statusdone
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggers
^C
Program received signal SIGINT, Interrupt.0x0000000000832bd0 in rte_eal_wait_lcore ()
Missing separate debuginfos, use: debuginfo-install glibc-2.17-260.el7.aarch64 (gdb) list
1 ../sysdeps/aarch64/crti.S: No such file or directory.
(gdb) l
1 in ../sysdeps/aarch64/crti.S
(gdb) ls
Undefined command: "ls". Try "help".
(gdb) info threads
Id Target Id Frame
4 Thread 0xfffff6c86510 (LWP 87240) "lcore-slave-27"0x0000fffff7dc47d4 in epoll_pwait () from /lib64/libc.so.6
3 Thread 0xfffff74a7510 (LWP 87239) "rte_mp_handle"0x0000fffff7e7a918 in recvmsg () from /lib64/libpthread.so.0
2 Thread 0xfffff7ca8510 (LWP 87238) "eal-intr-thread"0x0000fffff7dc47d4 in epoll_pwait () from /lib64/libc.so.6
* 1 Thread 0xfffff7ce2110 (LWP 87235) "l3fwd-power" 0x0000000000832bd0 in rte_eal_wait_lcore ()
(gdb)
Thanks
Lijun Ou
Quoted 59 lines
Quoted 42 lines
the log as follows:
Initializing rx queues on lcore 26 ...
Initializing rx queues on lcore 27 ... rxq=0,0,0 Port 0: softly parse packet type infoChecking link status...............0000:7d:00.1
hns3_update_link_status(): Link status change to up!
done
Port 0 Link Up - speed 25000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggersL3FWD_POWER: lcore 27 is waked up from rx interrupt on port 0 queue 0L3FWD_POWER: lcore 27 sleeps until interrupt triggers ^CPOWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'userspace' mode andQuoted 8 lines
been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'userspace' mode and been set back to the original
0000:7d:00.1hns3_dev_close(): Close port 0 finished
User forced exit
[root@centos-C3 build]#So I understand those traces are for when it works.
What about the traces when it does not work?
Can you get a backtrace to know where the process is stuck?Thanks for reporting.
Quoted 16 lines · oulijun
Quoted 13 lines · David Marchand
Hello,
Quoted 5 lines · oulijun
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and found that after starting l3fwd-power,
using ctrl+c cannot force quit. But I revert the patch(33666b4 service:
fix crash on exit) and it is ok.We had a fix in rc1 that is supposed to fix this.
https://git.dpdk.org/dpdk/commit?id=613ce6691c0d5ac0f99d7995f1e8e4ac86643882
Quoted 5 lines
Quoted 2 lines
Copying Anatoly and David H. too.
Hi, David Marchand
I am only merged the patch(examples/l3fwd-power: implement proper
shutdown) based on 20.05-rc0 and test.
Why are you testing 20.05-rc0 when there is a later version that already has all of this fixed? What's the point of creating additional difficulties for yourself, and, more importantly, reporting bugs to the community that are already fixed while also not testing the version that has those fixes? What are you trying to do that requires you to use rc0 instead of rc2 or later?
We know rc0 was buggy. We had one patch (linked to by David above) in rc1 that fixed it. We had another one in rc2 (linked by myself in another email: https://git.dpdk.org/dpdk/commit/?id=f4d1e19c293dc95073614f630ea729cf0bfb57b7) which completed the fix. Both of these patches are present in rc2 and later. So why not try and test rc2 or laster, instead of cherry-picking patches on top of rc0?
the bug is not resolved.
Quoted 2 lines
Can you provide me with complete solution? I want to understand the cause of the whole problem
The cause of the problem is described in the commit messages for the patches. The one David linked to was because l3fwd was exiting incorrectly and was relying on particulars of implementation of rte_exit() which exited the application straight away, without waiting for threads to finish. The one i linked to fixed an additional issue related to waiting for interrupts - there was no timeout, so the thread never woke up if there was no traffic, and thus rte_exit() couldn't finish as well.
All of the above was fixed by rc2, and later versions have these fixes as well. So, why are you insisting on using an outdated version for testing?
Signature · 2 lines
Thanks, Anatoly
Quoted 16 lines · oulijun
Quoted 13 lines · David Marchand
Hello,
Quoted 5 lines · oulijun
I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and found that after starting l3fwd-power,
using ctrl+c cannot force quit. But I revert the patch(33666b4 service:
fix crash on exit) and it is ok.We had a fix in rc1 that is supposed to fix this.
https://git.dpdk.org/dpdk/commit?id=613ce6691c0d5ac0f99d7995f1e8e4ac86643882
Quoted 6 lines
Quoted 2 lines
Copying Anatoly and David H. too.
Hi, David Marchand
I am only merged the patch(examples/l3fwd-power: implement proper shutdown) based on 20.05-rc0 and test. the bug is not resolved. Can you provide me with complete solution? I want to understand the cause of the whole problem
Hi Lijun,
The complete solution is to use a version with all of the fixes, as Anatoly suggested previously. I have just checked out the latest tip of the master branch, and l3fwd-power exits gracefully with a single CTRL-C:
...
Checking link statusdone
Port 0 Link Up - speed 100000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27
L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggers
*^C*POWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'performance' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'performance' mode and been set back to the original #
Rgds,
Dave.
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power
startup fail.
[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c 0xc000000 -n 4 -- -P -p 0x01 --config '(0,0,27)' --parse-ptype
EAL: Detected 128 lcore(s)
EAL: Detected 4 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Ignore mapping IO port bar(1)
EAL: Ignore mapping IO port bar(3)
EAL: Probe PCI driver: net_hns3 (19e5:a221) device: 0000:7d:00.1 (socket 0)
No telemetry legacy support - No legacy callbacks, legacy socket not created
Promiscuous mode selected
soft parse-ptype is enabled
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26
POWER: Attempting to initialise VM power management...GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directory
POWER: Unable to set Power Management Environment for lcore 26
POWER: Library initialization failed on core 26
EAL: Error - exiting with code: 1
Cause: init_power_library failed
Thanks
Lijun Ou
Quoted 52 lines · David
Quoted 17 lines · oulijun
Quoted 14 lines · David Marchand
Hello,
Quoted 6 lines · oulijun
I am using 20.05-rc2 version to test based on HNS3 NIC
hardware, and
found that after starting l3fwd-power,using ctrl+c cannot force quit. But I revert the patch(33666b4 service:
fix crash on exit) and it is ok.We had a fix in rc1 that is supposed to fix this.
https://git.dpdk.org/dpdk/commit?id=613ce6691c0d5ac0f99d7995f1e8e4ac86643882Quoted 7 lines
Quoted 2 lines
Copying Anatoly and David H. too.
Hi, David Marchand
I am only merged the patch(examples/l3fwd-power: implement proper
shutdown) based on 20.05-rc0 and test. the bug is not resolved.
Can you provide me with complete solution? I want to understand the cause of the whole problemHi Lijun,
The complete solution is to use a version with all of the fixes, as
Anatoly suggested previously. I have just checked out the latest tip of the master branch, and l3fwd-power exits gracefully with a single CTRL-C:...
Checking link statusdone
Port 0 Link Up - speed 100000 Mbps - full-duplexL3FWD_POWER: entering main loop on lcore 27L3FWD_POWER: -- lcoreid=27 portid=0 rxqueueid=0L3FWD_POWER: lcore 26 has nothing to doL3FWD_POWER: lcore 27 sleeps until interrupt triggers
*^C*POWER: Power management governor of lcore 26 has been set back to successfully
POWER: Power management of lcore 26 has exited from 'performance' mode and been set back to the original
POWER: Power management governor of lcore 27 has been set back to successfully
POWER: Power management of lcore 27 has exited from 'performance' mode and been set back to the original #Rgds,
Dave.
Hi Lijun,
Quoted 6 lines · oulijun
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power startup fail.[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c
0xc000000-n 4 -- -P -p0x01--config '(0,0,27)' --parse-ptype
--snip--
Quoted 8 lines
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26
This was not happening in your previous logs, have you got the 'msr' kernel module loaded?
Quoted 3 lines
POWER: Attempting to initialise VM power management...
GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directory
I did not see any GUEST_CHANNEL notifications in the previous logs you provided, has your setup changed in any way?
By the way, I can run the command you provided above (without the whitelist) without any errors on my system, and a single CTRL-C exits gracefully. I am not running in a VM.
Rgds,
Dave.
Quoted 23 lines · David
Hi Lijun,
Quoted 7 lines · oulijun
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power
startup fail.[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c
0xc000000-n 4 -- -P -p0x01--config '(0,0,27)' --parse-ptype--snip--
Quoted 8 lines
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26
Quoted 2 lines
This was not happening in your previous logs, have you got the 'msr' kernel module loaded?
Yes. But what I don't understand is that the dpdk version I use is different, and the kernel module is the same. the 20.05-rc0 is ok when startup and the 20.05-rc2 is not. I don't notice the msr module.
Quoted 9 lines
Quoted 3 lines
POWER: Attempting to initialise VM power management...
GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directoryI did not see any
GUEST_CHANNELnotifications in the previous logs you provided, has your setup changed in any way?By the way, I can run the command you provided above (without the whitelist) without any errors on my system, and a single CTRL-C exits gracefully. I am not running in a VM.
I don't running vm. I want to test the 20.05-rc2 according to your advice. the kernel is the same.
Quoted 6 lines
Rgds,
Dave..
Quoted 39 lines · oulijun
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power
startup fail.[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c
0xc000000-n 4
-- -P -p0x01--config '(0,0,27)' --parse-ptype
EAL: Detected 128 lcore(s)
EAL: Detected 4 NUMA nodes
EAL: Multi-process socket/var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Ignore mapping IO port bar(1)
EAL: Ignore mapping IO port bar(3)
EAL: Probe PCI driver:net_hns3(19e5:a221) device: 0000:7d:00.1 (socket 0)
No telemetry legacy support - No legacy callbacks, legacy socket not created
Promiscuous mode selected
soft parse-ptype is enabled
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26
POWER: Attempting to initialise VM power management...GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directory
POWER: Unable to set Power Management Environment for lcore 26
POWER: Library initialization failed on core 26
EAL: Error - exiting with code: 1
Cause:init_power_libraryfailed
Quoted 3 lines
Thanks
Lijun Ou
Hi,
Previously, l3fwd-power was very lax in what it was allowing. Now, if it can't enable power management, it will not run, because it is more strict in what it allows.
As is shown in the log, it tries to initialize ACPI power management, but fails. Then, it tries to initialize pstate mode, and it appears that MSR driver is not loaded, so it doesn't work either. It also tries to check if a KVM channel exists, which doesn't, and that fails as well. So, no power management environment can be enabled, and the application fails to start.
In order to make it work, you should either boot in ACPI mode (kernel parameter: "intel_pstate=disable"), or load the MSR driver (root command: modprobe msr).
This more strict power library initialization was added because we saw people misusing l3fwd-power to attempt to run without power management environment being initialized (such as inside a VM while not having telemetry mode enabled), which it was not designed to do and which would be an invalid test.
Signature · 2 lines
Thanks, Anatoly
Quoted 46 lines · Anatoly
Quoted 39 lines · oulijun
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power
startup fail.[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c
0xc000000-n 4
-- -P -p0x01--config '(0,0,27)' --parse-ptype
EAL: Detected 128 lcore(s)
EAL: Detected 4 NUMA nodes
EAL: Multi-process socket/var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Ignore mapping IO port bar(1)
EAL: Ignore mapping IO port bar(3)
EAL: Probe PCI driver:net_hns3(19e5:a221) device: 0000:7d:00.1 (socket 0)
No telemetry legacy support - No legacy callbacks, legacy socket not created
Promiscuous mode selected
soft parse-ptype is enabled
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26
POWER: Attempting to initialise VM power management...GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directory
POWER: Unable to set Power Management Environment for lcore 26
POWER: Library initialization failed on core 26
EAL: Error - exiting with code: 1
Cause:init_power_libraryfailedQuoted 3 lines
Thanks
Lijun OuHi,
Quoted 8 lines
Previously, l3fwd-power was very lax in what it was allowing. Now, if it can't enable power management, it will not run, because it is more strict in what it allows.
As is shown in the log, it tries to initialize ACPI power management, but fails. Then, it tries to initialize pstate mode, and it appears that MSR driver is not loaded, so it doesn't work either. It also tries to check if a KVM channel exists, which doesn't, and that fails as well. So, no power management environment can be enabled, and the application fails to start.
In order to make it work, you should either boot in ACPI mode (kernel parameter: "intel_pstate=disable"), or load the MSR driver (root command: modprobe msr).
This more strict power library initialization was added because we saw people misusing l3fwd-power to attempt to run without power management environment being initialized (such as inside a VM while not having telemetry mode enabled), which it was not designed to do and which would be an invalid test.
thanks. I will try it
Quoted 30 lines · David
Hi Lijun,
Quoted 7 lines · oulijun
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power
startup fail.[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c
0xc000000-n 4 -- -P -p0x01--config '(0,0,27)' --parse-ptype--snip--
Quoted 8 lines
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26This was not happening in your previous logs, have you got the 'msr' kernel module loaded?
Quoted 3 lines
POWER: Attempting to initialise VM power management...
GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directory
Quoted 7 lines
I did not see any
GUEST_CHANNELnotifications in the previous logs you provided, has your setup changed in any way?By the way, I can run the command you provided above (without the whitelist) without any errors on my system, and a single CTRL-C exits gracefully. I am not running in a VM.
Rgds,
Dave.
Is your hardware system x86? My system is arm64
Quoted 3 lines
.
Quoted 31 lines · oulijun
Quoted 28 lines · David
Hi Lijun,
Quoted 5 lines · oulijun
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power startup fail.[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c
0xc000000-n 4 -- -P -p0x01--config '(0,0,27)' --parse-ptype--snip--
Quoted 8 lines
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26This was not happening in your previous logs, have you got the 'msr' kernel module loaded?
Quoted 3 lines
POWER: Attempting to initialise VM power management...
GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directory
Quoted 12 lines
Quoted 7 lines
I did not see any
GUEST_CHANNELnotifications in the previous logs you provided, has your setup changed in any way?By the way, I can run the command you provided above (without the whitelist) without any errors on my system, and a single CTRL-C exits gracefully. I am not running in a VM.
Rgds,
Dave.Is your hardware system x86? My system is arm64
Quoted 3 lines
.
I'm on an x86 system.
Rgds,
Dave.
Quoted 49 lines · oulijun
Quoted 46 lines · Anatoly
Quoted 37 lines · oulijun
Hi,
I have update the code into 20.05-rc2. However, the l3fwd-power startup fail.[root@centos-C3 build]# l3fwd-power -w 0000:7d:00.1 -c
0xc000000-n 4 -- -P -p0x01--config '(0,0,27)' --parse-ptype
EAL: Detected 128 lcore(s)
EAL: Detected 4 NUMA nodes
EAL: Multi-process socket/var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Ignore mapping IO port bar(1)
EAL: Ignore mapping IO port bar(3)
EAL: Probe PCI driver:net_hns3(19e5:a221) device: 0000:7d:00.1 (socket 0)
No telemetry legacy support - No legacy callbacks, legacy socket not created
Promiscuous mode selected
soft parse-ptype is enabled
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Power management governor of lcore 26 has been set to user space successfully
POWER: File not opened
POWER: Cannot get available frequencies of lcore 26
POWER: Attempting to initialise PSTAT power management...
POWER: Power management governor of lcore 26 has been set to performance successfully
POWER: Error opening '/dev/cpu/26/msr': No such file or directory
POWER: Cannot init for setting frequency for lcore 26
POWER: Attempting to initialise VM power management...GUEST_CHANNEL: Opening channel '/dev/virtio-ports/virtio.serial.port.poweragent.26' for lcore 26GUEST_CHANNEL: Unable to to connect to '/dev/virtio-ports/virtio.serial.port.poweragent.26' with error No such file or directory
POWER: Unable to set Power Management Environment for lcore 26
POWER: Library initialization failed on core 26
EAL: Error - exiting with code: 1
Cause:init_power_libraryfailedQuoted 3 lines
Thanks
Lijun OuHi,
Previously, l3fwd-power was very lax in what it was allowing. Now, if it can't enable power management, it will not run, because it is more strict in what it allows.
Quoted 8 lines
Quoted 6 lines
As is shown in the log, it tries to initialize ACPI power management, but fails. Then, it tries to initialize pstate mode, and it appears that MSR driver is not loaded, so it doesn't work either. It also tries to check if a KVM channel exists, which doesn't, and that fails as well. So, no power management environment can be enabled, and the application fails to start.
In order to make it work, you should either boot in ACPI mode (kernel parameter: "intel_pstate=disable"), or load the MSR driver (root command: modprobe msr).
This more strict power library initialization was added because we saw people misusing l3fwd-power to attempt to run without power management environment being initialized (such as inside a VM while not having telemetry mode enabled), which it was not designed to do and which would be an invalid test.
thanks. I will try it
In another email, you said that your system is arm64. The pstate mode won't work on that (it's an Intel-specific driver, after all), and i'm not sure if ACPI would work either, we never tested it on arm64 and i'm not even sure it's _supposed to_ work. The librte_power library has always been IA-specific.
I have a sneaking suspicion that you too are attempting to use l3fwd-power to test interrupts, rather than the librte_power library. Is that the case?
Signature · 2 lines
Thanks, Anatoly