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:

83868

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-03-21
asyncstdlib - 3.14.0
Ebuild name:

dev-python/asyncstdlib-3.14.0

Description

The missing async toolbox

Added to portage

2026-03-21

autoconf - 2.73
Ebuild name:

dev-build/autoconf-2.73

Description

Used to create autoconfiguration files

Added to portage

2026-03-21

autoconf-wrapper - 20260320
Ebuild name:

dev-build/autoconf-wrapper-20260320

Description

Wrapper for autoconf to manage multiple autoconf versions

Added to portage

2026-03-21

awscli - 1.44.63
Ebuild name:

app-admin/awscli-1.44.63

Description

Universal Command Line Environment for AWS

Added to portage

2026-03-21

boto3 - 1.42.73
Ebuild name:

dev-python/boto3-1.42.73

Description

The AWS SDK for Python

Added to portage

2026-03-21

botocore - 1.42.73
Ebuild name:

dev-python/botocore-1.42.73

Description

Low-level, data-driven core of boto 3

Added to portage

2026-03-21

devcontainer - 0.84.1
Ebuild name:

app-containers/devcontainer-0.84.1

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-03-21

dnsdist - 2.0.2-r1
Ebuild name:

net-dns/dnsdist-2.0.2-r1

Description

A highly DNS-, DoS- and abuse-aware loadbalancer

Added to portage

2026-03-21

eselect - 1.4.32
Ebuild name:

app-admin/eselect-1.4.32

Description

Gentoo's multi-purpose configuration and management tool

Added to portage

2026-03-21

importlib-metadata - 8.9.0
Ebuild name:

dev-python/importlib-metadata-8.9.0

Description

Read metadata from Python packages

Added to portage

2026-03-21

importlib-metadata - 9.0.0
Ebuild name:

dev-python/importlib-metadata-9.0.0

Description

Read metadata from Python packages

Added to portage

2026-03-21

jaraco-context - 6.1.2
Ebuild name:

dev-python/jaraco-context-6.1.2

Description

Context managers by jaraco

Added to portage

2026-03-21

jsonpointer - 3.1.0
Ebuild name:

dev-python/jsonpointer-3.1.0

Description

Identify specific nodes in a JSON document (according to draft 08)

Added to portage

2026-03-21

kitty - 0.46.2
Ebuild name:

x11-terms/kitty-0.46.2

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-03-21

kitty-shell-integration - 0.46.2
Ebuild name:

x11-terms/kitty-shell-integration-0.46.2

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-03-21

kitty-terminfo - 0.46.2
Ebuild name:

x11-terms/kitty-terminfo-0.46.2

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-03-21

libhtp - 0.5.53
Ebuild name:

net-libs/libhtp-0.5.53

Description

Security-aware parser for the HTTP protocol and the related bits and pieces

Added to portage

2026-03-21

mesa - 26.0.3
Ebuild name:

media-libs/mesa-26.0.3

Description

OpenGL-like graphic library for Linux

Added to portage

2026-03-21

mesa_clc - 26.0.3
Ebuild name:

dev-util/mesa_clc-26.0.3

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-03-21

mirrorselect - 2.6.2
Ebuild name:

app-portage/mirrorselect-2.6.2

Description

Tool to help select distfiles mirrors for Gentoo

Added to portage

2026-03-21

multi-term - 1.4-r1
Ebuild name:

app-emacs/multi-term-1.4-r1

Description

Manage multiple terminal buffers in Emacs

Added to portage

2026-03-21

multiple-cursors - 1.5.0
Ebuild name:

app-emacs/multiple-cursors-1.5.0

Description

Multiple cursors for Emacs

Added to portage

2026-03-21

muse - 3.20.2
Ebuild name:

app-emacs/muse-3.20.2

Description

An authoring and publishing environment for Emacs

Added to portage

2026-03-21

musl - 1.2.6
Ebuild name:

sys-libs/musl-1.2.6

Description

Light, fast and, simple C library focused on standards-conformance and safety

