MSYS2 is slow on Windows 10

mikemoy
Posts: 627
Joined: Fri Jan 12, 2018 9:10 pm

Re: MSYS2 is slow on Windows 10

Postby mikemoy » Sun Dec 30, 2018 3:48 pm

All you have to do in windows when using MSYS2 is slap "-jx" on the end of your make command. Where x is the number of processor cores you have. I have an 8 core system. so my make line is make -j8 flash.

squonk11
Posts: 69
Joined: Wed Mar 01, 2017 6:53 pm
Location: Germany

Re: MSYS2 is slow on Windows 10

Postby squonk11 » Sun Dec 30, 2018 7:01 pm

@mikemoy: The option -jx I know already. This was not the question.
My question is that I am not able to quit the monitor mode (incoked by 'make monitor') using "Ctrl+]" key. This keystroke is simply ignored by WSL.
"Whoever believes to be someone has stopped becoming someone"
Sokrates

mikemoy
Posts: 627
Joined: Fri Jan 12, 2018 9:10 pm

Re: MSYS2 is slow on Windows 10

Postby mikemoy » Sun Dec 30, 2018 10:47 pm

@squonk11, I was replying to the OP question of "If someone have a idea of how to speed up msys2 ..."

squonk11
Posts: 69
Joined: Wed Mar 01, 2017 6:53 pm
Location: Germany

Re: MSYS2 is slow on Windows 10

Postby squonk11 » Sun Dec 30, 2018 10:52 pm

ah, o.k. Sorry for the misunderstanding.
But I am really having a problem with this right now: even starting the terminal mode (make monitor) takes sometimes several minutes until I see the first output on my screen.
"Whoever believes to be someone has stopped becoming someone"
Sokrates

squonk11
Posts: 69
Joined: Wed Mar 01, 2017 6:53 pm
Location: Germany

Re: MSYS2 is slow on Windows 10

Postby squonk11 » Tue Jan 01, 2019 4:49 pm

Now I switched to the CMake build system under Windows cmd.exe. This works tremendously fast! But I still have the problem, that I am not able to quit monitor mode by hitting "Ctrl-]". But in windows cmd.exe I have the option to exit the running script (idf.py) just by hitting "Ctrl+c". This is not the "nice" way to work but for me this is currently the solution.
"Whoever believes to be someone has stopped becoming someone"
Sokrates

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: MSYS2 is slow on Windows 10

Postby ESP_Angus » Thu Jan 03, 2019 6:08 am

squonk11 wrote:
Tue Jan 01, 2019 4:49 pm
Now I switched to the CMake build system under Windows cmd.exe. This works tremendously fast! But I still have the problem, that I am not able to quit monitor mode by hitting "Ctrl-]". But in windows cmd.exe I have the option to exit the running script (idf.py) just by hitting "Ctrl+c". This is not the "nice" way to work but for me this is currently the solution.
Great, I'm glad the CMake build system helped.

I'm not able to reproduce the Ctrl-] problem on my Windows development box. When I run "idf.py monitor", I see output as follows:

Code: Select all

Executing "C:\Python27\python.exe C:\Users\gus\dev\esp-idf\tools/idf_monitor.py -p COM6 -b 115200 C:\Users\gus\Desktop\esp-idf-v3.1.2\examples\get-started\hello_world\build\hello-world.elf -m 'C:\Python27\python.exe' 'C:\Users\gus\Desktop\esp-idf-v3.1.2\tools\idf.py' '-p' 'COM6'"...
--- idf_monitor on COM6 115200 ---
Python in this case is the standard Windows Python 2.7 install. Can you compare with the output you see from idf.py?

My guesses are:
  • This is an issue with some particular Python executable version, or idf.py thinks it's running under MSYS for some reason (and does a bunch of additional winpty emulation).
  • This is something with keyboard layout or language settings, where Python is seeing a different control code for Ctrl-].

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: MSYS2 is slow on Windows 10

Postby ESP_Roland » Thu Jan 03, 2019 7:32 am

squonk11 wrote:
Sun Dec 30, 2018 7:01 pm
My question is that I am not able to quit the monitor mode (incoked by 'make monitor') using "Ctrl+]" key. This keystroke is simply ignored by WSL.
Hello squonk11!

What is the IDF version you are using? I fixed a similar issue in https://github.com/espressif/esp-idf/co ... 8d36bfb1c9. Does this fix your issue?

squonk11
Posts: 69
Joined: Wed Mar 01, 2017 6:53 pm
Location: Germany

Re: MSYS2 is slow on Windows 10

Postby squonk11 » Thu Jan 03, 2019 3:09 pm

@roland:
What is the IDF version you are using?
I am using:"v3.3-beta1-136-g97eecfa1b".
I fixed a similar issue in https://github.com/espressif/esp-idf/co ... 8d36bfb1c9. Does this fix your issue?
I need to check if this also helps for me.
"Whoever believes to be someone has stopped becoming someone"
Sokrates

squonk11
Posts: 69
Joined: Wed Mar 01, 2017 6:53 pm
Location: Germany

Re: MSYS2 is slow on Windows 10

Postby squonk11 » Thu Jan 03, 2019 6:46 pm

@ESP_Angus

Code: Select all

Executing "C:\Python27\python.exe C:\Users\gus\dev\esp-idf\tools/idf_monitor.py -p COM6 -b 115200 C:\Users\gus\Desktop\esp-idf-v3.1.2\examples\get-started\hello_world\build\hello-world.elf -m 'C:\Python27\python.exe' 'C:\Users\gus\Desktop\esp-idf-v3.1.2\tools\idf.py' '-p' 'COM6'"...
--- idf_monitor on COM6 115200 ---
Python in this case is the standard Windows Python 2.7 install. Can you compare with the output you see from idf.py?
My output is:

Code: Select all

Executing "C:\Python27\python.exe C:\Users\xxxx\esp\esp-idf\tools/idf_monitor.py -p COM11 -b 115200 C:\Users\xxxx\esp\hello_world\build\hello-world.elf -m 'C:\Python27\python.exe' 'C:\Users\xxxx\esp\esp-idf\tools\idf.py' '-p' 'COM11'"...
That looks quite similar to yours, right?
"Whoever believes to be someone has stopped becoming someone"
Sokrates

squonk11
Posts: 69
Joined: Wed Mar 01, 2017 6:53 pm
Location: Germany

Re: MSYS2 is slow on Windows 10

Postby squonk11 » Thu Jan 03, 2019 6:53 pm

@roland
roland wrote:
Thu Jan 03, 2019 7:32 am
Hello squonk11!

I fixed a similar issue in https://github.com/espressif/esp-idf/co ... 8d36bfb1c9. Does this fix your issue?
This fix is already included in my version of "idf.py". The problem still persits. But it is not a big issue since I can terminate monitor mode by Ctrl-c.
"Whoever believes to be someone has stopped becoming someone"
Sokrates

Who is online

Users browsing this forum: No registered users and 117 guests