Go Back   The UNIX and Linux Forums > Special Forums > Security


Security Discuss UNIX and Linux computer and network security, cyber security, cyber attacks, IT security, and more.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-20-2012
Registered User
 
Join Date: Jan 2012
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Question Limit CPU and RAM utilization for new user in RedHat

We have a system with 4 Xeon Processors each with 10 cores, total 512 GB RAM and 10 TB Hard Drive.

we want to create multiple user accounts with different resource limitations as :

User 1: RAM : 50GB, PROCESSOR: 10 Cores , User folder in home directory of 10GB space.

User 2: RAM : 100GB, PROCESSOR: 30 Cores , User folder in home directory of 100GB space.

Could you please suggest me how to set this kind of limitations for each user.

Thanks in advance..
Sponsored Links
    #2  
Old 09-20-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,392
Thanks: 492
Thanked 2,536 Times in 2,419 Posts
Some of what you want can be done with /etc/security/limits.conf, which lets you set hard and soft limits for things like memory use and maximum number of processes, controlled by user or group.
The Following User Says Thank You to Corona688 For This Useful Post:
vaibhavvsk (09-20-2012)
Sponsored Links
    #3  
Old 09-20-2012
Registered User
 
Join Date: Jan 2012
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
MySQL

Quote:
Thanks
    #4  
Old 09-20-2012
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 3,301
Thanks: 27
Thanked 457 Times in 356 Posts
For the rest - limitation of space in the HOME directory - there are disk quotas.

Here is a document describing the setup.

You can set up quotas based on users as well as based on groups.

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
vaibhavvsk (09-20-2012)
Sponsored Links
    #5  
Old 09-21-2012
Registered User
 
Join Date: Jan 2012
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Hey thanks a lot bakunin,

It's good explained here.

---------- Post updated at 12:42 PM ---------- Previous update was at 12:56 AM ----------

Whether it's necessary to set both soft and hard values for each item ? I'm able to set maxlogins with hard limit only..but I'm not able to set memlock and nproc
Sponsored Links
    #6  
Old 09-21-2012
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 3,301
Thanks: 27
Thanked 457 Times in 356 Posts
You do not need to: a "hard limit" is like a wall: once set, it can't be changed (by the user, that is). A "soft limit" is different: it is set, but the user can change it (up to the maximum of the hard limit) himself.

I hope this helps.

bakunin
Sponsored Links
Closed Thread

Tags
limit processor cores per user, limit resources per user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Limit a user on AIX edosseh AIX 2 12-20-2010 02:09 PM
AIX 6.1 Power6 - Sys CPU utilization twice that of User troym72 AIX 3 01-26-2010 11:07 AM
Redhat 2.1 AS Memory Limit? Cbish68 Ubuntu 2 10-30-2008 07:25 AM
script for cpu utilization for each user rajusa10 Shell Programming and Scripting 1 03-28-2008 04:25 AM
Alert When a Process Exceeds a CPU Utilization Limit... pbsrinivas Shell Programming and Scripting 4 06-20-2007 08:38 AM



All times are GMT -4. The time now is 04:35 PM.