Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

We are having a cluster, and on that cluster we have number of users, some users are important and some are temporary or not having that same importance.

Is it possible to assign users so that they can be restricted to use only the number of cores/CPUs allotted to them and not more than that?

share|improve this question
    
You typically can do this through the clustering software. –  slm Oct 31 '13 at 5:24
    
It depends on exact type of the cluster you're using. –  poige Oct 31 '13 at 6:35
add comment

1 Answer

The pam_limits.so module can help you somewhat.

It allows you to set certain limits on specific individual users and groups or wildcards or ranges of users and groups.

The limits you can set are typically ulimit settings but also on the number of concurrent login sessions, processes, CPU time, default priority and maximum priority (renice). Check the limits.conf man page for more.

For example you can configure your VIP users to have all their processes started with an increased default priority and if they are a bit more savy you can allow them to use the nice and renice commands to increase the priority of their important jobs manually as well.

# /etc/security/limits.conf
# increase prio for members of the faculty group
@faculty   hard priority -10
@faculty   hard nice     -15   

pam_limits are for a specific individual host and not cluster aware.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.