Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Memory limit too low for tick data? [Re: Sphin] #464151
01/25/17 10:36
01/25/17 10:36
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
Originally Posted By: Sphin
Quote:
system has 9 GB free memory
I guess you won't use it with a 32 bit app. laugh


Still, in this case this shouldn't be a problem. A file causing the error has 599 MB (the error says TIC memory limit exceeded 799 MB). I can load slightly smaller file which has 572 MB. During the backtest Zorro uses only 781 MB of memory, so there's still lot of potential space.

A side note: Zorro is almost 5 years old. As I see it the market generated data volume has almost doubled since that time. It will probably grow in the future too. Something has to be done to keep up with this development.

Re: Memory limit too low for tick data? [Re: pcz] #464172
01/26/17 15:24
01/26/17 15:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The Zorro memory limit is 3 GB per instance, and 1.2 GB per single allocation, due to the 32 bit limit.

Re: Memory limit too low for tick data? [Re: jcl] #464185
01/27/17 12:17
01/27/17 12:17
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
So why is it possible to perform backtest on 572 MB history file with Zorro taking up 781 MB of memory and 599 MB history file gives an error? It should be still in the limit, shouldn't it? And is there any chance there will be 64 bit version in the future?

Re: Memory limit too low for tick data? [Re: pcz] #464188
01/27/17 13:56
01/27/17 13:56
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
599 MB is no problem. The limit is 3000 MB. So there must be a lot more allocated when you get an error message. You can see the current memory consumption in the Windows Task Manager.

A 64 bit version is possible, but would require a different compiler. The lite-C compiler generates 32 bit code.

Re: Memory limit too low for tick data? [Re: jcl] #464199
01/27/17 15:40
01/27/17 15:40
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
It must be a bug then. Maybe again an error in memory size computation? See the screenshots with minimal example and file and memory information:

This runs OK:


This gives an error every time:

Last edited by pcz; 01/27/17 15:58.
Re: Memory limit too low for tick data? [Re: pcz] #464207
01/27/17 17:01
01/27/17 17:01
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I see no screenshots, but a bug is always possible - however in this case you probably had to ask Bill Gates to fix it. Memory allocation is done by Windows, not by Zorro.

There's also another possibility: Memory is still free, but not contiguous, so huge arrays can not be allocated. That's the reason for the 1200 MB allocation limit. The limit can be smaller when your memory is heavily fragmented. I have not experienced any problems so far with large tick data files, but maybe I was just lucky.

Re: Memory limit too low for tick data? [Re: jcl] #464211
01/27/17 18:06
01/27/17 18:06
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
That's weird, I can see them in different browsers. What about these links?

https://s29.postimg.org/h9tk578af/limit_ok.png
https://s29.postimg.org/qlv1ww0vb/limit_exceeded.png

With highest probability the memory not being contiguous is not the issue here. It happens every time, even after a fresh system start.

What I meant is whether it cannot be related to the issue described in the beginning of the thread - to quote you:

Originally Posted By: jcl
Indeed! That error message is in fact wrong, the memory did not run out. I suppose that this is a bug in the memory size calculation. I've notified the developer, and we'll upload later today a new beta version 1.45.2 where this is fixed.


So you are indeed able to backtest on history data files larger than 600 MB with Zorro 1.52?

Re: Memory limit too low for tick data? [Re: pcz] #464236
01/30/17 14:38
01/30/17 14:38
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I can see the screenshots now, but they contain no info about the system memory allocation. There's a performance tab in the task manager where you can see that.

I can start your example script as often as I want and get no memory problem. However the 2015 EURUSD.t1 history is less than 600 MB. I have no >600 MB t1 history at this point - must download it first. If you're tight on memory, you can save some with the LEAN flag.

Re: Memory limit too low for tick data? [Re: jcl] #464249
01/30/17 18:02
01/30/17 18:02
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
True. If I check the largest free block of memory available to Zorro it has 2 GB atm. Yet the script crashes with Error 060: TIC memory limit exceeded (799 MB). I uploaded the .t1 file if you want to give it a try: https://we.tl/aLaTBOnxeq

Re: Memory limit too low for tick data? [Re: pcz] #464257
01/31/17 09:44
01/31/17 09:44
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks! I can confirm the problem with your .t1 file. It happens on my PC too and looks like a bad allocation order when Zorro loads the historical data - as if a new area is allocated before the old one is freed. This exceeds the limit every time. This can be probably fixed and we'll do that with high priority before the next release.

Page 2 of 3 1 2 3

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1