Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60578

QNetworkAccessManager high CPU usage on arm

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9
    • 5.8.0
    • Network
    • None
    • raspbian jessie, raspberry pi2, armv7, qt compiled from sources.
    • 19a1a0871d4a9081646925c422fe32e900846c2e

    Description

      QNetworkAccessManager consumes a lot of CPU when doing get or post requests. On raspberry PI2 it consumes 20% CPU when doing simple get/post requests once per second.

      It's worth mentioning that the requests are long-polls, in the actuall test long polling timeout was 1 second (resulting in 1 req/sec).

      The 5.7.0 version is free of this problem (it consumes 0-1% CPU with the same app).

      Also the post() and get() methods take a lot to execute, about 125ms, but this is solvable by running the object in a separate thread. May be this should be a separate bug (because this blocks the event loop and its noticeable in GUI).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            dimovnike nikolay dimov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes