Bug on rebalance_cpu.sh

16 views
Skip to first unread message

Manuel Guerrero Martos

unread,
Jul 19, 2024, 6:33:15 AM7/19/24
to z-Tree unleashed
Good morning all.

Several months figuring out what's the problem on Debian12 and ztree-unleashed and finally gotcha.

On rebalance_cpu.sh where:
"#!/usr/bin/env bash

source read_settings.sh

NPROC=$(nproc -all)"

must be changed by:

"#!/usr/bin/env bash

source read_settings.sh

NPROC=$(nproc)"

The problem occours when, on /home/client0/.zu/core, modified by rebalance_cpu.sh when ./start_session_simple.sh is invoked. The processor number assigned to client0 don't exists on the server machine running. Then ztree is never started.

In my case, on a cloud server, the number of processors which is possible to get is 64 processors, but just only n<64  are used actually. Then nproc -all, returns 64 but nproc return n, which is the real number of processors operating.

Then ztree does not start never.

Best regards and congratulations to Mr. MAx R. P. Grossman and company for this important research tool achieved on Experimental Economics area.

Max R. P. Grossmann

unread,
Jul 19, 2024, 6:43:09 AM7/19/24
to 'Manuel Guerrero Martos' via z-Tree unleashed
Hi Manuel,

Thanks for reporting this issue. I apologize for being slow to respond.

I have just committed a bug fix to GitLab: https://gitlab.com/cler1/ztree-unleashed/-/commit/5c4119247e4d0b3bdaf394ac6dbabbcf82585f2c

If you have further issues, feel free to contact me directly.

Best,

Max
> --
> You received this message because you are subscribed to the Google Groups "z-Tree unleashed" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to z-tree-unleash...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/z-tree-unleashed/2327fd66-9305-43d1-b96a-9b82a16272b0n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages