RE: High CPU Usage when using libcurl with c-ares
Date: Mon, 22 Jun 2020 10:21:50 +0000
Hi,
We upgraded the version of libcurl we're working with to 7.70.0, and the problem persists.
I'm sorry, but currently I can't produce a small example source code that reproduces the issue.
What do you mean by "resolver socket" and "transfer socket"?
Since the problem happens under heavy load of multiple parallel HTTP requests, I don't think I can't point to a specific "transfer state".
Thanks,
Dorit
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Tuesday, June 16, 2020 00:51
To: Dorit Mari via curl-library <curl-library_at_cool.haxx.se>
Cc: Dorit Mari <Dorit.Mari_at_audiocodes.com>
Subject: Re: High CPU Usage when using libcurl with c-ares
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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wolfssl.com%2Fcontact%2F&data=02%7C01%7CDorit.Mari%40audiocodes.com%7C445e710daa2d4fcadcaa08d811762f48%7C1911c65c893b42f983fa66c1b86fdf85%7C1%7C0%7C637278546589834396&sdata=2c%2BIwTkCw%2FIJFFawwWZOkhoa2%2FJA%2BlEAUg79Vr%2F6O1o%3D&reserved=0 This email and any files transmitted with it are confidential material. They are intended solely for the use of the designated individual or entity to whom they are addressed. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this email in error please immediately notify the sender and delete or destroy any copy of this message ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2020-06-22