Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

can we limit the cpu use at 60% for emerge ?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
31 posts
  • 1
  • 2
  • Next
Author
Message
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

can we limit the cpu use at 60% for emerge ?

  • Quote

Post by padoor » Tue Mar 18, 2008 3:56 am

can we limit the cpu use at 60% for emerge and make video/audio player work simultaneously?
now it goes slowwwww music with emerge consuming all cpu power.
for an update world a day i cannot use the computer for any thing else.[laptop]
any ideas?
else with some connection scheme with desktop can i use that processor to emerge and leave the internal laptop processor free to play with other things?
full help needed.from ABC....
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
Old School
Apprentice
Apprentice
User avatar
Posts: 252
Joined: Sat Nov 20, 2004 9:02 pm
Location: West Bank of the Coast Fork

  • Quote

Post by Old School » Tue Mar 18, 2008 4:03 am

That is covered, I believe, with the make.conf

Code: Select all

PORTAGE_NICENESS="n"
www.otw20.com

The further a society drifts from truth, the more it will hate those who speak it.
George Orwell
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Tue Mar 18, 2008 4:49 am

NICE gives a vauge idea like the number increments the niceness.
favourable is -20 to 19
i tried setting
PORTAGE_NICENESS="-10"
in make.conf
it just did not bother about this new line.and does the same old thing only.
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
omp
Retired Dev
Retired Dev
User avatar
Posts: 1018
Joined: Sat Sep 10, 2005 8:47 am
Location: Glendale, California
Contact:
Contact omp
Website

  • Quote

Post by omp » Tue Mar 18, 2008 6:15 am

padoor wrote:PORTAGE_NICENESS="-10"
Maybe try going towards the correct direction. ;)
meow.
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Tue Mar 18, 2008 6:50 am

ok
i made it PORTAGE_NICENESS="10"

still the system monitor says 0% idle for cpu.
why not give me some specific number setting there? :( for i want 40% cpu free when it emerges a package.
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
omp
Retired Dev
Retired Dev
User avatar
Posts: 1018
Joined: Sat Sep 10, 2005 8:47 am
Location: Glendale, California
Contact:
Contact omp
Website

  • Quote

Post by omp » Tue Mar 18, 2008 6:56 am

padoor wrote:why not give me some specific number setting there?
Because why would you possibly want to use less CPU power than is available to you? With niceness set to a high value, if you were to run another CPU-intensive process, the compile process will stop hogging the CPU cycles. However, if it is the only such process running, it will use whatever it needs to in order to get the job done.
meow.
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Tue Mar 18, 2008 7:11 am

while updating the packages the emerge is the only possible thing i can do in this laptop.
any way it takes whole of the day for this purpose.
i dont mind doing it in 2 days and do some other work also.
i want the vlc or listen running a music and browsing the net and downloading some files with kget.
except music other 2 work without problems.
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Tue Mar 18, 2008 7:31 am

well... you could lower the -j# in make.conf

so rather then letting gcc have two threads per core, just let it have one
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
McLink
Apprentice
Apprentice
User avatar
Posts: 184
Joined: Sat Feb 02, 2008 9:24 am
Location: /dev/chair
Contact:
Contact McLink
Website

  • Quote

Post by McLink » Tue Mar 18, 2008 7:44 am

Try

Code: Select all

PORTAGE_NICENESS="19"
MAKEOPTS="-j1"
That should restrict Portage processes to very unfavourable scheduling and one make thread, meaning any other process will get CPU time before emerge.
Top
nonas
Guru
Guru
Posts: 328
Joined: Sun Apr 17, 2005 5:15 pm

  • Quote

Post by nonas » Tue Mar 18, 2008 9:45 am

You can take a look at cpulimit too.
http://cpulimit.sourceforge.net/
Top
Akkara
Bodhisattva
Bodhisattva
User avatar
Posts: 6702
Joined: Tue Mar 28, 2006 12:27 pm
Location: &akkara

  • Quote

Post by Akkara » Tue Mar 18, 2008 10:12 am

It could also be that what's causing your poor interactive performance is not the use of CPU, but contention for the disk.
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Tue Mar 18, 2008 11:06 am

niceness 19 has the benefit of 'batch scheduling' which might be a GOOD THING for stuff like compiling.

I for one love my hardware. I can install kde4 and watch disturbing videos at the same time .....
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Tue Mar 18, 2008 12:45 pm

energyman76b wrote:niceness 19 has the benefit of 'batch scheduling' which might be a GOOD THING for stuff like compiling.

I for one love my hardware. I can install kde4 and watch disturbing videos at the same time .....
installing kde4... with paludis?
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Tue Mar 18, 2008 12:47 pm

Naib wrote:
energyman76b wrote:niceness 19 has the benefit of 'batch scheduling' which might be a GOOD THING for stuff like compiling.

I for one love my hardware. I can install kde4 and watch disturbing videos at the same time .....
installing kde4... with paludis?
nope. portage. but with /usr/portage on reiser4 with lzo compression, /var on reiser4 with lzo compression, /var/tmp/portage on tmpfs.
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Tue Mar 18, 2008 12:58 pm

energyman76b wrote:
Naib wrote:
energyman76b wrote:niceness 19 has the benefit of 'batch scheduling' which might be a GOOD THING for stuff like compiling.

I for one love my hardware. I can install kde4 and watch disturbing videos at the same time .....
installing kde4... with paludis?
nope. portage. but with /usr/portage on reiser4 with lzo compression, /var on reiser4 with lzo compression, /var/tmp/portage on tmpfs.
Then I suggest you read all the thread of this mailing list
http://archives.gentoo.org/gentoo-dev/m ... 6c6a16.xml
For users of the KDE overlay's live ebuilds the new EAPI currently means
they will have to use Paludis but there are rumours ;) other PMs are
interested as well. That's the main reason to optionally include it in
PMS.
even if you are not using the overlay, just wait till the ebuilds are ready to go into the main tree
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Tue Mar 18, 2008 1:21 pm

