Skip to contentSkip to conversation

Tips on tracing bwmon?

DISCUSSION Dr. David Alan Gilbert 2 participants 5 messages Oct 20 – Oct 26 Arm Qualcomm mailing list

lore
Share & tools
lore
#0 lore raw

Hi all,
I was looking for some tips on if I can use bwmon to see what interconnect
bandwidth is going through the dwc3 usb controllers on my x1 based Asus Zenbook A14.

I've got usb-ncm gadget wired between a pair of them and I'd
like to see what stats are available;
(See details of my gadget stuff setup in
https://lore.kernel.org/linux-arm-msm/atJn2jfI_cZy3UMo@gallifrey/T/#u )
And that's struggling to get much over 4Gbit/s over the network interface.

One reason I'm curious is because the dwc3-qcom glue sets an average and a peak icc limit, and I wanted to know what the difference was and what the type of timescales were for how long it allowed a peak.

Are there any docs I should look at?

I did:
trace-cmd stream -e icc_bwmon:qcom_bwmon_update > log
on both machines and during the run I'm seeing events on exactly 3 of the monitors;
24091000.pmu, 240b5400.pmu, 240b6400.pmu

(In the numbers below I've grepped for that monitor and sed'ed out upto the 'measu_kbps=' part so I can then sort on the meas_kbps)

My reading of the interconnects_summary is these PMUs are somewhere under the llcc_mc@interconnect-1, and in some cases under both chm_apps@ and qns_llcc

So how do I interpret these - can I infer the bandwidth the usb controller is using or just have a feel for the level above?
(Here the iperf -s server is running on 'dragon' and the client is running on 'soup' - I find the partial symmetry between 240b[56]400.pmu on the two machines promising it's measuring something useful!)

This is running a 7.30-rc6 with a bunch of stuff from Jens Glathe on top.

Thanks in advance,

Dave (numbers below)

24091000.pmu
on the llcc_mc@interconnect-1 (which also has the a400000.usb)

dragon/server:

        lowest:    16000 up_kbps=800001 down_kbps=800000
       heighest: 2816000 up_kbps=3072001 down_kbps=2188000
        h-l:     2800000         2272000           1388000

soup/client:

         lowest: 160000 up_kbps=800001 down_kbps=800000
        highest: 6256000 up_kbps=6835201 down_kbps=6220800               
        h-l      6096000         6035200           5420800

240b5400.pmu
on the [email protected] (which also has the a400000.usb)

        also under [email protected]
  
    dragon/server:
         lowest: 1328000 up_kbps=4800001 down_kbps=4800000
       heighest: 5616000 up_kbps=7464001 down_kbps=4800000 
            h-l  4288000         2664000                 0

    soup/client:
         lowest: 1440000 up_kbps=4800001 down_kbps=4800000
        highest: 4480000 up_kbps=4800001 down_kbps=4800000
            h-l  3040000               0                 0

240b6400.pmu
same as for 240b5400

    dragon/server:
         lowest:  352000 up_kbps=4800001 down_kbps=4800000
        highest: 3568000 up_kbps=4800001 down_kbps=4800000
            h-l  3216000               0                 0

    soup/client:
         lowest: 3216000 up_kbps=4800001 down_kbps=4800000
       heighest: 8736000 up_kbps=9600001 down_kbps=7464000
           h-l   5520000         4800000           2664000
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#1 lore raw
Quoted 22 lines · Dr. David Alan Gilbert

Hi all,
I was looking for some tips on if I can use bwmon to see what interconnect
bandwidth is going through the dwc3 usb controllers on my x1 based Asus Zenbook A14.

I've got usb-ncm gadget wired between a pair of them and I'd
like to see what stats are available;
(See details of my gadget stuff setup in
https://lore.kernel.org/linux-arm-msm/atJn2jfI_cZy3UMo@gallifrey/T/#u )
And that's struggling to get much over 4Gbit/s over the network interface.

One reason I'm curious is because the dwc3-qcom glue sets an average and a peak icc limit, and I wanted to know what the difference was and what the type of timescales were for how long it allowed a peak.

Are there any docs I should look at?

I did:
trace-cmd stream -e icc_bwmon:qcom_bwmon_update > log
on both machines and during the run I'm seeing events on exactly 3 of the monitors;
24091000.pmu, 240b5400.pmu, 240b6400.pmu

Quoted 6 lines

(In the numbers below I've grepped for that monitor and sed'ed out upto the 'measu_kbps=' part so I can then sort on the meas_kbps)

My reading of the interconnects_summary is these PMUs are somewhere under the llcc_mc@interconnect-1, and in some cases under both chm_apps@ and qns_llcc

These BWMONs only monitor the CPU-DRAM paths

Konrad

#2 lore raw
Quoted 23 lines · * Konrad Dybcio ([email protected]) wrote:
Quoted 22 lines · Dr. David Alan Gilbert

Hi all,
I was looking for some tips on if I can use bwmon to see what interconnect
bandwidth is going through the dwc3 usb controllers on my x1 based Asus Zenbook A14.

I've got usb-ncm gadget wired between a pair of them and I'd
like to see what stats are available;
(See details of my gadget stuff setup in
https://lore.kernel.org/linux-arm-msm/atJn2jfI_cZy3UMo@gallifrey/T/#u )
And that's struggling to get much over 4Gbit/s over the network interface.

One reason I'm curious is because the dwc3-qcom glue sets an average and a peak icc limit, and I wanted to know what the difference was and what the type of timescales were for how long it allowed a peak.

Are there any docs I should look at?

I did:
trace-cmd stream -e icc_bwmon:qcom_bwmon_update > log
on both machines and during the run I'm seeing events on exactly 3 of the monitors;
24091000.pmu, 240b5400.pmu, 240b6400.pmu

Quoted 8 lines
Quoted 6 lines

(In the numbers below I've grepped for that monitor and sed'ed out upto the 'measu_kbps=' part so I can then sort on the meas_kbps)

My reading of the interconnects_summary is these PMUs are somewhere under the llcc_mc@interconnect-1, and in some cases under both chm_apps@ and qns_llcc

These BWMONs only monitor the CPU-DRAM paths

Thanks for the reply and explanation.

Are there other BWMONs that should show the USB path bandwidth, and if so how would I watch them?

Thanks again,

Quoted 1 line

Konrad

Dave

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#3 lore raw
Quoted 31 lines · Dr. David Alan Gilbert
Quoted 30 lines · * Konrad Dybcio ([email protected]) wrote:
Quoted 28 lines · Dr. David Alan Gilbert

Hi all,
I was looking for some tips on if I can use bwmon to see what interconnect
bandwidth is going through the dwc3 usb controllers on my x1 based Asus Zenbook A14.

I've got usb-ncm gadget wired between a pair of them and I'd
like to see what stats are available;
(See details of my gadget stuff setup in
https://lore.kernel.org/linux-arm-msm/atJn2jfI_cZy3UMo@gallifrey/T/#u )
And that's struggling to get much over 4Gbit/s over the network interface.

One reason I'm curious is because the dwc3-qcom glue sets an average and a peak icc limit, and I wanted to know what the difference was and what the type of timescales were for how long it allowed a peak.

Are there any docs I should look at?

I did:
trace-cmd stream -e icc_bwmon:qcom_bwmon_update > log
on both machines and during the run I'm seeing events on exactly 3 of the monitors;
24091000.pmu, 240b5400.pmu, 240b6400.pmu

(In the numbers below I've grepped for that monitor and sed'ed out upto the 'measu_kbps=' part so I can then sort on the meas_kbps)

My reading of the interconnects_summary is these PMUs are somewhere under the llcc_mc@interconnect-1, and in some cases under both chm_apps@ and qns_llcc

Quoted 6 lines
Quoted 1 line

These BWMONs only monitor the CPU-DRAM paths

Thanks for the reply and explanation.

Are there other BWMONs that should show the USB path bandwidth, and if so how would I watch them?

Unfortunately there aren't.

Konrad

#4 lore raw
Quoted 32 lines · * Konrad Dybcio ([email protected]) wrote:
Quoted 31 lines · Dr. David Alan Gilbert
Quoted 30 lines · * Konrad Dybcio ([email protected]) wrote:
Quoted 28 lines · Dr. David Alan Gilbert

Hi all,
I was looking for some tips on if I can use bwmon to see what interconnect
bandwidth is going through the dwc3 usb controllers on my x1 based Asus Zenbook A14.

I've got usb-ncm gadget wired between a pair of them and I'd
like to see what stats are available;
(See details of my gadget stuff setup in
https://lore.kernel.org/linux-arm-msm/atJn2jfI_cZy3UMo@gallifrey/T/#u )
And that's struggling to get much over 4Gbit/s over the network interface.

One reason I'm curious is because the dwc3-qcom glue sets an average and a peak icc limit, and I wanted to know what the difference was and what the type of timescales were for how long it allowed a peak.

Are there any docs I should look at?

I did:
trace-cmd stream -e icc_bwmon:qcom_bwmon_update > log
on both machines and during the run I'm seeing events on exactly 3 of the monitors;
24091000.pmu, 240b5400.pmu, 240b6400.pmu

(In the numbers below I've grepped for that monitor and sed'ed out upto the 'measu_kbps=' part so I can then sort on the meas_kbps)

My reading of the interconnects_summary is these PMUs are somewhere under the llcc_mc@interconnect-1, and in some cases under both chm_apps@ and qns_llcc

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

These BWMONs only monitor the CPU-DRAM paths

Thanks for the reply and explanation.

Are there other BWMONs that should show the USB path bandwidth, and if so how would I watch them?

Unfortunately there aren't.

Bah oh well; thanks for your answers.

Dave

Quoted 1 line

Konrad

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/