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:

85216

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


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

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-05-19
2026-05-18
RyzenAdj - 0.19.0
Ebuild name:

sys-power/RyzenAdj-0.19.0

Description

The power management tool for mobile and desktop Ryzen APUs

Added to portage

2026-05-18

apparmor - 4.1.7
Ebuild name:

sys-apps/apparmor-4.1.7

Description

Userspace utils and init scripts for the AppArmor application security syst

Added to portage

2026-05-18

apparmor-profiles - 4.1.7
Ebuild name:

sec-policy/apparmor-profiles-4.1.7

Description

A collection of profiles for the AppArmor application security s

Added to portage

2026-05-18

apparmor-utils - 4.1.7
Ebuild name:

sys-apps/apparmor-utils-4.1.7

Description

Additional userspace utils to assist with AppArmor profile management

Added to portage

2026-05-18

bird - 2.17.3-r1
Ebuild name:

net-misc/bird-2.17.3-r1

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-18

bird - 2.17.4
Ebuild name:

net-misc/bird-2.17.4

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-18

bird - 2.18.1
Ebuild name:

net-misc/bird-2.18.1

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-18

bird - 3.1.5-r1
Ebuild name:

net-misc/bird-3.1.5-r1

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-18

bird - 3.1.6
Ebuild name:

net-misc/bird-3.1.6

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-18

bird - 3.2.1
Ebuild name:

net-misc/bird-3.2.1

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-18

boost - 1.91.0
Ebuild name:

dev-libs/boost-1.91.0

Description

Boost Libraries for C++

Added to portage

2026-05-18

clog - 1.3.0-r2
Ebuild name:

app-admin/clog-1.3.0-r2

Description

Colorized log tail utility

Added to portage

2026-05-18

dbus-fast - 4.2.8
Ebuild name:

dev-python/dbus-fast-4.2.8

Description

A faster version of dbus-next

Added to portage

2026-05-18

dbus-fast - 4.3.0
Ebuild name:

dev-python/dbus-fast-4.3.0

Description

A faster version of dbus-next

Added to portage

2026-05-18

decorator - 5.3.0
Ebuild name:

dev-python/decorator-5.3.0

Description

Simplifies the usage of decorators for the average programmer

Added to portage

2026-05-18

dist-kernel - 5.10.256_p1
Ebuild name:

virtual/dist-kernel-5.10.256_p1

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-18

dist-kernel - 5.15.207_p1
Ebuild name:

virtual/dist-kernel-5.15.207_p1

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-18

dist-kernel - 6.1.173_p1
Ebuild name:

virtual/dist-kernel-6.1.173_p1

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-18

dist-kernel - 6.12.90
Ebuild name:

virtual/dist-kernel-6.12.90

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-18

dist-kernel - 6.18.32
Ebuild name:

virtual/dist-kernel-6.18.32

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-18

dist-kernel - 6.6.140
Ebuild name:

virtual/dist-kernel-6.6.140

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-18

dist-kernel - 7.0.9
Ebuild name:

virtual/dist-kernel-7.0.9

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-18

facter - 4.10.0-r1
Ebuild name:

dev-ruby/facter-4.10.0-r1

Description

A cross-platform ruby library for retrieving facts from operating systems

Added to portage

2026-05-18

firefox-bin - 151.0
Ebuild name:

www-client/firefox-bin-151.0

Description

Firefox Web Browser

Added to portage

2026-05-18

gcc - 17.0.0_p20260517
Ebuild name:

sys-devel/gcc-17.0.0_p20260517

Description

The GNU Compiler Collection

Added to portage

2026-05-18

genshi - 0.7.11
Ebuild name:

dev-python/genshi-0.7.11

Description

Python toolkit for stream-based generation of output for the web

Added to portage

2026-05-18

gentoo-kernel - 5.10.256_p1
Ebuild name:

sys-kernel/gentoo-kernel-5.10.256_p1

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel - 5.15.207_p1
Ebuild name:

sys-kernel/gentoo-kernel-5.15.207_p1

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel - 6.1.173_p1
Ebuild name:

sys-kernel/gentoo-kernel-6.1.173_p1

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel - 6.12.90
Ebuild name:

sys-kernel/gentoo-kernel-6.12.90

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel - 6.18.32
Ebuild name:

sys-kernel/gentoo-kernel-6.18.32

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel - 6.6.140
Ebuild name:

sys-kernel/gentoo-kernel-6.6.140

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel - 7.0.9
Ebuild name:

sys-kernel/gentoo-kernel-7.0.9

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel-bin - 5.10.256_p1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.256_p1

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel-bin - 5.15.207_p1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.207_p1

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel-bin - 6.1.173_p1
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.173_p1

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel-bin - 6.12.90
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.90

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel-bin - 6.18.32
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.32

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel-bin - 6.6.140
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.140

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-18

gentoo-kernel-bin - 7.0.9
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.0.9

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-18

gentoo-sources - 6.12.90
Ebuild name:

sys-kernel/gentoo-sources-6.12.90

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-18

gentoo-sources - 6.18.32
Ebuild name:

sys-kernel/gentoo-sources-6.18.32

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-18

gentoo-sources - 6.6.140
Ebuild name:

sys-kernel/gentoo-sources-6.6.140

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-18

gentoo-sources - 7.0.9
Ebuild name:

sys-kernel/gentoo-sources-7.0.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-18

git-sources - 7.1_rc4
Ebuild name:

sys-kernel/git-sources-7.1_rc4

Description

The very latest -git version of the Linux kernel

Added to portage

2026-05-18

gnuradio - 3.10.12.0-r3
Ebuild name:

net-wireless/gnuradio-3.10.12.0-r3

Description

Toolkit that provides signal processing blocks to implement soft

Added to portage

2026-05-18

gpxsee - 16.7
Ebuild name:

sci-geosciences/gpxsee-16.7

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2026-05-18

gr-iqbal - 0.38.3-r1
Ebuild name:

net-wireless/gr-iqbal-0.38.3-r1

Description

gnuradio I/Q balancing

Added to portage

2026-05-18

hd-idle - 1.05-r5
Ebuild name:

sys-apps/hd-idle-1.05-r5

Description

Utility for spinning down hard disks after a period of idle time

Added to portage

2026-05-18

json-schema - 5.2.2
Ebuild name:

dev-ruby/json-schema-5.2.2

Description

Ruby JSON Schema Validator

Added to portage

2026-05-18

libapparmor - 4.1.7
Ebuild name:

sys-libs/libapparmor-4.1.7

Description

Library to support AppArmor userspace utilities

Added to portage

2026-05-18

libfido2 - 1.17.0
Ebuild name:

dev-libs/libfido2-1.17.0

Description

Provides library functionality for FIDO 2.0

Added to portage

2026-05-18

libredwg - 0.13.4
Ebuild name:

media-gfx/libredwg-0.13.4

Description

C library to handle DWG files

Added to portage

2026-05-18

lmod - 9.2.1
Ebuild name:

sys-cluster/lmod-9.2.1

Description

Environment Module System based on Lua

Added to portage

2026-05-18

mirrorselect - 2.6.4
Ebuild name:

app-portage/mirrorselect-2.6.4

Description

Tool to help select distfiles mirrors for Gentoo

Added to portage

2026-05-18

monkeysphere - 0.44-r2
Ebuild name:

app-crypt/monkeysphere-0.44-r2

Description

Leverage the OpenPGP web of trust for OpenSSH and Web authentication

Added to portage

2026-05-18

openfact - 5.6.1
Ebuild name:

dev-ruby/openfact-5.6.1

Description

OpenFact, a system inventory tool (community implementation of Facter)

Added to portage

2026-05-18

openvox - 8.27.0
Ebuild name:

app-admin/openvox-8.27.0

Description

OpenVox agent and apply tools for Puppet-compatible configuration manageme

Added to portage

2026-05-18

postfix - 3.11.3
Ebuild name:

mail-mta/postfix-3.11.3

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-05-18

postfix - 3.12_pre20260516
Ebuild name:

mail-mta/postfix-3.12_pre20260516

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-05-18

python-multipart - 0.0.29
Ebuild name:

dev-python/python-multipart-0.0.29

Description

A streaming multipart parser for Python

Added to portage

2026-05-18

qtpy - 2.4.3-r3
Ebuild name:

dev-python/qtpy-2.4.3-r3

Description

Abstraction layer on top of PyQt and PySide with additional custom QWidget

Added to portage

2026-05-18

raspberrypi-firmware - 1.20260513
Ebuild name:

sys-boot/raspberrypi-firmware-1.20260513

Description

Raspberry Pi (all versions) bootloader and GPU firmware

Added to portage

2026-05-18

raspberrypi-image - 6.18.29_p20260513
Ebuild name:

sys-kernel/raspberrypi-image-6.18.29_p20260513

Description

Raspberry Pi (all versions) kernel and modules

Added to portage

2026-05-18

raspberrypi-sources - 6.18.29_p20260513
Ebuild name:

sys-kernel/raspberrypi-sources-6.18.29_p20260513

Description

Raspberry Pi kernel sources

Added to portage

2026-05-18

repoze-lru - 0.8
Ebuild name:

dev-python/repoze-lru-0.8

Description

A tiny LRU cache implementation and decorator

Added to portage

2026-05-18

rpi-eeprom - 28.17_p1
Ebuild name:

dev-embedded/rpi-eeprom-28.17_p1

Description

Updater for Raspberry Pi 4/5 bootloader and the VL805 USB controll

Added to portage

2026-05-18

scanf - 1.0.0
Ebuild name:

dev-ruby/scanf-1.0.0

Description

Ruby implementation of the C function scanf(3)

Added to portage

2026-05-18

srs - 6.0.48
Ebuild name:

media-video/srs-6.0.48

Description

Simple Realtime media Server

Added to portage

2026-05-18

tavern - 3.5.0
Ebuild name:

dev-python/tavern-3.5.0

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-05-18

vanilla-kernel - 6.12.90
Ebuild name:

sys-kernel/vanilla-kernel-6.12.90

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-18

vanilla-kernel - 6.18.32
Ebuild name:

sys-kernel/vanilla-kernel-6.18.32

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-18

vanilla-kernel - 6.6.140
Ebuild name:

sys-kernel/vanilla-kernel-6.6.140

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-18

vanilla-kernel - 7.0.9
Ebuild name:

sys-kernel/vanilla-kernel-7.0.9

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-18

yacas - 1.9.1-r3
Ebuild name:

sci-mathematics/yacas-1.9.1-r3

Description

General purpose computer algebra system

Added to portage

2026-05-18

zedis - 0.4.0
Ebuild name:

dev-db/zedis-0.4.0

Description

Blazing-fast native Redis GUI built with Rust and GPUI

Added to portage

2026-05-18

zeroconf - 0.149.5
Ebuild name:

dev-python/zeroconf-0.149.5

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi comp

Added to portage

2026-05-18

zipstream-ng - 1.9.2
Ebuild name:

dev-python/zipstream-ng-1.9.2

Description

A modern and easy to use streamable zip file generator

Added to portage

2026-05-18

zynaddsubfx - 3.0.6-r8
Ebuild name:

media-sound/zynaddsubfx-3.0.6-r8

Description

Software synthesizer capable of making a countless number of instr

Added to portage

2026-05-18

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 50.8 ms