curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: High CPU Usage when using libcurl with c-ares

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 15 Jun 2020 23:50:50 +0200 (CEST)

On Sun, 14 Jun 2020, Dorit Mari via curl-library wrote:

> I use libcurl version 7.65.3. The OS is Linux. I always use CURLOPT_RESOLVE

...

> libcurl compiled without this flag (45% vs. 12%).

Wow, that's seem super strange. How on earth can the resolving code - that you
don't even use - affect the CPU load of the transfer phase? And to that
serious degree!

Does the resolver socket linger around during the transfer for you so that you
monitor and "act" on it too, in addition to the transfer socket?

In which transfer states do you see this increased CPU load, do you know?

Can you show us a small example source code that reproduces the load issue for
you?

> Is there any such known problem/solution?

Not that I can think of. It is of course always clever to build with the
latest version as a test shot and see if it makes anything different, it
*might* save us from debugging and chasing ghosts.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-15