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:

88941

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-10-05
asyncssh - 2.24.1
Ebuild name:

dev-python/asyncssh-2.24.1

Description

Asynchronous SSHv2 client and server library

Added to portage

2026-10-05

b2sdk - 2.13.1
Ebuild name:

dev-python/b2sdk-2.13.1

Description

Library to access Backblaze B2 cloud storage

Added to portage

2026-10-05

black - 26.10.0
Ebuild name:

dev-python/black-26.10.0

Description

The uncompromising Python code formatter

Added to portage

2026-10-05

filelock - 4.0.11
Ebuild name:

dev-python/filelock-4.0.11

Description

A platform independent file lock for Python

Added to portage

2026-10-05

git-sources - 7.3_rc6
Ebuild name:

sys-kernel/git-sources-7.3_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2026-10-05

gmpy2 - 2.3.2
Ebuild name:

dev-python/gmpy2-2.3.2

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2026-10-05

hideousdestructor - 5.0.1a
Ebuild name:

games-fps/hideousdestructor-5.0.1a

Description

UZDoom modification for realistic movement, physics, weapons and

Added to portage

2026-10-05

mesa - 26.2.4
Ebuild name:

media-libs/mesa-26.2.4

Description

OpenGL-like graphic library for Linux

Added to portage

2026-10-05

mesa_clc - 26.2.4
Ebuild name:

dev-util/mesa_clc-26.2.4

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-10-05

nnn - 5.3
Ebuild name:

app-misc/nnn-5.3

Description

The missing terminal file browser for X

Added to portage

2026-10-05

pbs-installer - 2026.10.3
Ebuild name:

dev-python/pbs-installer-2026.10.3

Description

Installer for Python Build Standalone

Added to portage

2026-10-05

pebble - 5.2.3
Ebuild name:

dev-python/pebble-5.2.3

Description

Threading and multiprocessing eye-candy

Added to portage

2026-10-05

pycairo - 1.29.2
Ebuild name:

dev-python/pycairo-1.29.2

Description

Python bindings for the cairo library

Added to portage

2026-10-05

pycryptodome - 3.24.0
Ebuild name:

dev-python/pycryptodome-3.24.0

Description

A self-contained cryptographic library for Python

Added to portage

2026-10-05

pytest-golden - 1.0.2
Ebuild name:

dev-python/pytest-golden-1.0.2

Description

Plugin for pytest that offloads expected outputs to data files

Added to portage

2026-10-05

pytz - 2026.5
Ebuild name:

dev-python/pytz-2026.5

Description

World timezone definitions for Python

Added to portage

2026-10-05

rpds-py - 2026.9.1
Ebuild name:

dev-python/rpds-py-2026.9.1

Description

Python bindings to Rust's persistent data structures (rpds)

Added to portage

2026-10-05

signal-desktop-bin - 8.28.0
Ebuild name:

net-im/signal-desktop-bin-8.28.0

Description

Allows you to send and receive messages of Signal Messenger on you

Added to portage

2026-10-05

tinyssh - 20261001
Ebuild name:

net-misc/tinyssh-20261001

Description

A small SSH server with state-of-the-art cryptography

Added to portage

2026-10-05

wcwidth - 0.9.2
Ebuild name:

dev-python/wcwidth-0.9.2

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-10-05

wezterm - 20260929.043349
Ebuild name:

x11-terms/wezterm-20260929.043349

Description

A GPU-accelerated cross-platform terminal emulator and multiplexe

Added to portage

2026-10-05

xorg-proto - 2026.1
Ebuild name:

x11-base/xorg-proto-2026.1

Description

X.Org combined protocol headers

Added to portage

2026-10-05

2026-10-04
apprise - 2.0.1
Ebuild name:

dev-python/apprise-2.0.1

Description

Push Notifications that work with just about every platform

Added to portage

2026-10-04

apptainer - 1.5.4
Ebuild name:

app-containers/apptainer-1.5.4

Description

The container system for secure high-performance computing

Added to portage

2026-10-04

ast-serialize - 0.12.1
Ebuild name:

dev-python/ast-serialize-0.12.1

Description

Python bindings for mypy AST serialization

Added to portage

2026-10-04

bazel-buildtools - 10.1.0
Ebuild name:

dev-build/bazel-buildtools-10.1.0

Description

Tools for working with Google's Bazel BUILD files

Added to portage

2026-10-04

boogie - 3.5.8
Ebuild name:

dev-lang/boogie-3.5.8

Description

SMT-based program verifier

Added to portage

2026-10-04

