Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm working on a shared linux machine with multicores where I do have admin rights. Is it possible to freeze all the processes of other users (or give them less priority to access to the CPUs) so that I can leverage all the machine computing power?

share|improve this question
    
Doesn't sound like a nice thing to do....kinda destroys the word "shared" –  Moab Jun 3 '12 at 23:48
    
Why so many downvotes? I see this as important system management option and of course server admin decides what user can do and how much they are allowed to consume resources. I can say that it is possible and you can give only specific cores to specific users/groups but i dont have time to dig it up just now (hint: look for kernel modules for this), however if I'll find some spare time I will add details here if still needed. –  Sampo Sarrala Jun 4 '12 at 0:15
    
The title is unfortunate. –  Xavierjazz Jun 4 '12 at 0:51
    
Thanks @SampoSarrala for understanding the importance of this question. To the others, I apologize for the unfortunate title (which I slightly changed). –  Luca Fiaschi Aug 7 '13 at 7:07
add comment

1 Answer

up vote 2 down vote accepted

It's unclear what you mean by steal cores; however, if your process isn't very nice, then the linux scheduler will give your application more computing time on the cores. Do you really have a threaded / multiprocessing application that can leverage more than one core at once?

Syntax (as root):

nice -n -19 <cmd and args>

Another option is cpulimit. This could be used per-process to slow something down.

share|improve this answer
    
Thanks this is exactly what I meant –  Luca Fiaschi Aug 7 '13 at 6:58
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.