I don't think this poll is what you think it is. It's not busy waiting for data and it doesn't have a rate. In fact it's the reverse (badly named?). See http://linux.die.net/man/2/poll
R On Thu, May 24, 2012 at 10:05 AM, Mike Fagan <[email protected]>wrote: > Hello All! > > I am new to the mailing list, but come bearing a question :) > > First off, my device and OS version. I have a Samsung Nexus S running > a self-compiled version of Android 4.0.4. > > I am running and tracing the system calls of wget (the wget binary is > provided with the SSHDroid app). With wget, I am downloading a 10MB > file from within my LAN. The system call trace has a pattern like so: > > 22:01:21.699565 gettimeofday({1337724081, 699611}, NULL) = 0 > <0.000018> > 22:01:21.699977 poll([{fd=3, events=POLLIN|POLLPRI}], 1, 1000) = 1 > ([{fd=3, revents=POLLIN}]) <0.000027> > 22:01:21.700328 read(3, "NâFW1+\234\230s¹Nüu\22¢<Nq\237ÿW+Ê > \r_3\27i2h<S"..., 4096) = 4096 <0.000030> > 22:01:21.700691 write(4, "Ö~è\203É`öÔc,Þ¯ñ\v<e\22ÑK3\1â\213bg^_¹aÐ > \214å"..., 4096) = 4096 <0.000057> > > This set of commands is repeated many times, representing the file > transfer. This makes sense. > > My question is, does anyone know where the polling rate for the > network is defined? > > What I hope to do if change that definition (of the polling rate) to > increase or decrease it. Any help in finding the location of that > definition on the Android source code would be much appreciated. > > Thanks, > Mike Fagan > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