caddy - 2.11.7
Ebuild name:

www-servers/caddy-2.11.7

Description

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HT

Added to portage

2026-10-04

clion - 2026.2.3
Ebuild name:

dev-util/clion-2026.2.3

Description

A complete toolset for C and C++ development

Added to portage

2026-10-04

dbus - 1.16.2-r2
Ebuild name:

sys-apps/dbus-1.16.2-r2

Description

A message bus system, a simple way for applications to talk to each other

Added to portage

2026-10-04

dist-kernel - 6.1.189
Ebuild name:

virtual/dist-kernel-6.1.189

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-04

dist-kernel - 6.12.112
Ebuild name:

virtual/dist-kernel-6.12.112

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-04

dist-kernel - 6.6.158
Ebuild name:

virtual/dist-kernel-6.6.158

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-04

django-filter - 26.2
Ebuild name:

dev-python/django-filter-26.2

Description

Django app allowing declarative dynamic QuerySet filtering from URL p

Added to portage

2026-10-04

dulwich - 1.2.16
Ebuild name:

dev-python/dulwich-1.2.16

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-10-04

dulwich - 1.2.17
Ebuild name:

dev-python/dulwich-1.2.17

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-10-04

filelock - 4.0.10
Ebuild name:

dev-python/filelock-4.0.10

Description

A platform independent file lock for Python

Added to portage

2026-10-04

gallery-dl - 1.32.15
Ebuild name:

net-misc/gallery-dl-1.32.15

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-10-04

gentoo-kernel - 6.1.189
Ebuild name:

sys-kernel/gentoo-kernel-6.1.189

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-04

gentoo-kernel - 6.12.112
Ebuild name:

sys-kernel/gentoo-kernel-6.12.112

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-04

gentoo-kernel - 6.6.158
Ebuild name:

sys-kernel/gentoo-kernel-6.6.158

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-04

gentoo-kernel-bin - 6.1.189
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.189

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-04

gentoo-kernel-bin - 6.12.112
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.112

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-04

gentoo-kernel-bin - 6.6.158
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.158

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-04

gentoo-kernel-modprep - 6.1.189
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.189

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-10-04

gentoo-kernel-modprep - 6.12.112
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.112

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-10-04

gentoo-kernel-modprep - 6.6.158
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.158

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-10-04

goland - 2026.2.3
Ebuild name:

dev-util/goland-2026.2.3

Description

Golang IDE by JetBrains

Added to portage

2026-10-04

gruvbox-theme - 9999
Ebuild name:

app-emacs/gruvbox-theme-9999

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-10-04

h4x0r - 0.13-r1
Ebuild name:

app-emacs/h4x0r-0.13-r1

Description

Aid in writing like a script kiddie does

Added to portage

2026-10-04

haskell-mode - 17.4
Ebuild name:

app-emacs/haskell-mode-17.4

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-10-04

haskell-mode - 17.5_p20260206
Ebuild name:

app-emacs/haskell-mode-17.5_p20260206

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-10-04

ibus-typing-booster - 2.31.1
Ebuild name:

app-i18n/ibus-typing-booster-2.31.1

Description

Completion input method for IBus

Added to portage

2026-10-04

koleo-cli - 0.2.137.39
Ebuild name:

app-misc/koleo-cli-0.2.137.39

Description

A simple CLI for koleo.pl railway planner

Added to portage

2026-10-04

lcalc - 2.2.2
Ebuild name:

sci-mathematics/lcalc-2.2.2

Description

Command-line utility and library for L-function computations

Added to portage

2026-10-04

lcov - 2.6
Ebuild name:

dev-util/lcov-2.6

Description

A graphical front-end for GCC's coverage testing tool gcov

Added to portage

2026-10-04

liblore - 0.10.1
Ebuild name:

dev-python/liblore-0.10.1

Description

Shared library for public-inbox / lore.kernel.org access

Added to portage

2026-10-04

libsdl - 1.2.78
Ebuild name:

media-libs/libsdl-1.2.78

Description

Simple Direct Media Layer 1.2 compatibility wrapper around SDL2

Added to portage

2026-10-04

libutf8proc - 2.12.0
Ebuild name:

dev-libs/libutf8proc-2.12.0

Description

A clean C Library for processing UTF-8 Unicode data

Added to portage

2026-10-04

llama - 1.0.6
Ebuild name:

app-emacs/llama-1.0.6

Description

Compact syntax for short lambda

Added to portage

2026-10-04

networkmanager - 1.58.1-r3
Ebuild name:

