How instruction cpu works at limits.conf?
Hi, i need to limit summary working time at system. I tried use limits.conf for this. If only two lines would be there
Quote:
p.s. if i am wrong in method whith which i try set time limit for user, please advice me with right method p.p.s sorry for bad english |
Hi -
Frankly, I've never heard of anybody trying to enforce CPU limits under Linux before (I always thought CPU cycles are pretty much like "air" - free and limitless ;)), and I'm not at all sure it can even be done. However, if you want to look at limits.conf, then you need to learn more about - and configure - PAM. Here are a few links: http://linux.die.net/man/8/pam.d http://linux.die.net/man/8/pam_limits http://linux.die.net/man/5/limits.conf 'Hope that helps .. PSM |
Try ulimit -t http://linux.die.net/man/1/ulimit
|
Quote:
|
Quote:
Quote:
1) max CPU time for one session? 2) max CPU time for one processs? 3) max CPU time = summary time of all logins during period between server reboots? What developers whanted to say whith commentar for instruction cpu? |
If you'd read the link, you should have seen this:
Quote:
|
Can you explain more clearly what you are after?
|
Quote:
If i should do it in another way advise me please. |
The tools as mentioned above give you a limit per login session. That's the way the system works.
If you want to accumulate time over multiple sessions, you'll have to create a script to save/read the accumulated time. You can check the user's name at login in the /etc/profile, which is called for each new login. |
All times are GMT -5. The time now is 12:54 PM. |