On Mon, Jul 4, 2011 at 3:12 PM, Andrew Leech <coronasen...@gmail.com> 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

real    0m0.128s
user    0m0.061s
sys     0m0.092s
bash-4.1# time echo "blah" | cat
blah

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

real    0m0.056s
user    0m0.061s
sys     0m0.046s
bash-4.1# time echo "blah" | cat
blah

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

real    0m0.103s
user    0m0.061s
sys     0m0.077s
bash-4.1# time echo "blah" | cat
blah

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

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

real    0m0.101s
user    0m0.061s
sys     0m0.046s
bash-4.1# time echo "blah" | cat
blah

real    0m0.096s
user    0m0.045s
sys     0m0.061s



-- 
Xiaofan
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to