net-misc/networkmanager-1.58.1-r3

Description

A set of co-operative tools that make networking simple and strai

Added to portage

2026-10-04

no-littering - 1.9.2
Ebuild name:

app-emacs/no-littering-1.9.2

Description

ELisp library that helps keeping Emacs configuration directory clean

Added to portage

2026-10-04

noto - 20261001
Ebuild name:

media-fonts/noto-20261001

Description

Google's font family that aims to support all the world's languages

Added to portage

2026-10-04

nvc - 1.23.0
Ebuild name:

sci-electronics/nvc-1.23.0

Description

NVC is a VHDL compiler and simulator

Added to portage

2026-10-04

pkgcheck - 0.10.47
Ebuild name:

dev-util/pkgcheck-0.10.47

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-10-04

pkgcore - 0.12.45
Ebuild name:

sys-apps/pkgcore-0.12.45

Description

a framework for package management

Added to portage

2026-10-04

platformdirs - 4.12.3
Ebuild name:

dev-python/platformdirs-4.12.3

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-10-04

pyflakes - 4.0.2
Ebuild name:

dev-python/pyflakes-4.0.2

Description

Passive checker for Python programs

Added to portage

2026-10-04

pyproject-api - 1.11.3
Ebuild name:

dev-python/pyproject-api-1.11.3

Description

API to interact with the python pyproject.toml based projects

Added to portage

2026-10-04

pyqt-builder - 1.20.0
Ebuild name:

dev-python/pyqt-builder-1.20.0

Description

The PEP 517 compliant PyQt build system

Added to portage

2026-10-04

pyqt6-sip - 13.13.0
Ebuild name:

dev-python/pyqt6-sip-13.13.0

Description

sip module support for PyQt6

Added to portage

2026-10-04

pytimeparse - 1.1.9
Ebuild name:

dev-python/pytimeparse-1.1.9

Description

A small Python module to parse various kinds of time expressions

Added to portage

2026-10-04

razer-cli - 2.3.2
Ebuild name:

sys-apps/razer-cli-2.3.2

Description

Command line interface for controlling Razer devices on Linux

Added to portage

2026-10-04

sigscheme - 0.9.6
Ebuild name:

dev-scheme/sigscheme-0.9.6

Description

SigScheme is an R5RS Scheme interpreter for embedded use

Added to portage

2026-10-04

simdutf - 9.2.1
Ebuild name:

dev-cpp/simdutf-9.2.1

Description

Unicode validation and transcoding at billions of characters per second

Added to portage

2026-10-04

sip - 6.17.0
Ebuild name:

dev-python/sip-6.17.0

Description

Python bindings generator for C/C++ libraries

Added to portage

2026-10-04

tea - 0.16.0
Ebuild name:

dev-util/tea-0.16.0

Description

Command line tool to interact with Gitea server

Added to portage

2026-10-04

tldextract - 5.4.0
Ebuild name:

dev-python/tldextract-5.4.0

Description

Accurately separate the TLD from the registered domain and subdomains o

Added to portage

2026-10-04

tox - 4.64.8
Ebuild name:

dev-python/tox-4.64.8

Description

virtualenv-based automation of test activities

Added to portage

2026-10-04

uv - 0.12.23
Ebuild name:

dev-python/uv-0.12.23

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-10-04

uv-build - 0.12.23
Ebuild name:

dev-python/uv-build-0.12.23

Description

PEP517 uv build backend

Added to portage

2026-10-04

vanilla-kernel - 6.1.189
Ebuild name:

sys-kernel/vanilla-kernel-6.1.189

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-04

vanilla-kernel - 6.12.112
Ebuild name:

sys-kernel/vanilla-kernel-6.12.112

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-04

vanilla-kernel - 6.6.158
Ebuild name:

sys-kernel/vanilla-kernel-6.6.158

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-04

webkit-gtk - 2.54.1-r400
Ebuild name:

net-libs/webkit-gtk-2.54.1-r400

Description

Open source web browser engine

Added to portage

2026-10-04

webkit-gtk - 2.54.1-r600
Ebuild name:

net-libs/webkit-gtk-2.54.1-r600

Description

Open source web browser engine

Added to portage

2026-10-04

websockets - 17.2
Ebuild name:

dev-python/websockets-17.2

Description

Library for building WebSocket servers and clients in Python

Added to portage

2026-10-04

zipp - 4.1.1
Ebuild name:

dev-python/zipp-4.1.1

Description

Backport of pathlib-compatible object wrapper for zip files

Added to portage

2026-10-04

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