Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an ubuntu server and I am using it for cpu heavy verifications. I want to limit the number of simultaneous verifications to 10. Is there an easy way to limit the process called "vis" to being able run only 10 of them at the same time?

share|improve this question
    
Sounds like an application specific question, rather than OS. Should be some sort of config for it. –  Brian Knoblauch Sep 23 '10 at 17:07
    
How are they being launched? –  Dennis Williamson Sep 23 '10 at 17:19
    
@Brian : i know how to do it in application, I was just looking for an easier solution –  Viperus Sep 27 '10 at 16:42

1 Answer 1

up vote 1 down vote accepted

ulimit is the command to make these types of restrictions.
I would recommend you make a user called visuser and add the following line to the .bashrc file:

ulimit -u 10

You might have to make it 11 though to make up for the shell.

share|improve this answer

Your Answer

 
discard

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