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:

82867

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-01-19
amarok - 3.3.2
Ebuild name:

media-sound/amarok-3.3.2

Description

Advanced audio player based on KDE Frameworks

Added to portage

2026-01-19

apache-arrow - 23.0.0
Ebuild name:

dev-libs/apache-arrow-23.0.0

Description

A cross-language development platform for in-memory data

Added to portage

2026-01-19

bandit - 1.9.3
Ebuild name:

dev-python/bandit-1.9.3

Description

A security linter from OpenStack Security

Added to portage

2026-01-19

black - 26.1.0
Ebuild name:

dev-python/black-26.1.0

Description

The uncompromising Python code formatter

Added to portage

2026-01-19

cclive - 0.9.3-r3
Ebuild name:

media-video/cclive-0.9.3-r3

Description

Command line tool for extracting videos from various websites

Added to portage

2026-01-19

colordiff - 1.0.22
Ebuild name:

app-misc/colordiff-1.0.22

Description

Colorizes output of diff

Added to portage

2026-01-19

dill - 0.4.1
Ebuild name:

dev-python/dill-0.4.1

Description

Serialize all of Python (almost)

Added to portage

2026-01-19

discord - 0.0.120
Ebuild name:

net-im/discord-0.0.120

Description

All-in-one voice and text chat for gamers

Added to portage

2026-01-19

ebuild-mode - 1.81
Ebuild name:

app-xemacs/ebuild-mode-1.81

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2026-01-19

gcc - 13.4.1_p20260115
Ebuild name:

sys-devel/gcc-13.4.1_p20260115

Description

The GNU Compiler Collection

Added to portage

2026-01-19

gcc - 14.3.1_p20260116
Ebuild name:

sys-devel/gcc-14.3.1_p20260116

Description

The GNU Compiler Collection

Added to portage

2026-01-19

gcc - 15.2.1_p20260117
Ebuild name:

sys-devel/gcc-15.2.1_p20260117

Description

The GNU Compiler Collection

Added to portage

2026-01-19

gcc - 16.0.1_p20260118
Ebuild name:

sys-devel/gcc-16.0.1_p20260118

Description

The GNU Compiler Collection

Added to portage

2026-01-19

git-sources - 6.19_rc6
Ebuild name:

sys-kernel/git-sources-6.19_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2026-01-19

gnome-nettool - 42.0-r1
Ebuild name:

net-analyzer/gnome-nettool-42.0-r1

Description

Graphical front-ends to various networking command-line

Added to portage

2026-01-19

grub - 2.14
Ebuild name:

sys-boot/grub-2.14

Description

GNU GRUB boot loader

Added to portage

2026-01-19

icdiff - 2.0.9
Ebuild name:

app-misc/icdiff-2.0.9

Description

Colourized diff that supports side-by-side diffing

Added to portage

2026-01-19

irker - 2.24-r1
Ebuild name:

net-irc/irker-2.24-r1

Description

Submission tools for IRC notifications

Added to portage

2026-01-19

irssi - 1.4.5-r2
Ebuild name:

net-irc/irssi-1.4.5-r2

Description

A modular textUI IRC client with IPv6 support

Added to portage

2026-01-19

megatest - 0.6.0
Ebuild name:

dev-ruby/megatest-0.6.0

Description

A test-unit like framework with a focus on usability, designed with CI in m

Added to portage

2026-01-19

meson - 1.10.1
Ebuild name:

dev-build/meson-1.10.1

Description

Open source build system

Added to portage

2026-01-19

mu - 1.12.15
Ebuild name:

net-mail/mu-1.12.15

Description

Set of tools to deal with Maildirs, in particular, searching and indexing

Added to portage

2026-01-19

networkmanager-strongswan - 1.6.4
Ebuild name:

net-vpn/networkmanager-strongswan-1.6.4

Description

NetworkManager StrongSwan plugin

Added to portage

2026-01-19

