Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awk: cmd. line:261: (FILENAME=- FNR=1) fatal: division by zero attempted #28

Open
tiansira opened this issue Aug 15, 2024 · 5 comments
Open

Comments

@tiansira
Copy link

Hi when I run this script, I got the below error output, Could you pls have a look, and let me know how to fix it? Thank you.


Notice: Longest hostname length is truncated to 20
Hostname Partition Node Num_CPU CPUload Memsize Freemem Joblist
State Use/Tot (15min) (MB) (MB) JobID User ...
awk: cmd. line:261: (FILENAME=- FNR=1) fatal: division by zero attempted

@OleHolmNielsen
Copy link
Owner

Which script are you trying to run?
Please specify also your Slurm version.
Thanks.

@tiansira
Copy link
Author

I run the pestat script, and my slurm version is slurm 20.11.9. Thanks.

@OleHolmNielsen
Copy link
Owner

The pestat should work also with old Slurm versions such as 20.11 (it is recommended to upgrade Slurm, however).
The warning "Notice: Longest hostname length is truncated to" can be seen in the pestat script and is probably due to very long hostnames of your nodes. I think it is a good idea to use short hostnames without the DNS domain.
Can you please show me your hostnames as printed by this command:

$ sinfo -N -O NodeList

Then I will try to reproduce the error that you see.

@OleHolmNielsen
Copy link
Owner

Any updates on this issue?
Thanks, Ole

1 similar comment
@OleHolmNielsen
Copy link
Owner

Any updates on this issue?
Thanks, Ole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants