Replies: 2 comments
-
I don't know python at all but was trying to dig into the code. Is this only using the major or minor phase of the job to determine the sort and then grabbing the first returned when determining which temp directory to use? When using more than 2 temp directories I'm wondering if this is not adequate? I could be completely misreading this code.
|
Beta Was this translation helpful? Give feedback.
-
I was digging into the code further trying to understand.
If I am reading this correctly it's grabbing the first (earliest) phase for from the sorted phases for each directory. So I think rankable becomes a tuple of the directory and it's earliest phase, e.g. for our example (ssd2, 1:5), (ssd3, 1:3). I think the itemgetter(1) that I saw above is then grabbing the phase object not just a property of the phase. Though, this interpretation of the code seems to indicate it should have selected ssd2 which would have a higher phase, but instead it choose ssd3 again. Is anyone else seeing troubling scheduling when using more than 2 temp drives? |
Beta Was this translation helpful? Give feedback.
-
I am trying to understand the algorithm for temp dir selection. In the below capture it used temp ssd3 back to back when in theory ssd2 was available to use. I had also seen a similar case earlier when it selected ssd1, ssd2, ssd1. Is this behaving as expected? I was concerned that it was putting too much load re-using the same dirs again too soon.
Beta Was this translation helpful? Give feedback.
All reactions