openpgp-keys-bennoschulenberg - 20260119
Ebuild name:

sec-keys/openpgp-keys-bennoschulenberg-20260119

Description

OpenPGP key used by Benno Schulenberg

Added to portage

2026-01-19

openpgp-keys-colordiff - 20260118
Ebuild name:

sec-keys/openpgp-keys-colordiff-20260118

Description

OpenPGP keys used to sign colordiff releases

Added to portage

2026-01-19

openpgp-keys-fche - 20260119
Ebuild name:

sec-keys/openpgp-keys-fche-20260119

Description

OpenPGP key used by Frank Ch. Eigler (fche)

Added to portage

2026-01-19

openpgp-keys-gentoo-developers - 20260112
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20260112

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-19

openpgp-keys-gmp - 20250628
Ebuild name:

sec-keys/openpgp-keys-gmp-20250628

Description

OpenPGP keys used by Niels Möller (to sign GMP releases)

Added to portage

2026-01-19

openpgp-keys-irssi - 20260119
Ebuild name:

sec-keys/openpgp-keys-irssi-20260119

Description

OpenPGP keys used for irssi releases

Added to portage

2026-01-19

openpgp-keys-mpc - 20260118
Ebuild name:

sec-keys/openpgp-keys-mpc-20260118

Description

OpenPGP keys used by Andreas Enge (to sign MPC releases)

Added to portage

2026-01-19

openpgp-keys-networkmanager-strongswan - 20260119
Ebuild name:

sec-keys/openpgp-keys-networkmanager-strongswan-20260119

Description

OpenPGP keys used for networkmanager-stron

Added to portage

2026-01-19

openpgp-keys-openvpn - 20260119
Ebuild name:

sec-keys/openpgp-keys-openvpn-20260119

Description

OpenPGP keys used for OpenVPN releases

Added to portage

2026-01-19

openpgp-keys-streamlink - 20260118
Ebuild name:

sec-keys/openpgp-keys-streamlink-20260118

Description

OpenPGP keys used for streamlink releases

Added to portage

2026-01-19

openpgp-keys-strongswan - 20260119
Ebuild name:

sec-keys/openpgp-keys-strongswan-20260119

Description

OpenPGP keys used for strongswan releases

Added to portage

2026-01-19

osm - 2.0
Ebuild name:

app-emacs/osm-2.0

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-19

poetry - 2.3.0
Ebuild name:

dev-python/poetry-2.3.0

Description

A frontend for poetry - a python dependency management and packaging tool

Added to portage

2026-01-19

poetry-core - 2.3.0
Ebuild name:

dev-python/poetry-core-2.3.0

Description

Poetry PEP 517 Build Backend

Added to portage

2026-01-19

poetry-plugin-export - 1.10.0
Ebuild name:

dev-python/poetry-plugin-export-1.10.0

Description

A plugin that allows the export of locked packages to variou

Added to portage

2026-01-19

portage - 3.0.76
Ebuild name:

sys-apps/portage-3.0.76

Description

The package management and distribution system for Gentoo

Added to portage

2026-01-19

pyarrow - 23.0.0
Ebuild name:

dev-python/pyarrow-23.0.0

Description

Python library for Apache Arrow

Added to portage

2026-01-19

safeeyes - 3.3.1
Ebuild name:

x11-misc/safeeyes-3.3.1

Description

Linux alternative to EyeLeo

Added to portage

2026-01-19

selenium - 4.40.0
Ebuild name:

dev-python/selenium-4.40.0

Description

Python language binding for Selenium Remote Control

Added to portage

2026-01-19

selenium-manager - 4.40.0
Ebuild name:

dev-util/selenium-manager-4.40.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2026-01-19

soupsieve - 2.8.2
Ebuild name:

dev-python/soupsieve-2.8.2

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-01-19

starlette - 0.52.0
Ebuild name:

dev-python/starlette-0.52.0

Description

