Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dave@treblig.org>
To: krzk@kernel.org, andersson@kernel.org, konradybcio@kernel.org
Cc: linux-arm-msm@vger.kernel.org
Subject: Tips on tracing bwmon?
Date: Tue, 20 Oct 2026 14:27:25 +0000	[thread overview]
Message-ID: <atd6TRv4HQApcPvY@gallifrey> (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 chm_apps@26400000.interconnect (which also has the a400000.usb)
        also under qns_llcc@26400000.interconnect
  
    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

-- 
 -----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   |_______/

             reply	other threads:[~2026-10-20 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20 14:27 Dr. David Alan Gilbert [this message]
2026-10-22  9:12 ` Tips on tracing bwmon? Konrad Dybcio
2026-10-22 11:44   ` Dr. David Alan Gilbert
2026-10-26 13:52     ` Konrad Dybcio
2026-10-26 14:21       ` Dr. David Alan Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=atd6TRv4HQApcPvY@gallifrey \
    --to=dave@treblig.org \
    --cc=andersson@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox