from small one page howto to huge articles all in one place
 

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

9272

userrating:

no votes yet


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tips&Tricks

nice and PORTAGE_NICENESS

Very simply put, the Linux kernel has a (process) scheduler that selects which process to run next in your system. One factor influencing the scheduler's decision about which process to assign CPU time to, is the priority of a process. Processes with a high priority will run before those with a lower priority, and processes with the same priority will take turns in running, one after the other and over again.

Better have a look at it for yourself: Run top from a terminal on your host and pay special attention to the PR and NI columns:

Sample top output

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 
 8005 root      20   0 85188  33m  57m R  3.3  6.7   8:43.77 X 
 8148 tobias    20  10 25624 2376  24m S  0.3  0.5   0:00.60 xscreensaver 
    1 root      20   0  2476  552 2304 S  0.0  0.1   0:00.31 init 
    2 root      39  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0 
    3 root      15  -5     0    0    0 S  0.0  0.0   0:00.09 events/0

The PR column indicates the priority level of a process, the value in the NI column displays the so-called nice value of process, which allows you to adjust the priority of a running process. Possible values range from -20 (very high priority), via 0 (standard priority) to 20 (very low priority). In our little example the xscreensaver process has a higher nice value than X, which indicates that X has a higher priority than xscreensaver.

Now, how do we make this work to our advantage when using Portage?

If you keep using your computer while compiling packages you will notice that your box is much less responsive as usal. This is caused by having two "groups" of processes with the same nice priority: your usual running tasks on one side, and emerge (and its child processes) on the other. Now, if you could renice emerge and its children to a higher nice (i.e. lower priority!) value (default is 0), compiling would inevitably take somewhat longer, but you could use your workstation without noticing much difference to its usual performance. That's what the PORTAGE_NICENESS parameter in /etc/make.conf is for:

Code Listing 1: Put this in /etc/make.conf

PORTAGE_NICENESS="15"

You can generally "renice" individual processes from the commandline, (e.g. renice 0 -p 8148 to prioritize xscreensaver in the above example), but this will not work with emerge, as Portage reads the PORTAGE_NICENESS setting from /etc/make.conf once and executes all child processes with the specified nice value.

From http://www.gentoo.org/news/en/gwn/20041101-newsletter.xml


