HowTo: Run MULTIPLE instances of MetaTrader 4

Questions about Wine on Linux
Locked
jansb000
Newbie
Newbie
Posts: 2
Joined: Sun Apr 10, 2016 4:15 am

HowTo: Run MULTIPLE instances of MetaTrader 4

Post by jansb000 »

Hi,
I have installed MetaTrader 4 multiple times on Lubuntu 15.10. All instances work fine, but it appears that all instances run on just one single core of my multicore CPU.

Questions:
1) How can I find out on which core any single instance is running?
2) Can I specifically tell Lubuntu/Wine to run an instance on a specific core?

Thanks in advance
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: HowTo: Run MULTIPLE instances of MetaTrader 4

Post by dimesio »

jansb000
Newbie
Newbie
Posts: 2
Joined: Sun Apr 10, 2016 4:15 am

Re: HowTo: Run MULTIPLE instances of MetaTrader 4

Post by jansb000 »

Wow, great!!!
I played with that and it is indeed a very handy tool. First thing I found out is that all CPU-cores are actually being used. Thats good. Also I can change the CPU-core assignment per MetaTrader Instance.

One more question though: With htop i can change the CPU assignments AFTER the program is already running.
How would I tell Lubuntu/Wine to START it with using a specific CPU right from the start?

Why do I want to do this? There are rumours that MetaTrader 4 actually runs more efficient when one instance is limited to just one CPU-core.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: HowTo: Run MULTIPLE instances of MetaTrader 4

Post by dimesio »

Use taskset -c <processor> at the beginning of the command line. http://www.linuxcommand.org/man_pages/taskset1.html
Locked