-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/21/2014 07:20 PM, Damián Lezama wrote: > Hi, > > I have a prototype that downloads multiple files at the same time > with libuv and libcurl. On my tests with very high bandwidth, the > main loop thread gets close to 100% CPU usage, while every thread > pool thread is at about 20% or 30%. If I run my prototype using the > time command, I get very high system time. If I remove the file > system operations and just download and discard the data, the CPU > usage is very low and libcurl and libuv do a great job. What may be > going on here? >
Note that the thread pool has a grand total of 4 threads by default, so if you try to write too many files at once it will be pretty busy. Also, as Fedor said, we can know more if we can check the source. Regards, - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIbBAEBAgAGBQJTLIw8AAoJEEEOVVOum8BZBN8P+JSBqYX7dn/2hqG+2PrkyUGq 5Y8DQ/PbV+cVwYcURt0SAAlcwzc2xwIbVyiSq3f8zU3RvIkNUNBXT//r1G8KCaQh KIegl8yLb/3SiXVJo9nbH3wwBOaUQI6r/Blb7inPli4L4fvE8idInw7fjJ1ozR6k mhNmMbe4wm+ip7gq0gxvIUEsVXSD4EPYle22WETmVRSCcLa7iuKzj/oJjQHbZZWZ qTTkJG58GizCmtucqN6hV6UVJWsuUUbPs5DuKzTOTtRDaCFjyOSBv3L/rfkgpyJD tnHQCV+/xRIhA3GTKnLa6CgJN33wgMdw9ska8bU+vxyu6XYi+0ukWB0MWPaOXonN spoP+reZmJzbvo2j037x6+Hrt5Kyt8iu4sCRCerJLyHySx5jVpBk3/TGFWMIujZ7 3NdzXo1WbVFB/WsOkIlq+E0pbqsBLy1SuR+4Yl1lqXlcB+sM8q/sHAvBe8MsbOgy eis2atW3XIjOO4/49jr8S59NoJvhRBT0j7nY8qwyqx2HOfGIOsCrTqWe0J77E+Vh ODMpgB2A/mvlOHkw60Hc3k9Mr0SGZQQMiX7gtEGFf/59SjRM6YkGfn5Mzclaipku vjUOeUmbWoGrbW2PNp4Irya3Tn80o0d/aYMYmhVTBwoGb6MuiYDDXfT/RiC+EUYs uZ7j8i6eqfBIKPwZCEs= =GayY -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