Added to portage

2026-03-21

openpgp-keys-oisf - 20260319
Ebuild name:

sec-keys/openpgp-keys-oisf-20260319

Description

OpenPGP key used by Open InfoSec Foundation (OISF) software rel

Added to portage

2026-03-21

openrc - 0.63-r2
Ebuild name:

sys-apps/openrc-0.63-r2

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2026-03-21

pbs-installer - 2026.3.20
Ebuild name:

dev-python/pbs-installer-2026.3.20

Description

Installer for Python Build Standalone

Added to portage

2026-03-21

picard - 3.0.0_alpha4
Ebuild name:

media-sound/picard-3.0.0_alpha4

Description

Cross-platform music tagger

Added to portage

2026-03-21

pipdeptree - 2.33.0
Ebuild name:

dev-python/pipdeptree-2.33.0

Description

Utility for displaying installed packages in a dependency tree

Added to portage

2026-03-21

protobuf - 7.34.1
Ebuild name:

dev-python/protobuf-7.34.1

Description

Google's Protocol Buffers - Python bindings

Added to portage

2026-03-21

pyicu - 2.16.2
Ebuild name:

dev-python/pyicu-2.16.2

Description

Python bindings for dev-libs/icu

Added to portage

2026-03-21

pytest-check - 2.7.7
Ebuild name:

dev-python/pytest-check-2.7.7

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-03-21

qtile - 0.35.0
Ebuild name:

x11-wm/qtile-0.35.0

Description

A full-featured, hackable tiling window manager written in Python

Added to portage

2026-03-21

seedfiles - 9999
Ebuild name:

sys-apps/seedfiles-9999

Description

Portable drop-in reimplementation of systemd-tmpfiles

Added to portage

2026-03-21

solarus-quest-editor - 2.0.3-r2
Ebuild name:

games-misc/solarus-quest-editor-2.0.3-r2

Description

Quest editor for Solarus game engine

Added to portage

2026-03-21

sphinx-autodoc-typehints - 3.9.9
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.9.9

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-03-21

suricata - 7.0.15
Ebuild name:

net-analyzer/suricata-7.0.15

Description

High performance Network IDS, IPS and Network Security Monitoring engi

Added to portage

2026-03-21

systemd - 260-r2
Ebuild name:

sys-apps/systemd-260-r2

Description

System and service manager for Linux

Added to portage

2026-03-21

systemd-utils - 260-r1
Ebuild name:

sys-apps/systemd-utils-260-r1

Description

Utilities split out from systemd for OpenRC users

Added to portage

2026-03-21

texlive-core - 2024-r2
Ebuild name:

app-text/texlive-core-2024-r2

Description

A complete TeX distribution

Added to portage

2026-03-21

tmpfiles - 0-r7
Ebuild name:

virtual/tmpfiles-0-r7

Description

Virtual to select between different tmpfiles.d handlers

Added to portage

2026-03-21

toml-fmt-common - 1.3.2
Ebuild name:

dev-python/toml-fmt-common-1.3.2

Description

Common logic to the TOML formatter

Added to portage

2026-03-21

treepy - 0.1.3
Ebuild name:

app-emacs/treepy-0.1.3

Description

Generic tree traversing tools for Emacs Lisp

Added to portage

2026-03-21

vit - 2.3.4
Ebuild name:

app-misc/vit-2.3.4

Description

A lightweight, fast, curses-based front end to Taskwarrior

Added to portage

2026-03-21

warzone2100 - 4.6.1-r1
Ebuild name:

games-strategy/warzone2100-4.6.1-r1

Description

3D real-time strategy game

Added to portage

2026-03-21

wayland - 1.25.0
Ebuild name:

dev-libs/wayland-1.25.0

Description

Wayland protocol libraries

Added to portage

2026-03-21

wayland-scanner - 1.25.0
Ebuild name:

dev-util/wayland-scanner-1.25.0

Description

wayland-scanner tool

Added to portage