The little ASGI framework that shines

Added to portage

2026-01-19

strawberry - 1.2.17
Ebuild name:

media-sound/strawberry-1.2.17

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2026-01-19

streamlink - 8.1.2
Ebuild name:

net-misc/streamlink-8.1.2

Description

CLI for extracting streams from websites to a video player of your choice

Added to portage

2026-01-19

strongswan - 6.0.4
Ebuild name:

net-vpn/strongswan-6.0.4

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2026-01-19

units - 2.25
Ebuild name:

sci-calculators/units-2.25

Description

Unit conversion program

Added to portage

2026-01-19

vivaldi-snapshot - 7.8.3921.9
Ebuild name:

www-client/vivaldi-snapshot-7.8.3921.9

Description

A browser for our friends

Added to portage

2026-01-19

2026-01-18
async-lru - 2.1.0
Ebuild name:

dev-python/async-lru-2.1.0

Description

Simple lru_cache for asyncio

Added to portage

2026-01-18

blosc - 1.11.4
Ebuild name:

dev-python/blosc-1.11.4

Description

High performance compressor optimized for binary data

Added to portage

2026-01-18

boost-m4 - 0.4_p20221019-r1
Ebuild name:

dev-build/boost-m4-0.4_p20221019-r1

Description

Another set of autoconf macros for compiling against boost

Added to portage

2026-01-18

connection_pool - 3.0.2-r1
Ebuild name:

dev-ruby/connection_pool-3.0.2-r1

Description

Generic connection pooling for Ruby

Added to portage

2026-01-18

dulwich - 1.0.0
Ebuild name:

dev-python/dulwich-1.0.0

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-01-18

hg-evolve - 11.1.10
Ebuild name:

dev-vcs/hg-evolve-11.1.10

Description

enables the changeset evolution feature of Mercurial

Added to portage

2026-01-18

imapclient - 3.1.0
Ebuild name:

dev-python/imapclient-3.1.0

Description

easy-to-use, pythonic, and complete IMAP client library

Added to portage

2026-01-18

maxitest - 6.2.0
Ebuild name:

dev-ruby/maxitest-6.2.0

Description

Minitest + all the features you always wanted

Added to portage

2026-01-18

mercurial - 7.1.2-r1
Ebuild name:

dev-vcs/mercurial-7.1.2-r1

Description

Scalable distributed SCM

Added to portage

2026-01-18

moto - 5.1.20
Ebuild name:

dev-python/moto-5.1.20

Description

Mock library for boto

Added to portage

2026-01-18

opensmtpd - 7.8.0_p0
Ebuild name:

mail-mta/opensmtpd-7.8.0_p0

Description

Lightweight but featured SMTP daemon from OpenBSD

Added to portage

2026-01-18

sbsigntools - 0.9.5
Ebuild name:

app-crypt/sbsigntools-0.9.5

Description

Utilities for signing and verifying files for UEFI Secure Boot

Added to portage

2026-01-18

scummvm - 2026.1.0
Ebuild name:

games-engines/scummvm-2026.1.0

Description

Reimplementation of the SCUMM game engine used in Lucasarts adventur

Added to portage

2026-01-18

trimesh - 4.11.1
Ebuild name:

dev-python/trimesh-4.11.1

Description

Python library for loading and using triangular meshes

Added to portage

2026-01-18

untrunc - 0_pre20260112
Ebuild name:

media-video/untrunc-0_pre20260112

Description

Restore truncated mp4/mov files

Added to portage

2026-01-18

vdr-fritzbox - 1.5.8
Ebuild name:

media-plugins/vdr-fritzbox-1.5.8

Description

VDR Plugin Inform about incoming phone-calls and use the fritz pho

Added to portage

2026-01-18

xmlschema - 4.3.1
Ebuild name:

dev-python/xmlschema-4.3.1

Description

An XML Schema validator and decoder

Added to portage

2026-01-18

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