Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Backtest not utilizing all CPU ? #487247
02/24/23 11:45
02/24/23 11:45
Joined: Nov 2014
Posts: 25
K
kkfx Offline OP
Newbie
kkfx  Offline OP
Newbie
K

Joined: Nov 2014
Posts: 25
HI,

I just run a Z1 test on a Z620 dual xeon CPU server (Windows 2012R), surprisingly I see there is only 1 cpu/thread is utilised in the Resource Monitor. The same test I run on a N6000 PC (windows 10), all 4 threads werre used up 100%. May I know if there is setting or config on the server that I missed ?

Re: Backtest not utilizing all CPU ? [Re: kkfx] #487250
02/24/23 15:09
02/24/23 15:09
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Maybe you forgot the NumCores setting? (Zorro S required)

https://zorro-project.com/manual/en/numcores.htm

Last edited by Grant; 02/24/23 15:09.
Re: Backtest not utilizing all CPU ? [Re: kkfx] #487255
02/25/23 14:18
02/25/23 14:18
Joined: Nov 2014
Posts: 25
K
kkfx Offline OP
Newbie
kkfx  Offline OP
Newbie
K

Joined: Nov 2014
Posts: 25
@Grant, thank you for your reply. This is Z1 strategy, I am not sure about he NumCores is set as -1, otherwise, can I set it in the ini or as a parameter on the command line ? Or the multicore is only available for WFO (Train mode) instead of the test mode ?

Re: Backtest not utilizing all CPU ? [Re: kkfx] #487256
02/25/23 16:21
02/25/23 16:21
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
NumCores should be set to a positive number (i.e. number of cores), unless you want to reserve 1 or more cores for other processes.

From what I understand, multicore is only available in train mode for WFO and R-packages. Multicore uses command line, but not the other way around.

I don't have the Z1 source code, so I have no clue about it's settings. Maybe JCL can answer that question?

Re: Backtest not utilizing all CPU ? [Re: Grant] #487263
02/27/23 03:36
02/27/23 03:36
Joined: Nov 2014
Posts: 25
K
kkfx Offline OP
Newbie
kkfx  Offline OP
Newbie
K

Joined: Nov 2014
Posts: 25
@Grant, thank you for your reply. I just use Z1 to benchmark a workstation to see if it will backtest and train faster before i make a purchase decision. If multicores or dual CPU does not help in backtest and training, then I may consider a single CPU with faster speed instead of dual CPU server that have many threads.

Re: Backtest not utilizing all CPU ? [Re: kkfx] #487264
02/27/23 06:41
02/27/23 06:41
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Multicore support will def speed up training time, but speed is -IMO- pretty irrelevant compared to a script being profitable.

Re: Backtest not utilizing all CPU ? [Re: kkfx] #487265
02/27/23 15:36
02/27/23 15:36
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Backtest is always single core. Multicore is for training.

Re: Backtest not utilizing all CPU ? [Re: Grant] #487271
03/01/23 09:25
03/01/23 09:25
Joined: Nov 2014
Posts: 25
K
kkfx Offline OP
Newbie
kkfx  Offline OP
Newbie
K

Joined: Nov 2014
Posts: 25
Good point

Re: Backtest not utilizing all CPU ? [Re: Petra] #487272
03/01/23 09:27
03/01/23 09:27
Joined: Nov 2014
Posts: 25
K
kkfx Offline OP
Newbie
kkfx  Offline OP
Newbie
K

Joined: Nov 2014
Posts: 25
Thanks. Is there plan or ways to make backtest faster by fully using all cores/threads ?

Re: Backtest not utilizing all CPU ? [Re: kkfx] #487274
03/01/23 11:40
03/01/23 11:40
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
I don't know your trading plan, but backtesting usually takes less than 1-2 minutes. It's the training that takes much more time.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1