2026-03-21

whenever - 0.10.0_beta1
Ebuild name:

dev-python/whenever-0.10.0_beta1

Description

Modern datetime library for Python

Added to portage

2026-03-21

wine-staging - 11.5
Ebuild name:

app-emulation/wine-staging-11.5

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patch

Added to portage

2026-03-21

wine-vanilla - 11.5
Ebuild name:

app-emulation/wine-vanilla-11.5

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2026-03-21

2026-03-20
accel-ppp - 1.14.0-r2
Ebuild name:

net-dialup/accel-ppp-1.14.0-r2

Description

High performance PPTP/L2TP/SSTP/PPPoE/IPoE server

Added to portage

2026-03-20

attrs - 26.1.0
Ebuild name:

dev-python/attrs-26.1.0

Description

Attributes without boilerplate

Added to portage

2026-03-20

awscli - 1.44.62
Ebuild name:

app-admin/awscli-1.44.62

Description

Universal Command Line Environment for AWS

Added to portage

2026-03-20

boto3 - 1.42.72
Ebuild name:

dev-python/boto3-1.42.72

Description

The AWS SDK for Python

Added to portage

2026-03-20

botocore - 1.42.72
Ebuild name:

dev-python/botocore-1.42.72

Description

Low-level, data-driven core of boto 3

Added to portage

2026-03-20

chibi - 0.12
Ebuild name:

dev-scheme/chibi-0.12

Description

Minimal Scheme implementation for use as an extension language

Added to portage

2026-03-20

coreutils - 9.9-r12
Ebuild name:

sys-apps/coreutils-9.9-r12

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-03-20

deno-bin - 2.7.7
Ebuild name:

dev-lang/deno-bin-2.7.7

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-03-20

discord - 0.0.129
Ebuild name:

net-im/discord-0.0.129

Description

All-in-one voice and text chat for gamers

Added to portage

2026-03-20

dist-kernel - 6.18.19
Ebuild name:

virtual/dist-kernel-6.18.19

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-03-20

dist-kernel - 6.19.9
Ebuild name:

virtual/dist-kernel-6.19.9

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-03-20

gallery-dl - 1.31.10
Ebuild name:

net-misc/gallery-dl-1.31.10

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-03-20

gentoo-kernel - 6.18.19
Ebuild name:

sys-kernel/gentoo-kernel-6.18.19

Description

Linux kernel built with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel - 6.19.9
Ebuild name:

sys-kernel/gentoo-kernel-6.19.9

Description

Linux kernel built with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel-bin - 6.18.19
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.19

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel-bin - 6.19.9
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.19.9

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-03-20

gentoo-sources - 6.18.19
Ebuild name:

sys-kernel/gentoo-sources-6.18.19

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-03-20

gentoo-sources - 6.19.9
Ebuild name:

sys-kernel/gentoo-sources-6.19.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-03-20

gmpy2 - 2.4.0_alpha0
Ebuild name:

dev-python/gmpy2-2.4.0_alpha0

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2026-03-20

godot - 4.5.2
Ebuild name:

dev-games/godot-4.5.2

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2026-03-20

haproxy - 2.8.20
Ebuild name:

net-proxy/haproxy-2.8.20

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

haproxy - 3.0.19
Ebuild name:

net-proxy/haproxy-3.0.19

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

haproxy - 3.2.15
Ebuild name:

net-proxy/haproxy-3.2.15

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

importlib-metadata - 8.8.0
Ebuild name:

dev-python/importlib-metadata-8.8.0

Description

Read metadata from Python packages

Added to portage

2026-03-20

jingoo - 1.5.2
Ebuild name:

dev-ml/jingoo-1.5.2

Description

OCaml template engine almost compatible with Jinja2

Added to portage

2026-03-20

keychain - 2.9.8
Ebuild name:

net-misc/keychain-2.9.8

Description

Agent manager for OpenSSH, ssh.com, Sun SSH, and GnuPG

Added to portage

2026-03-20

