Skip to content

Bad USB3Vision performance on Nvidia Xavier board #324

Closed

Description

@EmmanuelP

As reported in #323 , USB3Vision maximum framerate is way lower than what is possible using Baslers's Pylon software on a NVidia Xavier board.

@mikekml , what is the output of lsmod ? Does Pylon USB3Vision support use a dedicated kernel module ?

Activity

  1. mikekml commented on Dec 18, 2019

    @mikekml

    @EmmanuelP , see below lsmod output. As far as i can see Pylon is not using proprietary kernel driver to access the camera. Pylon is using libusb to access the camera - confirmed with setting LIBUSB_DEBUG=4 .. could clearly trace that Pylon is using async bulk request handling.

    lsmod
    Module Size Used by
    usbmon 26883 6
    nfnetlink_queue 14050 0
    nfnetlink_log 11033 0
    nfnetlink 7959 2 nfnetlink_log,nfnetlink_queue
    bnep 16562 2
    fuse 103841 7
    overlay 48691 0
    zram 26166 8
    nvgpu 1569917 94
    bluedroid_pm 13912 0
    ip_tables 19441 0
    x_tables 28951 1 ip_tables

  2. EmmanuelP commented on Dec 19, 2019

    @EmmanuelP
    ContributorAuthor
  3. EmmanuelP commented on Dec 19, 2019

    @EmmanuelP
    ContributorAuthor

    Hi @mikekml @crabsmaps

    I've spent some time yesterday in testing the old async usb branch

    On a Jetson TX2 board, it really makes a big difference, allowing a steady 380MB/s transfer. This is achieved by not only using libusb async API, but also because the patch piles USB bulk transfer requests.

    On a standard laptop (Intel Core i5-5300U CPU @ 2.30GHz × 4 ), while the CPU use seems to increase a bit for comparable bandwiths, the patch allows to obtain the best maximum transfer speed.

    So it is worth porting the patch to master.

  4. added
    1. Enhancement
    5. Usb3
    on Dec 19, 2019
  5. makelinux commented on Dec 24, 2019

    @makelinux
    Contributor

    Hi @EmmanuelP, I've rebased branch usb-async on master version 7. It's compiled but doesn't work. I haven't resources to debug it. I hope it can help you: https://github.com/makelinux/aravis/tree/async-usb-7
    Regards

  6. dmitryalferov commented on Jan 2, 2020

    @dmitryalferov
    Contributor

    We don't have any high-fps usb cameras at hand, but we tested async usb branch with two cameras (basler aca4096-30uc and basler acA1920-40uc) on one of the Xilinx boards. Behavior was essentially the same as with 0.6.4 branch.

  7. makelinux commented on Jan 7, 2020

    @makelinux
    Contributor

    To see improvements of async need to use slower computer or run stress test.

  8. makkarpov commented on Dec 7, 2020

    @makkarpov

    I confirm that Aravis thru USB is unusable on Jetson Xavier board.

    We have this camera, which is neither high-resolution (2.3 MP) nor high-FPS (80 is the maximum, but actually it fails at much lower rates).

    Aravis works fine with this camera on desktop PC, however it cannot acquire any image on Jetson board. It can work at extremely low resolutions (like 300x300) or extremely low FPS's, but never at full resolution and reasonable FPS.

    Proprietary vendor software works fine at full resolution and full FPS.

  9. makelinux commented on Dec 7, 2020

    @makelinux
    Contributor
  10. makkarpov commented on Dec 8, 2020

    @makkarpov

    Build instructions would be nice, especially about very weird ctracer.h and lookup_symbol_name.

    I found your ldt project with ctracer.h file, but I cannot figure out how linux driver is related to the userspace aravis lib and where can I get corresponding symbol (it complains about it at the link time).

    Moreover, after symbol dirty hacking around the symbol, I got:

    ../viewer/arvviewer.c: In function ‘update_status_cb’:
    ../viewer/arvviewer.c:837:36: error: ‘ArvViewer {aka struct <anonymous>}’ has no member named ‘camera_parameters’; did you mean ‘camera_name’?
      gtk_widget_set_sensitive (viewer->camera_parameters, TRUE);
                                        ^~~~~~~~~~~~~~~~~
                                        camera_name
    
  11. EmmanuelP commented on Dec 17, 2021

    @EmmanuelP
    ContributorAuthor

    We can close this issue now the async-usb work is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. Enhancement5. Usb3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions