On 02/18/2014 10:04 AM, Scott Talbert wrote: > On Tue, 18 Feb 2014, Phil Dibowitz wrote: > >>>> It's kind of weird that it is always the EF packet that is being dropped, >>>> though. I think you've shown dumps where other packets got dropped, though >>>> right? >>>> >>>>> I have a hard time believing this just blatanly doesn't work in Mac >>>>> though... >>>>> as I said the official software manages to work. >>>> >>>> The official software doesn't do config dumping, though. >>> >>> Maybe we could try increasing the priority of the read_thread? Not sure >>> if it will help, but it might? >> >> I haven't spent much time looking at the internals of hidapi - does it have a >> separate read thread? I leave for SCALE Thursday, so I won't be around for a >> bit... not sure when I'll have time to dig into this. > > Yep, see read_thread(). It looks like it hooks itself up as the run loop > for the HID device, so that's the thread that calls hid_report_callback() > when data comes in.
Setting the priority to SCHED_RR and 99 helps a bit, we typically get a lot further than 18%. We then mostly die in timeouts, but still occasionally have a missing packet for some reason or another. I bumped the timeout all the way up to 15 seconds, and even still we hit timeouts most of the time now. Which again, I don't buy.... I... don't get it. -- Phil Dibowitz p...@ipom.com Open Source software and tech docs Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind." - Dr. Seuss
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel