Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-13-2009, 12:26 PM   #1
Registered: Mar 2005
Distribution: Gentoo
Posts: 181

Rep: Reputation: 30
load balance with 2 cpu

Is there anyway to get package managers such as emerge or aptitude to hog all of one cpu while the rest of my computer uses the other cpu? My computer gets all laggy when I start compiling stuff, and I would like to know if there is a nifty solution.
Thanks guys!
Old 10-13-2009, 03:01 PM   #2
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
You can use the "taskset" utility for this job.
Or, and I think it's simpler, use the command "nice" to lower the priority to specific processes.
For instance, when compiling a kernel, I use the command "nice -n19 make -3", to compile using three processes at a time. But, as I specify "-19", these processes will only use the CPUs' time that's not used by other processes, thus they basically do not disturb my job.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Balance please Linux - Networking 4 10-28-2008 12:26 AM
load balance problem c2220333 Linux - Kernel 0 01-30-2007 10:55 PM
Internet load Balance serabut Linux - Networking 1 07-31-2006 02:56 AM
CPU Load Balance - Who knows? davi_cabral Linux - General 3 01-02-2006 03:07 PM
Connection load balance inaki Linux - Networking 1 08-22-2005 10:50 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration