• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Opera burns CPU with poll()+recvmsg() loop

    Opera for Linux
    3
    12
    2601
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pfactum
      pfactum last edited by

      Same applies to Chromium 58.0.3029.110. The only difference is that EAGAIN arrives more rarely (once per several, up to 10, seconds), thus CPU is not used that high as by Opera.

      So, it has something to do with engine.

      Reply Quote 0
        1 Reply Last reply
      • pfactum
        pfactum last edited by

        Same applies to 45.0.2552.881.

        Reply Quote 0
          1 Reply Last reply
        • pfactum
          pfactum last edited by

          Same with 45.0.2552.888.

          Reply Quote 0
            1 Reply Last reply
          • A Former User
            A Former User last edited by

            Having nothing to add to your problem, I would like to mention that chromium was updated to 59.x today from upstream. Check if that solves your problem.

            Reply Quote 0
              1 Reply Last reply
            • pfactum
              pfactum last edited by

              Again, same applies to Chromium 59.0.3071.86, but to less extent. strace shows the same picture, but recvmsg fails with EAGAIN once per several seconds, thus CPU load is minimal. For Opera, recvmsg returns EAGAIN lots of times per second, and CPU load is noticeable.

              So, this has something to do with common engine code, likely, interaction with X server.

              Reply Quote 0
                1 Reply Last reply
              • pfactum
                pfactum last edited by

                Same with v45.0.2552.898.

                Reply Quote 0
                  1 Reply Last reply
                • avl
                  avl Opera last edited by

                  Hi @pfactum, what you're seeing in strace is the message loop. Every UI application has one, and among other things, it handles communication with the X11 server. It is indeed very busy - a browser sends and receives lots of messages, many in one second. Getting EAGAIN is a normal part of life, and might indicate that Opera is busy (meaning that messages that are no longer relevant don't need to be handled). The EAGAIN is more likely to be a symptom than an effect of the high CPU usage you see.

                  If you still see high CPU usage while using Opera, check out the built-in Task Manager to see exactly which process is using CPU, perhaps then we can find out what's happening on your system.

                  Reply Quote 0
                    1 Reply Last reply
                  • pfactum
                    pfactum last edited by

                    @avl, in Task Manager, "Browser" process consumes 15 to 25% of CPU.

                    Still applies to v46.0.2597.26.

                    Reply Quote 0
                      1 Reply Last reply
                    • pfactum
                      pfactum last edited by

                      Still applies to v46.0.2597.32.

                      Reply Quote 0
                        1 Reply Last reply
                      • pfactum
                        pfactum last edited by

                        Same with v46.0.2597.39.

                        Reply Quote 0
                          1 Reply Last reply
                        • First post
                          Last post

                        Computer browsers

                        • Opera for Windows
                        • Opera for Mac
                        • Opera for Linux
                        • Opera beta version
                        • Opera USB

                        Mobile browsers

                        • Opera for Android
                        • Opera Mini
                        • Opera Touch
                        • Opera for basic phones

                        • Add-ons
                        • Opera account
                        • Wallpapers
                        • Opera Ads

                        • Help & support
                        • Opera blogs
                        • Opera forums
                        • Dev.Opera

                        • Security
                        • Privacy
                        • Cookies Policy
                        • EULA
                        • Terms of Service

                        • About Opera
                        • Press info
                        • Jobs
                        • Investors
                        • Become a partner
                        • Contact us

                        Follow Opera

                        • Opera - Facebook
                        • Opera - Twitter
                        • Opera - YouTube
                        • Opera - LinkedIn
                        • Opera - Instagram

                        © Opera Software 1995-