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.

at first I wanted to dedicate 2 cores(4 threads) to one java PID, and 2 cores(4 threads) to the other. However the volatility of these programs makes me think that they will end up crashing and restarting. I have two users mc5 and mc26. Both run one process across 4 cores(8 threads). This causes performance issues and slight lag. I want to let mc5 use 2 cores (thread 0,1,2,3). I want to let mc26 use 2 cores(thread 4,5,6,7). How is this possible? could someone give me an example?

share|improve this question

1 Answer 1

Would this work? Should work on already-running processes:

taskset -cp 0-3 `pid of mc5`
taskset -cp 4-7 `pid of mc26`
share|improve this answer
    
execvp: No such file or directory failed to execute --cpu-list –  Web Master Jul 11 at 18:58
    
doing yum install util-linux –  Web Master Jul 11 at 19:00

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.