Discussion of article "Why Virtual Hosting On The MetaTrader 4 And MetaTrader 5 Is Better Than Usual VPS" - page 14

 
Renat:

How can I control the resources consumed in MetaTrader Hosting Services?

Below are several test plans:

1) The Expert Advisor runs for 50 cycles (50 timer calls after 1 minute), consumes 10 MB of RAM during each cycle and writes the same amount to a file. After 50 cycles the Expert Advisor kills itself, frees memory and erases its files.

You can see that the resources are freed instantly.


2) The Expert Advisor works 50 cycles to capture resources (RAM and the same amount in files). Each next capture is 95 per cent of the previous one. After the first 50 cycles, there are another 50 cycles of resource release in reverse order followed by deleting the Expert Advisor.

We can see that the memory is freed a bit less than the disc. This is due to the fact that in the Expert Advisor memory up to 1 megabyte is allocated in its own memory pool, which lives as long as the Expert Advisor is alive.


Overall conclusion: perfect resource management, visualisation and availability to the customer.

I understand you recommend using dynamic classes and crashing them if there is a lot of time before the next calculation so as not to keep resources (which you don't use) under your arse?

Or I didn't understand something?

ZЫ Actually for me it is not very important, while we were pressing the keyboard here I optimised the calculation, I made the time of one call less than a second (on the history data are not calculated by the main algorithm, but only prepared for processing the last bar), so I have everything comes together quite normally. I hope that once in 15 minutes VPS will allow to capture CPU for a second, and even if it cuts resources 1000 times, I will still have time to get the current calculation before the next bar.

The question above is purely academic.

 
Urain:

So I take it you recommend using dynamic classes and smashing them if there's a lot of time before the next calculation so as not to keep resources (that you don't use) under your arse?

Or am I misunderstanding something?

No, I'm just showing and proving the responsiveness of the service and the ability to control the situation. Not everyone does research.

For MT4 up to 2 gb of RAM can be eaten up painlessly enough. Only in case of obvious deterioration of the overall situation, warnings will be triggered.


ZЫ Actually for me it is not very important, while we were pressing the keyboard here I optimised the calculation, I adjusted the time of one call to less than a second (on the history data are not calculated by the main algorithm, but only prepared for processing the last bar), so I have everything comes together quite normally. I hope that once in 15 minutes VPS will allow to capture CPU for a second, and even if it cuts resources 1000 times, I will still have time to get the current calculation before the next bar.

You can almost always find an algorithmic method to speed up calculations, so limits are a good thing. They force you to think and use less brute force.

We are not talking about "grab the CPU for 1 second", but about obviously problematic cases when the Expert Advisor is occupying the CPU (one or several cores) non-stop, behaves insane and does not want to change its approach. There are several such cases now - we are still observing them.


As I explained earlier, we should not reduce the question to "no, tell me the hard limits!". Nobody will say them and declare their inviolability (that's what the questioners demand), because the evaluation of resources in the shared space will be subjective - whether you damage your neighbours or not.

 
Renat:

No, I'm just showing and proving the responsiveness of the service and the ability to control the situation. It is not the same people who conduct research.

For MT4 up to 2 gb of RAM can be consumed quite painlessly. Only in case of a clear deterioration of the overall situation, warnings will be triggered.


It is almost always possible to find an algorithmic method to speed up calculations, so limits are good. They force you to think and use less brute force.

We are not talking about "grab the CPU for 1 second", but about obviously problematic cases when the Expert Advisor occupies the CPU (one or several cores) non-stop, behaves insane and does not want to change its approach. There are several such cases now - we are still observing them.


As I explained earlier, we should not reduce the question to "no, tell me the hard limits!". Nobody will say them and declare their inviolability (that's what the questioners demand), because the evaluation of resources in a shared space will be subjective - whether you damage your neighbours or not.

I realised a long time ago that you don't call limits, because it leads to optimisation and pushing to the limit.

The question is different, my algorithm is essentially parallel, and is not heavy for each thread separately, but if you let it into sequential processing, the CPU loses resources at the cost of minimum acceptable quality (and this leads to increased criticality). Now we need an algorithm that determines by indirect signs the points where underestimated quality is inadmissible, and this is another headache.

If you would give at least a minimal control of threads in mql, it would be very cool.

ZZY OpenCL we asked you for, and that we got more thanks to the efforts of Ilyas'a, but it does not solve the issue of vps or cloud.

 

Start a virtual server, run it for a few days in different modes, and then post your results from the performance graphs here.

Let's see what you got.

 
Renat:

Start a virtual server, run it for a few days in different modes, and then post your results from the performance graphs here.

Let's see what you got.

It is on mql5, and does not trade yet, I will bring it up to mql4 and publish the results.
 

I had Metatrader 5 terminal Version 5 on my PC. I could not see this "Register a Virtual Server" on my account. Is there any steps that I had missed out or my setting or download version is incorrect ?

I welcome any feedback and advice. Thanks in advance

 

Good afternoon!

Tried the virtual server on the demo - so far it doesn't work - it refused to synchronise.

Screenshot attached - what am I doing wrong?

 
Andrew1469:

Good afternoon!

Tried the virtual server on the demo - so far it doesn't work - it refused to synchronise.

Screenshot attached - what am I doing wrong?

Started it on Germany - apparently I didn't notice the synchronisation button the first time :)

 

No problems with the servers today?

From the log:

2015.02.11 09:50:21.178 Virtual Hosting: 6892 failed to connect to server 'United Kingdom' (199.59.206.34:443 failed)

2015.02.11 09:49:33.738 Virtual Hosting: 6891 failed to connect to server 'Netherlands' (78.140.180.90:443 failed)

2015.02.11 09:48:46.205 Virtual Hosting: 6890 failed to connect to server 'Netherlands' (78.140.176.167:443 failed)

 

Good afternoon, Renat.

For some reason I cannot "Allocate virtual server" when I have money in the community.

Broker Otkritie, MT5.

Is there a solution?

Files:
333.PNG  15 kb