i have one ext3 partition / gentoo installation and it is laptop.
i can go for slower compiling as it is already slow.
instead of a day it can take 2 for update :(
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Tue Mar 18, 2008 1:39 pm

Naib wrote:
Then I suggest you read all the thread of this mailing list
http://archives.gentoo.org/gentoo-dev/m ... 6c6a16.xml
I prefer http://marc.info/?l=gentoo-dev&r=1&w=2
;)
Naib wrote:
For users of the KDE overlay's live ebuilds the new EAPI currently means
they will have to use Paludis but there are rumours ;) other PMs are
interested as well. That's the main reason to optionally include it in
PMS.
even if you are not using the overlay, just wait till the ebuilds are ready to go into the main tree
the magic word is 'live' ;) Live ebuilds are the svn ones. I couldn't care less :P

but thanks for the info.
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
square_
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 114
Joined: Thu Dec 20, 2007 9:30 pm

  • Quote

Post by square_ » Tue Mar 18, 2008 1:59 pm

padoor wrote:i have one ext3 partition / gentoo installation and it is laptop.
i can go for slower compiling as it is already slow.
instead of a day it can take 2 for update :(
stop whining! :-P
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Tue Mar 18, 2008 2:38 pm

Portage questions go to P+P.

Moved from Off the Wall to Portage & Programming.
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
SnEptUne
l33t
l33t
User avatar
Posts: 656
Joined: Mon Aug 23, 2004 4:13 am

  • Quote

Post by SnEptUne » Tue Mar 18, 2008 8:58 pm

padoor wrote:i have one ext3 partition / gentoo installation and it is laptop.
i can go for slower compiling as it is already slow.
instead of a day it can take 2 for update :(
Are you using a Pentium 2 or something? Even on this Pentium 3, updating firefox wouldn't take more than 3 hours. Well, if you are updating and compling openoffice..., but openoffice doesn't have update that often.
"There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114)
Top
Corona688
Veteran
Veteran
User avatar
Posts: 1204
Joined: Sat Jan 10, 2004 7:51 pm

  • Quote

Post by Corona688 » Tue Mar 18, 2008 9:43 pm

If you're using the CFQ I/O scheduler in your kernel, you can change the priority of a process' disk access with the ionice tool, part of the schedutils package.
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Top
pteppic
l33t
l33t
Posts: 781
Joined: Mon Nov 28, 2005 5:24 pm

  • Quote

Post by pteppic » Tue Mar 18, 2008 10:48 pm

Corona688 wrote:If you're using the CFQ I/O scheduler in your kernel, you can change the priority of a process' disk access with the ionice tool, part of the schedutils package.
Sometimes you come across a real gem of information here on the forums, just like this one, thanks.
Current Project Thread (myth2avi)
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Wed Mar 19, 2008 12:33 pm

Corona688 wrote:If you're using the CFQ I/O scheduler in your kernel, you can change the priority of a process' disk access with the ionice tool, part of the schedutils package.
CFQ I/O i dont have any idea about this.
any reading on this available.

my laptop is p3 1GHz 512 mb

i am not whining about slow emerge.
i am ready to go still slower provided the cpu will give some power to other video and music also while emerging.
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

  • Quote

Post by flysideways » Wed Mar 19, 2008 1:08 pm

pteppic wrote:
Corona688 wrote:If you're using the CFQ I/O scheduler in your kernel, you can change the priority of a process' disk access with the ionice tool, part of the schedutils package.
Sometimes you come across a real gem of information here on the forums, just like this one, thanks.
++

http://forums.gentoo.org/viewtopic-t-462230.html
Last edited by flysideways on Wed Mar 19, 2008 1:14 pm, edited 1 time in total.
Top
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

Re: can we limit the cpu use at 60% for emerge ?

  • Quote

Post by flysideways » Wed Mar 19, 2008 1:10 pm

padoor wrote: any ideas?
else with some connection scheme with desktop can i use that processor to emerge and leave the internal laptop processor free to play with other things?
That would be distcc. I have also seen suggestions elsewhere in the forums to do a build on a fast computer and rsync the binaries to the slower one, never tried it though.
Top
Post Reply

31 posts
  • 1
  • 2
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic