bus/pci: set boot-up log prints to absolute minimum
PATCH 1/1 bus/pci: set boot-up log prints to absolute minimum
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
This patch changes the loglevel of PCI probes to debug to reduce the clutter on default boot-up logs
--- drivers/bus/pci/pci_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bus/pci/pci_common.c +2 -2
@@ -136,7 +136,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,/* Match of device and driver failed */ return 1 ; -RTE_LOG (INFO ,EAL ,"PCI device " PCI_PRI_FMT " on NUMA socket %i\n" , +RTE_LOG (DEBUG ,EAL ,"PCI device " PCI_PRI_FMT " on NUMA socket %i\n" , loc->domain, loc->bus, loc->devid, loc->function, dev->device.numa_node);
@@ -161,7 +161,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,return -EEXIST ; } -RTE_LOG (INFO ,EAL ," probe driver: %x:%x %s\n" , dev->id.vendor_id, +RTE_LOG (DEBUG ,EAL ," probe driver: %x:%x %s\n" , dev->id.vendor_id, dev->id.device_id, dr->driver.name);/*
Signature · 1 line
2.24.1
21/01/2020 09:00, [email protected]:
Quoted 8 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logs
I think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.
Quoted 8 lines · Thomas Monjalon
21/01/2020 09:00, [email protected]:
Quoted 6 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
Quoted 6 lines
Quoted 2 lines
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logsI think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.
I am wondering, what would be the right balance, Following is DPDK startup output from octeontx2[1]
It creates a lot of clutter in the "default" boot up. Why not enable below prints using log level at runtime?
I believe it comes as a debug category, i.e information required to debug if something is not working,
dpdk bind script already lists what is bound to DPDK.
Suggestion to remove clutter?
[1]
EAL: Detected 24 lcore(s) EAL: Detected 1 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: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0002:01:00.1 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:00.2 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:00.3 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:00.4 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:00.5 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:00.6 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:00.7 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.0 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.1 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.2 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.3 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.4 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.5 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.6 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:01.7 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:01:02.0 on NUMA socket 0 EAL: probe driver: 177d:a0f8 net_octeontx2 EAL: PCI device 0002:02:00.0 on NUMA socket 0 EAL: probe driver: 177d:a063 net_octeontx2 EAL: using IOMMU type 1 (Type 1) EAL: PCI device 0002:03:00.0 on NUMA socket 0 EAL: probe driver: 177d:a063 net_octeontx2 EAL: PCI device 0002:04:00.0 on NUMA socket 0 EAL: probe driver: 177d:a063 net_octeontx2 EAL: PCI device 0002:05:00.0 on NUMA socket 0 EAL: probe driver: 177d:a063 net_octeontx2 EAL: PCI device 0002:06:00.0 on NUMA socket 0 EAL: probe driver: 177d:a063 net_octeontx2 EAL: PCI device 0002:07:00.0 on NUMA socket 0 EAL: probe driver: 177d:a063 net_octeontx2 EAL: PCI device 0002:08:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0f9 event_octeontx2 EAL: PCI device 0002:09:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0f9 event_octeontx2 EAL: PCI device 0002:0a:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0f9 event_octeontx2 EAL: PCI device 0002:0b:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0f9 event_octeontx2 EAL: PCI device 0002:0c:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0fb mempool_octeontx2 EAL: PCI device 0002:0d:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0fb mempool_octeontx2 EAL: PCI device 0002:0e:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0f9 event_octeontx2 EAL: PCI device 0002:0f:00.0 on NUMA socket 0 EAL: probe driver: 177d:a0fb mempool_octeontx2 APP: HPET is not enabled, using TSC as default timer
Quoted 3 lines
06/02/2020 15:36, Jerin Jacob:
Quoted 23 lines · Thomas Monjalon
Quoted 7 lines
21/01/2020 09:00, [email protected]:
Quoted 6 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
Quoted 6 lines
Quoted 2 lines
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logsI think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.I am wondering, what would be the right balance, Following is DPDK startup output from octeontx2[1]
It creates a lot of clutter in the "default" boot up. Why not enable below prints using log level at runtime?
I believe it comes as a debug category, i.e information required to debug if something is not working,
dpdk bind script already lists what is bound to DPDK.
Quoted 1 line
Suggestion to remove clutter?
I suggest using dynamic log level in the PCI driver. Unfortunately a lot of old DPDK code is still using the old log macros. Some cleanup work is needed here.
Quoted 25 lines · Thomas Monjalon
06/02/2020 15:36, Jerin Jacob:
Quoted 23 lines · Thomas Monjalon
Quoted 7 lines
21/01/2020 09:00, [email protected]:
Quoted 6 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
Quoted 6 lines
Quoted 2 lines
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logsI think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.I am wondering, what would be the right balance, Following is DPDK startup output from octeontx2[1]
It creates a lot of clutter in the "default" boot up. Why not enable below prints using log level at runtime?
I believe it comes as a debug category, i.e information required to debug if something is not working,
dpdk bind script already lists what is bound to DPDK.
Quoted 5 lines
Quoted 1 line
Suggestion to remove clutter?
I suggest using dynamic log level in the PCI driver. Unfortunately a lot of old DPDK code is still using the old log macros. Some cleanup work is needed here.
Sent an alternative fix to skip probing the devices with RTE_KDRV_NONE. I think that is the source of the problem.
http://patches.dpdk.org/patch/69351/
Quoted 2 lines
26/04/2020 19:42, Jerin Jacob:
Quoted 25 lines · Thomas Monjalon
Quoted 24 lines
06/02/2020 15:36, Jerin Jacob:
Quoted 23 lines · Thomas Monjalon
Quoted 7 lines
21/01/2020 09:00, [email protected]:
Quoted 6 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
Quoted 6 lines
Quoted 2 lines
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logsI think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.I am wondering, what would be the right balance, Following is DPDK startup output from octeontx2[1]
It creates a lot of clutter in the "default" boot up. Why not enable below prints using log level at runtime?
I believe it comes as a debug category, i.e information required to debug if something is not working,
dpdk bind script already lists what is bound to DPDK.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Suggestion to remove clutter?
I suggest using dynamic log level in the PCI driver. Unfortunately a lot of old DPDK code is still using the old log macros. Some cleanup work is needed here.
Sent an alternative fix to skip probing the devices with
RTE_KDRV_NONE.
No, a PCI PMD can work without a known kernel driver. This is the case of mlx4/mlx5.
Quoted 2 lines
I think that is the source of the problem.
http://patches.dpdk.org/patch/69351/
The source of the problem is just changing log levels dynamically is not possible currently with PCI driver logs.
Quoted 29 lines · Thomas Monjalon
26/04/2020 19:42, Jerin Jacob:
Quoted 27 lines · Thomas Monjalon
Quoted 26 lines
06/02/2020 15:36, Jerin Jacob:
Quoted 24 lines · Thomas Monjalon
Quoted 7 lines
21/01/2020 09:00, [email protected]:
Quoted 6 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
Quoted 6 lines
Quoted 2 lines
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logsI think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.I am wondering, what would be the right balance, Following is DPDK startup output from octeontx2[1]
It creates a lot of clutter in the "default" boot up. Why not enable below prints using log level at runtime?
I believe it comes as a debug category, i.e information required to debug if something is not working,
dpdk bind script already lists what is bound to DPDK.Suggestion to remove clutter?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I suggest using dynamic log level in the PCI driver. Unfortunately a lot of old DPDK code is still using the old log macros. Some cleanup work is needed here.
Sent an alternative fix to skip probing the devices with
RTE_KDRV_NONE.No, a PCI PMD can work without a known kernel driver. This is the case of mlx4/mlx5.
Yes. it can work with UNKNOWN, But It not with NONE.
Quoted 6 lines
Quoted 3 lines
I think that is the source of the problem.
http://patches.dpdk.org/patch/69351/The source of the problem is just changing log levels dynamically is not possible currently with PCI driver logs.
Assuming if we add, dynamic stuff what would the default log level for RTE_LOG(INFO, EAL, "PCI device "PCI_PRI_FMT" on NUMA socket %i\n",
If it is INFO, Still the problem persist in the default bootup. Right?
Quoted 2 lines
26/04/2020 20:48, Jerin Jacob:
Quoted 43 lines · Thomas Monjalon
Quoted 28 lines
26/04/2020 19:42, Jerin Jacob:
Quoted 27 lines · Thomas Monjalon
Quoted 26 lines
06/02/2020 15:36, Jerin Jacob:
Quoted 24 lines · Thomas Monjalon
Quoted 7 lines
21/01/2020 09:00, [email protected]:
Quoted 6 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
Quoted 6 lines
Quoted 2 lines
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logsI think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.I am wondering, what would be the right balance, Following is DPDK startup output from octeontx2[1]
It creates a lot of clutter in the "default" boot up. Why not enable below prints using log level at runtime?
I believe it comes as a debug category, i.e information required to debug if something is not working,
dpdk bind script already lists what is bound to DPDK.Suggestion to remove clutter?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I suggest using dynamic log level in the PCI driver. Unfortunately a lot of old DPDK code is still using the old log macros. Some cleanup work is needed here.
Sent an alternative fix to skip probing the devices with
RTE_KDRV_NONE.No, a PCI PMD can work without a known kernel driver. This is the case of mlx4/mlx5.
Yes. it can work with UNKNOWN, But It not with NONE.
Quoted 3 lines
Quoted 2 lines
I think that is the source of the problem.
http://patches.dpdk.org/patch/69351/
Quoted 7 lines
Quoted 2 lines
The source of the problem is just changing log levels dynamically is not possible currently with PCI driver logs.
Assuming if we add, dynamic stuff what would the default log level for RTE_LOG(INFO, EAL, "PCI device "
PCI_PRI_FMT" on NUMA socket %i\n",If it is INFO, Still the problem persist in the default bootup. Right?
Yes
We need to know in INFO level which devices are successfully probed. You want to decrease to DEBUG the level of logs announcing a probe. I think it would be OK if adding an INFO log after probe success.
Quoted 51 lines · Thomas Monjalon
26/04/2020 20:48, Jerin Jacob:
Quoted 49 lines · Thomas Monjalon
Quoted 28 lines
26/04/2020 19:42, Jerin Jacob:
Quoted 27 lines · Thomas Monjalon
Quoted 26 lines
06/02/2020 15:36, Jerin Jacob:
Quoted 24 lines · Thomas Monjalon
Quoted 7 lines
21/01/2020 09:00, [email protected]:
Quoted 6 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices, logs from PCI probe creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
Quoted 6 lines
Quoted 2 lines
This patch changes the loglevel of PCI probes to
debugto reduce the clutter on default boot-up logsI think the PCI probe informations are... informational. Maybe you are just not interested in info logs.
If this is the case, I suggest to change the log level at runtime.I am wondering, what would be the right balance, Following is DPDK startup output from octeontx2[1]
It creates a lot of clutter in the "default" boot up. Why not enable below prints using log level at runtime?
I believe it comes as a debug category, i.e information required to debug if something is not working,
dpdk bind script already lists what is bound to DPDK.Suggestion to remove clutter?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I suggest using dynamic log level in the PCI driver. Unfortunately a lot of old DPDK code is still using the old log macros. Some cleanup work is needed here.
Sent an alternative fix to skip probing the devices with
RTE_KDRV_NONE.No, a PCI PMD can work without a known kernel driver. This is the case of mlx4/mlx5.
Yes. it can work with UNKNOWN, But It not with NONE.
Quoted 5 lines
Quoted 2 lines
I think that is the source of the problem.
http://patches.dpdk.org/patch/69351/The source of the problem is just changing log levels dynamically is not possible currently with PCI driver logs.
Assuming if we add, dynamic stuff what would the default log level for RTE_LOG(INFO, EAL, "PCI device "
PCI_PRI_FMT" on NUMA socket %i\n",
Quoted 7 lines
Quoted 1 line
If it is INFO, Still the problem persist in the default bootup. Right?
Yes
We need to know in INFO level which devices are successfully probed. You want to decrease to DEBUG the level of logs announcing a probe. I think it would be OK if adding an INFO log after probe success.
OK. I will send the v2 by changing the existing one as DEBUG and a successful probe as INFO.
Quoted 3 lines
PATCH v2 1/1 bus/pci: set boot-up log prints to absolute minimum
In reply to [email protected]From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices and all of them are not bound to DPDK. In such case the logs from EAL creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
This patch changes the following to reduce the clutter in the default boot-up logs.
- Change the log-level of PCI probes to debug
- Introduce new driver probe as info log-level for the successful probe.
---
v2:
- Introduce new driver probe as info log-level for the successful probe(Thomas)
drivers/bus/pci/pci_common.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/bus/pci/pci_common.c +6 -2
@@ -136,7 +136,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,/* Match of device and driver failed */ return 1 ; -RTE_LOG (INFO ,EAL ,"PCI device " PCI_PRI_FMT " on NUMA socket %i\n" , +RTE_LOG (DEBUG ,EAL ,"PCI device " PCI_PRI_FMT " on NUMA socket %i\n" , loc->domain, loc->bus, loc->devid, loc->function, dev->device.numa_node);
@@ -161,7 +161,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,return -EEXIST ; } -RTE_LOG (INFO ,EAL ," probe driver: %x:%x %s\n" , dev->id.vendor_id, +RTE_LOG (DEBUG ,EAL ," probe driver: %x:%x %s\n" , dev->id.vendor_id, dev->id.device_id, dr->driver.name);/*
@@ -195,6 +195,10 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr, } } +RTE_LOG (INFO ,EAL ,"Probe PCI driver: %s (%x:%x) device: " PCI_PRI_FMT " (socket %i)\n" , + dr->driver.name, dev->id.vendor_id, dev->id.device_id, + loc->domain, loc->bus, loc->devid, loc->function, + dev->device.numa_node);/* call the driver probe() function */ ret = dr->probe (dr, dev);if (already_probed)
--
2.26.2
Quoted 11 lines · On Mon, May 4, 2020 at 6:56 PM <[email protected]> wrote:
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices and all of them are not bound to DPDK. In such case the logs from EAL creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
This patch changes the following to reduce the clutter in the default boot-up logs.
Quoted 8 lines
- Change the log-level of PCI probes to
debug
- Introduce new driver probe asinfolog-level for the successful probe.Signed-off-by Jerin Jacob <[email protected]>---
v2:
- Introduce new driver probe asinfolog-level for the successful probe(Thomas)
Thomas,
Could you review and merge this for RC2.
I have addressed the comments. Limited the default prints to successful probe().
Quoted 40 lines
drivers/bus/pci/pci_common.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/bus/pci/pci_common.c +6
-3@@ -136,7 +136,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,/* Match of device and driver failed */ return 1 ; -RTE_LOG (INFO ,EAL ,"PCI device " PCI_PRI_FMT " on NUMA socket %i\n" , +RTE_LOG (DEBUG ,EAL ,"PCI device " PCI_PRI_FMT " on NUMA socket %i\n" , loc->domain, loc->bus, loc->devid, loc->function, dev->device.numa_node);@@ -161,7 +161,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,return -EEXIST ; } -RTE_LOG (INFO ,EAL ," probe driver: %x:%x %s\n" , dev->id.vendor_id, +RTE_LOG (DEBUG ,EAL ," probe driver: %x:%x %s\n" , dev->id.vendor_id, dev->id.device_id, dr->driver.name);/* @@ -195,6 +195,10 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr, } } +RTE_LOG (INFO ,EAL ,"Probe PCI driver: %s (%x:%x) device: " PCI_PRI_FMT " (socket %i)\n" , + dr->driver.name, dev->id.vendor_id, dev->id.device_id, + loc->domain, loc->bus, loc->devid, loc->function, + dev->device.numa_node);/* call the driver probe() function */ ret = dr->probe (dr, dev);if (already_probed) --2.26.2
07/05/2020 15:54, Jerin Jacob:
Quoted 22 lines · On Mon, May 4, 2020 at 6:56 PM <[email protected]> wrote:
Quoted 11 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices and all of them are not bound to DPDK. In such case the logs from EAL creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
This patch changes the following to reduce the clutter in the default boot-up logs.
Quoted 8 lines
- Change the log-level of PCI probes to
debug
- Introduce new driver probe asinfolog-level for the successful probe.Signed-off-by Jerin Jacob <[email protected]>---
v2:
- Introduce new driver probe asinfolog-level for the successful probe(Thomas)
Quoted 3 lines
Thomas,
Could you review and merge this for RC2.
I have addressed the comments. Limited the default prints to successfulprobe().
Yes it's in my list for -rc2.
Thomas Monjalon
Applied07/05/2020 17:36, Thomas Monjalon:
Quoted 23 lines
07/05/2020 15:54, Jerin Jacob:
Quoted 22 lines · On Mon, May 4, 2020 at 6:56 PM <[email protected]> wrote:
Quoted 19 lines
From: Jerin Jacob <[email protected]>
Some machines may have a lot of PCI devices and all of them are not bound to DPDK. In such case the logs from EAL creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up.
This patch changes the following to reduce the clutter in the default boot-up logs.
- Change the log-level of PCI probes to
debug
- Introduce new driver probe asinfolog-level for the successful probe.Signed-off-by Jerin Jacob <[email protected]>---
v2:
- Introduce new driver probe asinfolog-level for the successful probe(Thomas)
Quoted 5 lines
Quoted 3 lines
Thomas,
Could you review and merge this for RC2.
I have addressed the comments. Limited the default prints to successfulprobe().Yes it's in my list for -rc2.
Applied, thanks