Hi,

I encountered a problem of high CPU usage when using libcurl with c-ares option.

I'm using libcurl in a program for sending many HTTP requests in parallel (with 
a Multi handle). I use libcurl with libev, loosely based on the example in 
https://curl.haxx.se/libcurl/c/evhiperfifo.html.
I use libcurl version 7.65.3. The OS is Linux.
I always use CURLOPT_RESOLVE option to specify the resolution of the 
destination host, so libcurl shouldn't be doing any DNS resolutions (and 
indeed, the only functions in asyn-ares.c that are called are 
Curl_resolver_init, Curl_resolver_kill, Curl_resolver_cancel, 
destroy_async_data and Curl_resolver_cleanup).
When libcurl is compiled with flag "--enable-ares", the CPU usage of the 
relevant thread is much higher than the same code, but with libcurl compiled 
without this flag (45% vs. 12%).

Is there any such known problem/solution?

Thanks,
Dorit


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.html

Reply via email to