rate this article:
current rating: average rating: 1.4 (5 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back
Please read "Why adblockers are bad".



other Ads
Stellenangebote
Stellenangebote
für Fach- und
Führungskräfte
www.nachoben.com
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
www.tracemycash.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
FeedCollector
Combine various newsfeeds to one customized webpage
www.feedcollector.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2010-09-03
bchunk - 1.2.0-r1
Ebuild name:

app-cdr/bchunk-1.2.0-r1

Description

Converts bin/cue CD-images to iso+wav/cdr

Added to portage

2010-09-03

corosync - 1.2.8
Ebuild name:

sys-cluster/corosync-1.2.8

Description

OSI Certified implementation of a complete cluster engine

Added to portage

2010-09-03

global - 5.9.2-r1
Ebuild name:

dev-util/global-5.9.2-r1

Description

GNU Global is a tag system to find the locations of a specified object in

Added to portage

2010-09-03

gradm - 2.2.0.201008292125
Ebuild name:

sys-apps/gradm-2.2.0.201008292125

Description

Administrative interface for the grsecurity Role Based Access Con

Added to portage

2010-09-03

hardened-sources - 2.6.32-r15
Ebuild name:

sys-kernel/hardened-sources-2.6.32-r15

Description

Hardened kernel sources (kernel series .)

Added to portage

2010-09-03

hardened-sources - 2.6.34-r3
Ebuild name:

sys-kernel/hardened-sources-2.6.34-r3

Description

Hardened kernel sources (kernel series .)

Added to portage

2010-09-03

kiwix - 0.9_alpha6
Ebuild name:

app-text/kiwix-0.9_alpha6

Description

A ZIM reader, especially for offline web content retrieved from Wikipedia

Added to portage

2010-09-03

lftp - 4.0.10
Ebuild name:

net-ftp/lftp-4.0.10

Description

A sophisticated ftp/sftp/http/https/torrent client and file transfer program

Added to portage

2010-09-03

nagios - 3.2.2
Ebuild name:

net-analyzer/nagios-3.2.2

Description

The Nagios metapackage - merge this to pull install all of the nagios pac

Added to portage

2010-09-03

nagios-core - 3.2.2
Ebuild name:

net-analyzer/nagios-core-3.2.2

Description

Nagios Core - Check daemon, CGIs, docs

Added to portage

2010-09-03

nbaudit - 1.0-r2
Ebuild name:

net-analyzer/nbaudit-1.0-r2

Description

NetBIOS file sharing services scanner (nat10)

Added to portage

2010-09-03

nmon - 14a
Ebuild name:

sys-process/nmon-14a

Description

Nigel's performance MONitor for CPU, memory, network, disks, etc...

Added to portage

2010-09-03

portage - 2.2_rc74
Ebuild name:

sys-apps/portage-2.2_rc74

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2010-09-03

smbnetfs - 0.5.3
Ebuild name:

net-fs/smbnetfs-0.5.3

Description

FUSE filesystem for SMB shares

Added to portage

2010-09-03

usb_modeswitch - 1.1.4
Ebuild name:

sys-apps/usb_modeswitch-1.1.4

Description

USB_ModeSwitch is a tool for controlling 'flip flop' (multiple device

Added to portage

2010-09-03

virt-manager - 0.8.5
Ebuild name:

app-emulation/virt-manager-0.8.5

Description

A graphical tool for administering virtual machines (KVM/Xen)

Added to portage

2010-09-03

virtinst - 0.500.4
Ebuild name:

app-emulation/virtinst-0.500.4

Description

Python modules for starting virtualized guest installations

Added to portage

2010-09-03

2010-09-02
URI - 1.55
Ebuild name:

dev-perl/URI-1.55

Description

A URI Perl Module

Added to portage

2010-09-02

WWW-Curl - 4.13
Ebuild name:

dev-perl/WWW-Curl-4.13

Description

Perl extension interface for libcurl

Added to portage

2010-09-02

asciitable - 0.2.6
Ebuild name:

dev-python/asciitable-0.2.6

Description

An extensible ASCII table reader

Added to portage

2010-09-02

atpy - 0.9.4
Ebuild name:

dev-python/atpy-0.9.4

Description

Astronomical tables support Python

Added to portage

2010-09-02

bti - 028
Ebuild name:

net-misc/bti-028

Description

A command line twitter/identi.ca client

Added to portage

2010-09-02

bzr-gtk - 0.99.0
Ebuild name:

dev-vcs/bzr-gtk-0.99.0

Description

A GTK+ interfaces to most Bazaar operations

Added to portage

2010-09-02

cfengine - 3.0.5_p1
Ebuild name:

net-misc/cfengine-3.0.5_p1

Description

An automated suite of programs for configuring and maintaining Unix-like

Added to portage

2010-09-02

choqok - 0.9.90
Ebuild name:

net-im/choqok-0.9.90

Description

A Free/Open Source micro-blogging client for KDE

Added to portage

2010-09-02

chromium - 6.0.472.53
Ebuild name:

www-client/chromium-6.0.472.53

Description

Open-source version of Google Chrome web browser

Added to portage

2010-09-02

feh - 1.9
Ebuild name:

media-gfx/feh-1.9

Description

A fast, lightweight imageviewer using imlib2

Added to portage

2010-09-02

freeverb3 - 2.5.8
Ebuild name:

media-libs/freeverb3-2.5.8

Description

High Quality Reverb and Impulse Response Convolution library including X

Added to portage

2010-09-02

gtk-doc - 1.15-r1
Ebuild name:

dev-util/gtk-doc-1.15-r1

Description

GTK+ Documentation Generator

Added to portage

2010-09-02

icedtea6-bin - 1.8.1-r1
Ebuild name:

dev-java/icedtea6-bin-1.8.1-r1

Description

A Gentoo-made binary build of the icedtea6 JDK

Added to portage

2010-09-02

libview - 0.6.6
Ebuild name:

x11-libs/libview-0.6.6

Description

VMware's Incredibly Exciting Widgets

Added to portage

2010-09-02

mysql - 5.1.50-r1
Ebuild name:

dev-db/mysql-5.1.50-r1

Description

Based on the eclass

Added to portage

2010-09-02

numpy - 1.5.0
Ebuild name:

dev-python/numpy-1.5.0

Description

Fast array and numerical python library

Added to portage

2010-09-02

openrc - 0.6.3
Ebuild name:

sys-apps/openrc-0.6.3

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2010-09-02

paml - 4.4c
Ebuild name:

sci-biology/paml-4.4c

Description

Phylogenetic Analysis by Maximum Likelihood

Added to portage

2010-09-02

portage - 2.2_rc73
Ebuild name:

sys-apps/portage-2.2_rc73

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2010-09-02

portpeek - 1.9.45
Ebuild name:

app-portage/portpeek-1.9.45

Description

A helper program for maintaining the package.keyword and package.unmask

Added to portage

2010-09-02

portpeek - 2.0.5
Ebuild name:

app-portage/portpeek-2.0.5

Description

A helper program for maintaining the package.keyword and package.unmask

Added to portage

2010-09-02

postgresql-base - 9.0_rc1
Ebuild name:

dev-db/postgresql-base-9.0_rc1

Description

PostgreSQL libraries and clients

Added to portage

2010-09-02

postgresql-docs - 9.0_rc1
Ebuild name:

dev-db/postgresql-docs-9.0_rc1

Description

PostgreSQL documentation

Added to portage

2010-09-02

postgresql-server - 9.0_rc1
Ebuild name:

dev-db/postgresql-server-9.0_rc1

Description

PostgreSQL server

Added to portage

2010-09-02

redet - 8.26
Ebuild name:

dev-util/redet-8.26

Description

A regular expression development and execution tool

Added to portage

2010-09-02

ruby-enterprise - 1.8.7.2010.02-r1
Ebuild name:

dev-lang/ruby-enterprise-1.8.7.2010.02-r1

Description

Ruby Enterprise Edition is a branch of Ruby including var

Added to portage

2010-09-02

sane-backends - 1.0.21-r1
Ebuild name:

media-gfx/sane-backends-1.0.21-r1

Description

Scanner Access Now Easy - Backends

Added to portage

2010-09-02

tripwire - 2.4.2-r1
Ebuild name:

app-admin/tripwire-2.4.2-r1

Description

Open Source File Integrity Checker and IDS

Added to portage

2010-09-02

vo - 0.6
Ebuild name:

dev-python/vo-0.6

Description

Python module to read VOTABLE into a Numpy recarray

Added to portage

2010-09-02

xen-sources - 2.6.34-r3
Ebuild name:

sys-kernel/xen-sources-2.6.34-r3

Description

Full sources for a dom0/domU Linux kernel to run under Xen

Added to portage

2010-09-02

yaml - 0.72
Ebuild name:

dev-perl/yaml-0.72

Description

YAML Ain't Markup Language (tm)

Added to portage

2010-09-02

zen-sources - 2.6.35_p2
Ebuild name:

sys-kernel/zen-sources-2.6.35_p2

Description

The Zen Kernel Sources v2.6

Added to portage

2010-09-02

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004 S&P Softwaredesign
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 18.5 ms
system status display
Stellenangebote
Ärger mit Freenet.de