cradek_ is now known as cradek
+/ +# ;)
actually this web irc client lets me do /join ubuntu
just forgot the /
I finally got around to checking that 'eager' patch in, after I tested it a bit more and made these graphs of the relative speed: http://emergent.unpy.net/files/sandbox/enqueue-old.png http://emergent.unpy.net/files/sandbox/enqueue.png
(note that the scales are not the same: it's 100/div on the old and 200/div on the new, so it's even more of an improvement than it looks)
that's queue depth?
that is one hell of an improvement (all though I am not sure what I am looking at) - am I looking at how fast it gets up to speed - are these short line segments?
meaning - is the program that the speed is showing made up of short line segements
it queues all 1000 moves of a program in 1 second?
skunkworks: this is not about the speed the machine is moving, but whether the information about the moves in the program is available in the realtime part
wow that's great
Neat - can you give a simple explaination of how this was done? (what made such a drastic improvement?)
skunkworks: the userspace 'task' program does a little work and then sleeps for [TASK]CYCLE_TIME
skunkworks: with my change, it just skips the sleep when it's actually doing the work of transferring segments into the realtime layer
(but you have to be careful not to remove too many sleeps, because then it never does and hurts the performance of other userspace stuff)
How do you decide how often to skip the sleep?
"when[ever] it's actually doing the work of transferring segments"
each time through the loop, it does one of many actions
my change has some of those actions set a flag that skip the sleep on the next time through
the graphs speak for themselves
for dwells, pauses, and probing that speed is very important
while jmkasunich had suggested changing the 'tcq' so that it can be written directly from userspace (instead of transferring one item per servo period) it looks like this approach is entirely adequate at least so long as the planner disposes of at most one item per trajectory period
and that is certainly true today