First commit towards TRQ-2124. This has the mom keep a snapshot of the internal memory for the node and make sure to assign memory nodes appropriately when using cpusets. It still needs to handle threads more intelligently.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Fix a warning and a compile error.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
TRQ-2022. Make pbs_mom capable of handling either format for cpuset files, whether they are named things like cpuset.mems or just mems.
Fix a cpuset bug where if the torque directory existed but wasn't populated pbs_mom wouldn't populate it. Now pbs_mom will make sure that things are populated.
TRQ-2124. Fix a bug in my implementation - the layout reservation must happen before the fork so that the next job doesn't occupy the same space.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Free tmems if they aren't null to prevent a small memory leak (although the leak is in the child, so it goes unnoticed anyway.
Also for TRQ-2124. Fix a couple more issues in my implementation.
TRQ-2124. Add code to recover how the jobs are layed out if the mom is restarted with running jobs.
TRQ-2124. Remove some debug code that is no longer needed and fix one final bug.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev