>
> *Any hints as to how to debug would be very welcome!*
>

I wonder if running strace, and piping stdout to a file would provide any
useful information on the subject. I'm pretty sure this would have to be
run explicitly as root( not sudo ).

On Sun, Apr 10, 2016 at 1:36 PM, Charles Steinkuehler <
[email protected]> wrote:

> On 4/10/2016 3:17 PM, Charles Steinkuehler wrote:
> > On 4/10/2016 11:13 AM, Charles Steinkuehler wrote:
> >> I am experimenting with getting Machinekit running on Debian Jessie,
> >> and have run into an issue with loading capes.
> >>
> >> After I manually load a cape:
> >>
> >> $ SLOTS=/sys/devices/bone_capemgr.*/slots
> >> $ sudo -A su -c "echo cape-bebopr-brdg:R2 > $SLOTS"
> >>
> >> ...CPU usage maxes out and I have eight systemd-udevd tasks running
> >> that are each taking a good chunk of the CPU.  These typically go away
> >> after apx. 17 seconds of CPU time (each), or about 2-1/2 minutes, but
> >> I'm wondering what in the world is going on.
> >>
> >> Is this a known issue?  Any ideas how to tell what the systemd-udevd
> >> processes are doing?
> >>
> >> The kernel is 3.8.13-xenomai-r78, which works fine under Wheezy.
> >
> > I get the same results with a "stock" Debian Jessie image (
> >
> > debian@beaglebone:~$ cat /etc/dogtag
> > BeagleBoard.org Debian Image 2016-03-27
> >
> > ...using the 3.8.13-bone79 kernel.  The 4.1.18-ti-r55 kernel provide
> > with the Jessie image has a cape manager (although the slots file is
> > in a different location), but trying to load the cape-bebopr-brdg:R2
> > cape fails.
> >
> > Any hints as to how to debug would be very welcome!
>
> It looks like this is related to the PRU.  When the CPU gobbling
> systemd-udevd processes go away, this appears in the syslog:
>
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1940]
> /devices/ocp.3/4a300000.pruss/uio/uio3 timeout; kill it
> > Apr 10 20:29:00 beaglebone rsyslogd-2007: action 'action 17' suspended,
> next retry is Sun Apr 10 20:29:30 2016 [try http://www.rsyslog.com/e/2007
> ]
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2037
> '/devices/ocp.3/4a300000.pruss/uio/uio3' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1941]
> /devices/ocp.3/4a300000.pruss/uio/uio4 timeout; kill it
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2038
> '/devices/ocp.3/4a300000.pruss/uio/uio4' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1942]
> /devices/ocp.3/4a300000.pruss/uio/uio0 timeout; kill it
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2034
> '/devices/ocp.3/4a300000.pruss/uio/uio0' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1943]
> /devices/ocp.3/4a300000.pruss/uio/uio1 timeout; kill it
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2035
> '/devices/ocp.3/4a300000.pruss/uio/uio1' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1944]
> /devices/ocp.3/4a300000.pruss/uio/uio2 timeout; kill it
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2036
> '/devices/ocp.3/4a300000.pruss/uio/uio2' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1949]
> /devices/ocp.3/4a300000.pruss/uio/uio5 timeout; kill it
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2039
> '/devices/ocp.3/4a300000.pruss/uio/uio5' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1969]
> /devices/ocp.3/4a300000.pruss/uio/uio6 timeout; kill it
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2040
> '/devices/ocp.3/4a300000.pruss/uio/uio6' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1970]
> /devices/ocp.3/4a300000.pruss/uio/uio7 timeout; kill it
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: seq 2041
> '/devices/ocp.3/4a300000.pruss/uio/uio7' killed
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1941] terminated
> by signal 9 (Killed)
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1969] terminated
> by signal 9 (Killed)
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1943] terminated
> by signal 9 (Killed)
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1940] terminated
> by signal 9 (Killed)
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1942] terminated
> by signal 9 (Killed)
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1944] terminated
> by signal 9 (Killed)
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1949] terminated
> by signal 9 (Killed)
> > Apr 10 20:29:00 beaglebone systemd-udevd[179]: worker [1970] terminated
> by signal 9 (Killed)
>
> If it helps, the output from udevadm monitor while this is happening:
>
> > KERNEL[234.676750] add      /devices/ocp.3/bebopr_io_enables.15
> (platform)
> > KERNEL[234.682423] add      /devices/virtual/gpio/gpio66 (gpio)
> > KERNEL[234.683781] add      /devices/ocp.3/48302000.epwmss (platform)
> > KERNEL[234.692111] add
> /devices/ocp.3/48302000.epwmss/48302200.ehrpwm (platform)
> > KERNEL[234.693310] add
> /devices/ocp.3/48302000.epwmss/48302200.ehrpwm/pwm/pwmchip0 (pwm)
> > KERNEL[234.695424] add      /devices/ocp.3/48304000.epwmss (platform)
> > KERNEL[234.699930] add
> /devices/ocp.3/48304000.epwmss/48304200.ehrpwm (platform)
> > KERNEL[234.701884] add
> /devices/ocp.3/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip2 (pwm)
> > KERNEL[234.708175] add      /devices/ocp.3/bebopr_pwm_J2_pinmux.16
> (platform)
> > UDEV  [234.710359] add      /devices/ocp.3/bebopr_io_enables.15
> (platform)
> > KERNEL[234.713400] add      /devices/ocp.3/bebopr_pwm_J3_pinmux.17
> (platform)
> > KERNEL[234.717348] add      /devices/ocp.3/bebopr_pwm_J4_pinmux.18
> (platform)
> > KERNEL[234.719189] add      /devices/ocp.3/bebopr_pwm_J2.19 (platform)
> > KERNEL[234.720210] add      /devices/ocp.3/bebopr_pwm_J3.20 (platform)
> > KERNEL[234.721449] add      /devices/ocp.3/bebopr_pwm_J4.21 (platform)
> > KERNEL[234.726645] add      /devices/ocp.3/bebopr_steppers.22 (platform)
> > KERNEL[234.727829] add      /devices/virtual/gpio/gpio15 (gpio)
> > KERNEL[234.730555] add      /devices/virtual/gpio/gpio3 (gpio)
> > UDEV  [234.734555] add      /devices/virtual/gpio/gpio66 (gpio)
> > KERNEL[234.735448] add      /devices/virtual/gpio/gpio2 (gpio)
> > KERNEL[234.736053] add      /devices/virtual/gpio/gpio14 (gpio)
> > KERNEL[234.740387] add      /devices/virtual/gpio/gpio49 (gpio)
> > KERNEL[234.742708] add      /devices/virtual/gpio/gpio48 (gpio)
> > KERNEL[234.745855] add      /devices/virtual/gpio/gpio5 (gpio)
> > KERNEL[234.747779] add      /devices/virtual/gpio/gpio47 (gpio)
> > KERNEL[234.749568] add      /devices/virtual/gpio/gpio46 (gpio)
> > UDEV  [234.754613] add      /devices/ocp.3/48302000.epwmss (platform)
> > KERNEL[234.755480] add      /devices/virtual/gpio/gpio4 (gpio)
> > KERNEL[234.757651] add      /devices/virtual/gpio/gpio45 (gpio)
> > KERNEL[234.758676] add      /devices/virtual/gpio/gpio44 (gpio)
> > UDEV  [234.783503] add
> /devices/ocp.3/48302000.epwmss/48302200.ehrpwm (platform)
> > UDEV  [234.792621] add
> /devices/ocp.3/48302000.epwmss/48302200.ehrpwm/pwm/pwmchip0 (pwm)
> > UDEV  [234.797529] add      /devices/ocp.3/bebopr_pwm_J2_pinmux.16
> (platform)
> > UDEV  [234.801592] add      /devices/ocp.3/bebopr_pwm_J3_pinmux.17
> (platform)
> > KERNEL[234.805028] add      /devices/ocp.3/4a300000.pruss (platform)
> > KERNEL[234.807047] add      /devices/ocp.3/bebopr_sensors.23 (platform)
> > KERNEL[234.815264] add      /devices/virtual/gpio/gpio65 (gpio)
> > KERNEL[234.818562] add      /devices/virtual/gpio/gpio27 (gpio)
> > KERNEL[234.822912] add      /devices/virtual/gpio/gpio26 (gpio)
> > KERNEL[234.823881] add      /devices/virtual/gpio/gpio68 (gpio)
> > KERNEL[234.828324] add      /devices/virtual/gpio/gpio69 (gpio)
> > KERNEL[234.830614] add      /devices/virtual/gpio/gpio67 (gpio)
> > KERNEL[234.838312] add      /devices/ocp.3/44e0d000.tscadc (platform)
> > KERNEL[234.841125] add      /devices/ocp.3/44e0d000.tscadc/tiadc
> (platform)
> > UDEV  [234.843937] add      /devices/ocp.3/48304000.epwmss (platform)
> > KERNEL[234.848144] add
> /devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0 (iio)
> > KERNEL[234.849213] add      /devices/ocp.3/bebopr_adc.24 (platform)
> > KERNEL[234.851235] add      /devices/ocp.3/bebopr_leds.25 (platform)
> > KERNEL[234.856414] add
> /devices/ocp.3/bebopr_leds.25/leds/bebopr:status_led (leds)
> > KERNEL[234.858903] change
>  /devices/ocp.3/bebopr_leds.25/leds/bebopr:status_led (leds)
> > KERNEL[234.887084] add      /module/pwm_test (module)
> > KERNEL[234.906719] add      /bus/platform/drivers/pwm_test (drivers)
> > UDEV  [234.910018] add      /devices/ocp.3/bebopr_pwm_J4_pinmux.18
> (platform)
> > UDEV  [234.912008] add      /devices/ocp.3/bebopr_pwm_J4.21 (platform)
> > UDEV  [234.914890] add      /devices/ocp.3/bebopr_pwm_J3.20 (platform)
> > UDEV  [234.916336] add      /devices/ocp.3/bebopr_pwm_J2.19 (platform)
> > UDEV  [234.925208] add      /devices/virtual/gpio/gpio15 (gpio)
> > UDEV  [234.926982] add
> /devices/ocp.3/48304000.epwmss/48304200.ehrpwm (platform)
> > UDEV  [234.933246] add      /devices/virtual/gpio/gpio3 (gpio)
> > UDEV  [234.937622] add      /devices/virtual/gpio/gpio2 (gpio)
> > UDEV  [234.941306] add
> /devices/ocp.3/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip2 (pwm)
> > UDEV  [234.960539] add      /devices/virtual/gpio/gpio14 (gpio)
> > UDEV  [234.971947] add      /devices/ocp.3/bebopr_steppers.22 (platform)
> > UDEV  [234.983079] add      /devices/virtual/gpio/gpio49 (gpio)
> > UDEV  [235.001224] add      /devices/virtual/gpio/gpio5 (gpio)
> > UDEV  [235.013049] add      /devices/virtual/gpio/gpio48 (gpio)
> > UDEV  [235.021706] add      /devices/virtual/gpio/gpio46 (gpio)
> > UDEV  [235.028745] add      /devices/virtual/gpio/gpio47 (gpio)
> > UDEV  [235.037010] add      /devices/virtual/gpio/gpio4 (gpio)
> > UDEV  [235.054443] add      /devices/virtual/gpio/gpio45 (gpio)
> > UDEV  [235.063501] add      /devices/virtual/gpio/gpio44 (gpio)
> > UDEV  [235.095346] add      /devices/virtual/gpio/gpio65 (gpio)
> > UDEV  [235.109342] add      /devices/ocp.3/bebopr_sensors.23 (platform)
> > UDEV  [235.135248] add      /devices/virtual/gpio/gpio27 (gpio)
> > KERNEL[235.138455] add      /module/uio_pruss (module)
> > UDEV  [235.148432] add      /devices/virtual/gpio/gpio68 (gpio)
> > UDEV  [235.156159] add      /devices/virtual/gpio/gpio26 (gpio)
> > KERNEL[235.170440] add      /devices/ocp.3/4a300000.pruss/uio/uio0 (uio)
> > UDEV  [235.177086] add      /devices/virtual/gpio/gpio67 (gpio)
> > UDEV  [235.183013] add      /devices/virtual/gpio/gpio69 (gpio)
> > KERNEL[235.189895] add      /devices/ocp.3/4a300000.pruss/uio/uio1 (uio)
> > KERNEL[235.191544] add      /devices/ocp.3/4a300000.pruss/uio/uio2 (uio)
> > UDEV  [235.208246] add      /devices/ocp.3/bebopr_adc.24 (platform)
> > KERNEL[235.221280] add      /devices/ocp.3/4a300000.pruss/uio/uio3 (uio)
> > KERNEL[235.229149] add      /devices/ocp.3/4a300000.pruss/uio/uio4 (uio)
> > KERNEL[235.232855] add      /devices/ocp.3/4a300000.pruss/uio/uio5 (uio)
> > UDEV  [235.253074] add      /devices/ocp.3/bebopr_leds.25 (platform)
> > KERNEL[235.265159] add      /devices/ocp.3/4a300000.pruss/uio/uio6 (uio)
> > KERNEL[235.269976] add      /devices/ocp.3/4a300000.pruss/uio/uio7 (uio)
> > UDEV  [235.273659] add      /module/pwm_test (module)
> > KERNEL[235.278319] add      /bus/platform/drivers/pruss_uio (drivers)
> > UDEV  [235.282275] add      /devices/ocp.3/4a300000.pruss (platform)
> > UDEV  [235.285810] add      /devices/ocp.3/44e0d000.tscadc (platform)
> > UDEV  [235.291244] add
> /devices/ocp.3/bebopr_leds.25/leds/bebopr:status_led (leds)
> > UDEV  [235.298998] add      /devices/ocp.3/44e0d000.tscadc/tiadc
> (platform)
> > UDEV  [235.307871] add      /bus/platform/drivers/pwm_test (drivers)
> > UDEV  [235.310061] add      /module/uio_pruss (module)
> > UDEV  [235.336663] change
>  /devices/ocp.3/bebopr_leds.25/leds/bebopr:status_led (leds)
> > UDEV  [235.346447] add
> /devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0 (iio)
> > UDEV  [235.501150] add      /bus/platform/drivers/pruss_uio (drivers)
>
> --
> Charles Steinkuehler
> [email protected]
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to