-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from cedadev/cci_cases
Changes from CCI branch to main
- Loading branch information
Showing
22 changed files
with
5,487 additions
and
5,989 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
__author__ = "Daniel Westwood" | ||
__contact__ = "[email protected]" | ||
__copyright__ = "Copyright 2023 United Kingdom Research and Innovation" | ||
|
||
# Job Subset Allocation Script | ||
# - Calculate Expected Utilisation for each Job (500 + Kerchunk Size*5 MB) | ||
|
||
# First-Fit Bin Packing Algorithm | ||
# - Sort Utilisations from largest to smallest | ||
# - Bin Capacity is largest size rounded up to next memory cap (1, 2, 3, 4 GB) | ||
# - Allocate item to first bin with space remaining | ||
# - End with N bins (subsets) - write list of project codes for each subset to a separate file in proj_code_subsets/set_N.txt | ||
# - Run array with number of subsets already set. | ||
|
||
# Utilisation estimate is (total_chunks * 835) + 500 (MB) | ||
""" | ||
for proj_code in (repeat_id set): | ||
open detail-cfg (for this code) | ||
calculate utilisation | ||
add to dict [utilisation, proj_code] | ||
keep track of max/min | ||
get bins using binpacking (pypi) | ||
""" |
Oops, something went wrong.