-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Count memory usage for grandchildren in job_dispatch
job_dispatch/job_runner only picked up the memory usage for its direct child. When the direct child is only a wrapper for some potentially memory hungry processes, the memory usage reported from job_dispatch is essentially garbage. This PR lets the job runner scan through all its grandchildren when estimating memory usage for a started forward model. NB: This counts RSS (resident set size). When summing over multiple processes, the RSS sum will count shared memory pages multiple times, thus the sum is likely to be an overestimate for the actual memory load imposed. This is probably less of a problem, as the target memory consumption numbers that are of interest, stem from big datasets which are not shared among processes.
- Loading branch information
Showing
2 changed files
with
47 additions
and
1 deletion.
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
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