On 4/07/2011 5:26 PM, Xiaofan Chen wrote:
On Mon, Jul 4, 2011 at 3:12 PM, Andrew Leech<[email protected]>  wrote:
Stepping is still slow though. I'm wondering if this is related to my cygwin
on this machine, I've noticed that configure scripts on anything run
incredibly slowly, never found out why. I decided to cross compile openocd
from linux to rule out any issues from compiling with my cygwin (even though
I used the mno-cygwin flag) but this also didn't make any difference. I'm
not sure, maybe cygwin is stuffing up port's still or something.
...
Just had an idea, and now I definitely think it's a system wide pipe issue;
from cygwin prompt:
$ time echo "blah"
blah

real    0m0.001s
user    0m0.000s
sys     0m0.000s

$ time echo "blah" | cat
blah

real    0m0.151s
user    0m0.031s
sys     0m0.030s

Darn, might have to hit up the cygwin guys for help.
I do not think this has anything to do with your OpenOCD problem.
Cygwin is known to be slow. MSys is faster but still slower than Linux.

I do not know what you want to show by the bash commands though.
Anyway, here are my results on a Core i5 Notebook (Dell Latitude E6410,
XP SP3, Latest Cygwin).

bash-4.1# time echo "blah"
blah

real    0m0.002s
user    0m0.000s
sys     0m0.000s
bash-4.1# time echo "blah" | cat
blah

real    0m0.197s
user    0m0.045s
sys     0m0.124s
bash-4.1# time echo "blah" | cat
blah

Yeah I do know that cygwin is usually significantly slower, that's why I recompiled openocd with mingw from linux, to ensure that there was no cygwin getting in the way, but it made no difference.

The idea behind the bash commands was seeing that simply adding a pipe into the command was adding a ~ 100ms delay difference between the user and real figures. I thought that'd be relevant by comparison to openocd piped commands. This made me think it's a system wide issue, but I thought the cygwin guys might have more of an idea about it as they'd be using pipes far more often to know if it's fixable. I haven't had a chance to start searching their archives yet, just got back into work now.

Thanks for showing that you get similarly slow pipe'd commands. I don't suppose you've tried openocd with pipe usage at all to see if it's also slow?

Cheers,
Andrew

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to