Ticket 13173

Summary: MaxArraySize
Product: Slurm Reporter: Thu-Ha Tran <thu-ha.tran>
Component: ConfigurationAssignee: Scott Hilton <scott>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 21.08.4   
Hardware: Linux   
OS: Linux   
Site: Shell Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Thu-Ha Tran 2022-01-11 12:41:45 MST
Hi Support,

We have specified 
MaxArraySize            = 1000

But when we submitted an array job which 1000 elements, it failed (Invalid job array specification) but it works which 999 elements.

Same with MaxCPUsPerNode that I have reported before and it is now fixed in slurm 21.08. 

To keep a specified number of elements working, I had to add 1. 

Would you please take a look?

Regards,
Thu-Ha
Comment 1 Scott Hilton 2022-01-12 09:43:40 MST
Thu-Ha,

MaxArraySize not only limits the number of elements the the max index of the elements. 

With "MaxArraySize = 1000", the only way to have 1000 elements is to use 0-999, 1-1000 will not work because 1000 is not a vaild index.

This is in our documentation: https://slurm.schedmd.com/job_array.html#overview
Note that the minimum index value is zero and the maximum value is a Slurm configuration parameter (MaxArraySize minus one)

-Scott
Comment 2 Thu-Ha Tran 2022-01-12 12:58:46 MST
Hi Scott,

So the largest array element should not be greater than "MaxArraySize -1", right?
Thanks for verification.


Regards,
Thu-Ha
Comment 3 Scott Hilton 2022-01-12 13:50:52 MST
Thu-Ha,

That is correct.

Closing ticket.

-Scott