Let me see what I can do about collecting strace data or sharing code. I wonder if you had some profiling/metrics to know how to expect. I'm writing to the disk as fast as I can (in my setup network is not the bottleneck, the disk is), and I'm writing in quite small chunks (16k because of libcurl).
On Friday, March 21, 2014 11:23:05 AM UTC-7, Fedor Indutny wrote: > > Hi! > > I'm afraid it is hard to say what's going on without taking a look at > actual implementation. Is it opensource? > > If not - could you please provide `strace` output of your program > execution? > > Cheers, > Fedor. > > On Fri, Mar 21, 2014 at 10:20 PM, Damián Lezama > <[email protected]<javascript:>> > 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? > > > > Thanks, > > Damian > > > > -- > > 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] <javascript:>. > > To post to this group, send email to [email protected]<javascript:>. > > > Visit this group at http://groups.google.com/group/libuv. > > For more options, visit https://groups.google.com/d/optout. > -- 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.