mpc - 1.4.0
Ebuild name:

dev-libs/mpc-1.4.0

Description

A library for multiprecision complex arithmetic with exact rounding

Added to portage

2026-03-20

multi-term - 1.4-r1
Ebuild name:

app-emacs/multi-term-1.4-r1

Description

Manage multiple terminal buffers in Emacs

Added to portage

2026-03-20

pandoc-bin - 3.9.0.2
Ebuild name:

app-text/pandoc-bin-3.9.0.2

Description

Conversion between markup formats (binary package)

Added to portage

2026-03-20

pipdeptree - 2.32.0
Ebuild name:

dev-python/pipdeptree-2.32.0

Description

Utility for displaying installed packages in a dependency tree

Added to portage

2026-03-20

pwsh - 7.6
Ebuild name:

virtual/pwsh-7.6

Description

Virtual for PowerShell

Added to portage

2026-03-20

pwsh - 7.6.0
Ebuild name:

app-shells/pwsh-7.6.0

Description

Cross-platform automation and configuration tool

Added to portage

2026-03-20

pwsh-bin - 7.6.0
Ebuild name:

app-shells/pwsh-bin-7.6.0

Description

Cross-platform automation and configuration tool (binary package)

Added to portage

2026-03-20

pysubs2 - 1.8.1
Ebuild name:

dev-python/pysubs2-1.8.1

Description

Python library for editing subtitle files

Added to portage

2026-03-20

ruff - 0.15.7
Ebuild name:

dev-util/ruff-0.15.7

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-03-20

sabctools - 9.4.0
Ebuild name:

dev-python/sabctools-9.4.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-03-20

scitokens-cpp - 1.4.1
Ebuild name:

dev-cpp/scitokens-cpp-1.4.1

Description

C++ implementation of the SciTokens library with a C library interface

Added to portage

2026-03-20

setuptools-scm - 10.0.1
Ebuild name:

dev-python/setuptools-scm-10.0.1

Description

Manage versions by scm tags via setuptools

Added to portage

2026-03-20

shell-maker - 0.89.2
Ebuild name:

app-emacs/shell-maker-0.89.2

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-03-20

simdjson - 4.4.2
Ebuild name:

dev-libs/simdjson-4.4.2

Description

SIMD accelerated C++ JSON library

Added to portage

2026-03-20

systemd-initctl - 4
Ebuild name:

sys-apps/systemd-initctl-4

Description

initctl Compatibility Daemon

Added to portage

2026-03-20

tox - 4.50.3
Ebuild name:

dev-python/tox-4.50.3

Description

virtualenv-based automation of test activities

Added to portage

2026-03-20

unifi - 10.1.89
Ebuild name:

net-wireless/unifi-10.1.89

Description

A Management Controller for Ubiquiti Networks UniFi APs

Added to portage

2026-03-20

uv - 0.10.12
Ebuild name:

dev-python/uv-0.10.12

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-03-20

uv-build - 0.10.12
Ebuild name:

dev-python/uv-build-0.10.12

Description

PEP517 uv build backend

Added to portage

2026-03-20

vanilla-kernel - 6.18.19
Ebuild name:

sys-kernel/vanilla-kernel-6.18.19

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-03-20

vanilla-kernel - 6.19.9
Ebuild name:

sys-kernel/vanilla-kernel-6.19.9

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-03-20

vcs-versioning - 1.0.1
Ebuild name:

dev-python/vcs-versioning-1.0.1

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-03-20

vivaldi - 7.9.3970.39
Ebuild name:

www-client/vivaldi-7.9.3970.39

Description

A browser for our friends

Added to portage

2026-03-20

whenever - 0.10.0_alpha1
Ebuild name:

dev-python/whenever-0.10.0_alpha1

Description

Modern datetime library for Python

Added to portage

2026-03-20

whois - 5.6.6
Ebuild name:

net-misc/whois-5.6.6

Description

Improved Whois Client

Added to portage

2026-03-20

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