There is unfortunately no way in SGE to limit main memory. h_rss / s_rss does not work with the rlimit call in Linux kernel version above 2.4.
Hence in Univa Grid Engine we introduced multiple ways for doing main memory limitations. If you have cgroups support turned on then the cgroup takes care for limiting either hard or softly (soft is different there - it has a means of current memory pressure in the system). In our latest patch we also allow to limit main memory with h_rss / s_rss which works similar to what you expect from other limits. There are also ways for forcing the application to take only memory from the local NUMA node and UGE can manage per socket memory usage. This can be combined with binding application to certain cores / sockets. Other than that we also report proportional rss and other more specific memory usage metrics. So, to summarize, it was a very obvious issue in SGE where we saw the need to improve it. Daniel Am 30.06.2014 um 07:55 schrieb Derrick Lin <klin...@gmail.com>: > Hi guys, > > A typical node on our cluster has 64 cores and 512GB memory. So it's about > 8GB/core. Occasionally, we have some jobs that utilizes only 1 core but > 400-500GB of memory, that annoys lots of users. So I am seeking a way that > can force jobs to run strictly below 8GB/core ration or it should be killed. > > For example, the above job should ask for 64 cores in order to use 500GB of > memory (we have user quota for slots). > > I have been trying to play around h_vmem, set it to consumable and configure > RQS > > { > name max_user_vmem > enabled true > description "Each user can utilize more than 8GB/slot" > limit users {bad_user} to h_vmem=8g > } > > but it seems to be setting a total vmem bad_user can use per job. > > I would love to set it on users instead of queue or hosts because we have > applications that utilize the same set of nodes and app should be unlimited. > > Thanks > Derrick > _______________________________________________ > users mailing list > users@gridengine.org > https://gridengine.org/mailman/listinfo/users _______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users