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:

83391

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-02-20
acl - 2.3.2-r3
Ebuild name:

sys-apps/acl-2.3.2-r3

Description

Access control list utilities, libraries, and headers

Added to portage

2026-02-20

awscli - 1.44.43
Ebuild name:

app-admin/awscli-1.44.43

Description

Universal Command Line Environment for AWS

Added to portage

2026-02-20

boto3 - 1.42.53
Ebuild name:

dev-python/boto3-1.42.53

Description

The AWS SDK for Python

Added to portage

2026-02-20

chrome-binary-plugins - 146.0.7680.16_beta
Ebuild name:

www-plugins/chrome-binary-plugins-146.0.7680.16_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-02-20

devcontainer - 0.83.2
Ebuild name:

app-containers/devcontainer-0.83.2

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-02-20

dist-kernel - 5.10.251
Ebuild name:

virtual/dist-kernel-5.10.251

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-20

dist-kernel - 5.15.201
Ebuild name:

virtual/dist-kernel-5.15.201

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-20

dist-kernel - 6.1.164
Ebuild name:

virtual/dist-kernel-6.1.164

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-20

dist-kernel - 6.12.74
Ebuild name:

virtual/dist-kernel-6.12.74

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-20

dist-kernel - 6.18.13
Ebuild name:

virtual/dist-kernel-6.18.13

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-20

dist-kernel - 6.19.3
Ebuild name:

virtual/dist-kernel-6.19.3

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-20

dist-kernel - 6.6.127
Ebuild name:

virtual/dist-kernel-6.6.127

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-20

gentoo-kernel - 5.10.251
Ebuild name:

sys-kernel/gentoo-kernel-5.10.251

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel - 5.15.201
Ebuild name:

sys-kernel/gentoo-kernel-5.15.201

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel - 6.1.164
Ebuild name:

sys-kernel/gentoo-kernel-6.1.164

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel - 6.12.74
Ebuild name:

sys-kernel/gentoo-kernel-6.12.74

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel - 6.18.13
Ebuild name:

sys-kernel/gentoo-kernel-6.18.13

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel - 6.19.3
Ebuild name:

sys-kernel/gentoo-kernel-6.19.3

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel - 6.6.127
Ebuild name:

sys-kernel/gentoo-kernel-6.6.127

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel-bin - 5.10.251
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.251

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel-bin - 5.15.201
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.201

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel-bin - 6.1.164
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.164

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel-bin - 6.12.74
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.74

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel-bin - 6.18.13
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.13

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel-bin - 6.19.3
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.19.3

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-20

gentoo-kernel-bin - 6.6.127
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.127

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-20

gentoo-systemd-integration - 9-r2
Ebuild name:

sys-apps/gentoo-systemd-integration-9-r2

Description

systemd integration files for Gentoo

Added to portage

2026-02-20

google-chrome-beta - 146.0.7680.16
Ebuild name:

www-client/google-chrome-beta-146.0.7680.16

Description

The web browser from Google

Added to portage

2026-02-20

jdbc-mysql - 9.6.0
Ebuild name:

dev-java/jdbc-mysql-9.6.0

Description

JDBC Type 4 driver for MySQL

Added to portage

2026-02-20

krita - 6.0.0_beta2
Ebuild name:

media-gfx/krita-6.0.0_beta2

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2026-02-20

muse - 3.20.2
Ebuild name:

app-emacs/muse-3.20.2

Description

An authoring and publishing environment for Emacs

Added to portage

2026-02-20

nagios-mode - 0.4
Ebuild name:

app-emacs/nagios-mode-0.4

Description

Major mode for editing Nagios configuration files

Added to portage

2026-02-20

navi2ch - 1.8.4-r2
Ebuild name:

app-emacs/navi2ch-1.8.4-r2

Description

A navigator for the Japanese textboard 2ch

Added to portage

2026-02-20

protobuf-java - 4.33.5
Ebuild name:

dev-java/protobuf-java-4.33.5

Description

Core Protocol Buffers library

Added to portage

2026-02-20

rclone - 1.73.1
Ebuild name:

net-misc/rclone-1.73.1

Description

A program to sync files to and from various cloud storage providers

Added to portage

2026-02-20

swi-prolog - 10.0.1
Ebuild name:

dev-lang/swi-prolog-10.0.1

Description

Versatile implementation of the Prolog programming language

Added to portage

2026-02-20

vanilla-kernel - 5.10.251
Ebuild name:

sys-kernel/vanilla-kernel-5.10.251

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-20

vanilla-kernel - 5.15.201
Ebuild name:

sys-kernel/vanilla-kernel-5.15.201

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-20

vanilla-kernel - 6.1.164
Ebuild name:

sys-kernel/vanilla-kernel-6.1.164

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-20

vanilla-kernel - 6.12.74
Ebuild name:

sys-kernel/vanilla-kernel-6.12.74

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-20

vanilla-kernel - 6.18.13
Ebuild name:

sys-kernel/vanilla-kernel-6.18.13

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-20

vanilla-kernel - 6.19.3
Ebuild name:

sys-kernel/vanilla-kernel-6.19.3

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-20

vanilla-kernel - 6.6.127
Ebuild name:

sys-kernel/vanilla-kernel-6.6.127

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-20

vanilla-sources - 5.10.251
Ebuild name:

sys-kernel/vanilla-sources-5.10.251

Description

Full sources for the Linux kernel

Added to portage

2026-02-20

vanilla-sources - 5.15.201
Ebuild name:

sys-kernel/vanilla-sources-5.15.201

Description

Full sources for the Linux kernel

Added to portage

2026-02-20

vanilla-sources - 6.1.164
Ebuild name:

sys-kernel/vanilla-sources-6.1.164

Description

Full sources for the Linux kernel

Added to portage

2026-02-20

vanilla-sources - 6.12.74
Ebuild name:

sys-kernel/vanilla-sources-6.12.74

Description

Full sources for the Linux kernel

Added to portage

2026-02-20

vanilla-sources - 6.18.13
Ebuild name:

sys-kernel/vanilla-sources-6.18.13

Description

Full sources for the Linux kernel

Added to portage

2026-02-20

vanilla-sources - 6.19.3
Ebuild name:

sys-kernel/vanilla-sources-6.19.3

Description

Full sources for the Linux kernel

Added to portage

2026-02-20

vanilla-sources - 6.6.127
Ebuild name:

sys-kernel/vanilla-sources-6.6.127

Description

Full sources for the Linux kernel

Added to portage

2026-02-20

2026-02-19
aegisub - 3.4.2-r3
Ebuild name:

media-video/aegisub-3.4.2-r3

Description

Advanced subtitle editor

Added to portage

2026-02-19

awscli - 1.44.42
Ebuild name:

app-admin/awscli-1.44.42

Description

Universal Command Line Environment for AWS

Added to portage

2026-02-19

badkeys - 0.0.17
Ebuild name:

app-crypt/badkeys-0.0.17

Description

Check cryptographic keys for known weaknesses

Added to portage

2026-02-19

bibletime - 3.2.0
Ebuild name:

app-text/bibletime-3.2.0

Description

Qt Bible-study application using the SWORD library

Added to portage

2026-02-19

boehm-gc - 8.2.12
Ebuild name:

dev-libs/boehm-gc-8.2.12

Description

The Boehm-Demers-Weiser conservative garbage collector

Added to portage

2026-02-19

boto3 - 1.42.52
Ebuild name:

dev-python/boto3-1.42.52

Description

The AWS SDK for Python

Added to portage

2026-02-19

botocore - 1.42.52
Ebuild name:

dev-python/botocore-1.42.52

Description

Low-level, data-driven core of boto 3

Added to portage

2026-02-19

cantor - 25.12.2-r1
Ebuild name:

kde-apps/cantor-25.12.2-r1

Description

Interface for doing mathematics and scientific computing

Added to portage

2026-02-19

capstone - 6.0.0_alpha7
Ebuild name:

dev-libs/capstone-6.0.0_alpha7

Description

disassembly/disassembler framework + bindings

Added to portage

2026-02-19

cattrs - 26.1.0
Ebuild name:

dev-python/cattrs-26.1.0

Description

Composable complex class support for attrs and dataclasses

Added to portage

2026-02-19

ceph - 20.1.1-r1
Ebuild name:

sys-cluster/ceph-20.1.1-r1

Description

Ceph distributed filesystem

Added to portage

2026-02-19

chrome-binary-plugins - 145.0.7632.109
Ebuild name:

www-plugins/chrome-binary-plugins-145.0.7632.109

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-02-19

chromedriver-bin - 145.0.7632.109
Ebuild name:

www-apps/chromedriver-bin-145.0.7632.109

Description

WebDriver for Chrome

Added to portage

2026-02-19

chromium - 145.0.7632.109
Ebuild name:

www-client/chromium-145.0.7632.109

Description

Open-source version of Google Chrome web browser

Added to portage

2026-02-19

cli-helpers - 2.10.1
Ebuild name:

dev-python/cli-helpers-2.10.1

Description

Python helpers for common CLI tasks

Added to portage

2026-02-19

droidcam - 2.1.5
Ebuild name:

media-video/droidcam-2.1.5

Description

Use your phone or tablet as webcam with a v4l device driver and app

Added to portage

2026-02-19

dropbox - 242.4.5815
Ebuild name:

net-misc/dropbox-242.4.5815

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2026-02-19

filelock - 3.24.3
Ebuild name:

dev-python/filelock-3.24.3

Description

A platform independent file lock for Python

Added to portage

2026-02-19

google-api-core - 2.30.0
Ebuild name:

dev-python/google-api-core-2.30.0

Description

Core Library for Google Client Libraries

Added to portage

2026-02-19

google-chrome - 145.0.7632.109
Ebuild name:

www-client/google-chrome-145.0.7632.109

Description

The web browser from Google

Added to portage

2026-02-19

haproxy - 3.0.17
Ebuild name:

net-proxy/haproxy-3.0.17

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-02-19

haproxy - 3.2.13
Ebuild name:

net-proxy/haproxy-3.2.13

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-02-19

haproxy - 3.3.4
Ebuild name:

net-proxy/haproxy-3.3.4

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-02-19

iosevka - 33.3.6
Ebuild name:

media-fonts/iosevka-33.3.6

Description

Slender typeface for code, from code

Added to portage

2026-02-19

iosevka - 34.1.0
Ebuild name:

media-fonts/iosevka-34.1.0

Description

Slender typeface for code, from code

Added to portage

2026-02-19

kaffeine - 2.1.0_pre20260210
Ebuild name:

media-video/kaffeine-2.1.0_pre20260210

Description

Media player with digital TV support by KDE

Added to portage

2026-02-19

kmscon - 9.3.2
Ebuild name:

sys-apps/kmscon-9.3.2

Description

KMS/DRM based virtual Console Emulator

Added to portage

2026-02-19

libdolbyb - 1.0.1
Ebuild name:

media-libs/libdolbyb-1.0.1

Description

Treat audio recordings similar to Dolby B noise reduction codecs

Added to portage

2026-02-19

libquotient - 0.9.6.1
Ebuild name:

net-libs/libquotient-0.9.6.1

Description

Qt-based SDK to develop applications for Matrix

Added to portage

2026-02-19

libtmux - 0.53.1
Ebuild name:

dev-python/libtmux-0.53.1

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2026-02-19

libunwind - 1.8.3
Ebuild name:

sys-libs/libunwind-1.8.3

Description

Portable and efficient API to determine the call-chain of a program

Added to portage

2026-02-19

libvpx - 1.16.0
Ebuild name:

media-libs/libvpx-1.16.0

Description

WebM VP8 and VP9 Codec SDK

Added to portage

2026-02-19

luajit - 2.1.1770848219
Ebuild name:

dev-lang/luajit-2.1.1770848219

Description

Just-In-Time Compiler for the Lua programming language

Added to portage

2026-02-19

maturin - 1.12.3
Ebuild name:

dev-util/maturin-1.12.3

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-02-19

microsoft-edge - 145.0.3800.58
Ebuild name:

www-client/microsoft-edge-145.0.3800.58

Description

The web browser from Microsoft

Added to portage

2026-02-19

microsoft-edge-beta - 145.0.3800.58
Ebuild name:

www-client/microsoft-edge-beta-145.0.3800.58

Description

The web browser from Microsoft

Added to portage

2026-02-19

microsoft-edge-dev - 146.0.3856.9
Ebuild name:

www-client/microsoft-edge-dev-146.0.3856.9

Description

The web browser from Microsoft

Added to portage

2026-02-19

mkdocs-material - 9.7.2
Ebuild name:

dev-python/mkdocs-material-9.7.2

Description

A Material Design theme for MkDocs

Added to portage

2026-02-19

nerd-icons - 0.1.0
Ebuild name:

app-emacs/nerd-icons-0.1.0

Description

Emacs Nerd Font Icons Library

Added to portage

2026-02-19

openstackdocstheme - 3.5.0-r1
Ebuild name:

dev-python/openstackdocstheme-3.5.0-r1

Description

Theme and extension support for Sphinx documentation

Added to portage

2026-02-19

opentelemetry-cpp - 1.25.0
Ebuild name:

dev-cpp/opentelemetry-cpp-1.25.0

Description

The OpenTelemetry C++ Client

Added to portage

2026-02-19

opera - 127.0.5778.76
Ebuild name:

www-client/opera-127.0.5778.76

Description

A fast and secure web browser

Added to portage

2026-02-19

opera-developer - 129.0.5812.0
Ebuild name:

www-client/opera-developer-129.0.5812.0

Description

A fast and secure web browser

Added to portage

2026-02-19

oslo-log - 8.1.0
Ebuild name:

dev-python/oslo-log-8.1.0

Description

OpenStack logging config library, configuration for all openstack project

Added to portage

2026-02-19

packer - 1.14.3
Ebuild name:

dev-util/packer-1.14.3

Description

A tool to create identical machine images for multiple platforms

Added to portage

2026-02-19

parse - 1.21.1
Ebuild name:

dev-python/parse-1.21.1

Description

Parse strings using a specification based on the Python format() syntax

Added to portage

2026-02-19

psycopg - 3.3.3
Ebuild name:

dev-python/psycopg-3.3.3

Description

PostgreSQL database adapter for Python

Added to portage

2026-02-19

pyproject-fmt - 2.16.1
Ebuild name:

dev-python/pyproject-fmt-2.16.1

Description

Format your pyproject.toml file

Added to portage

2026-02-19

recurring-ical-events - 3.8.1
Ebuild name:

dev-python/recurring-ical-events-3.8.1

Description

Repeat ICalendar events by RRULE, RDATE and EXDATE

Added to portage

2026-02-19

remmina - 1.4.42
Ebuild name:

net-misc/remmina-1.4.42

Description

A GTK+ RDP, SPICE, VNC and SSH client

Added to portage

2026-02-19

rust - 1.94.0_beta20260213
Ebuild name:

dev-lang/rust-1.94.0_beta20260213

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-02-19

rust-bin - 1.94.0_beta20260213
Ebuild name:

dev-lang/rust-bin-1.94.0_beta20260213

Description

Added to portage

2026-02-19

rust-common - 1.94.0_beta20260213
Ebuild name:

dev-lang/rust-common-1.94.0_beta20260213

Description

Common files shared between multiple slots of Rust

Added to portage

2026-02-19

rust-std - 1.94.0_beta20260213
Ebuild name:

sys-devel/rust-std-1.94.0_beta20260213

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-02-19

simdjson - 4.3.0
Ebuild name:

dev-libs/simdjson-4.3.0

Description

SIMD accelerated C++ JSON library

Added to portage

2026-02-19

sox - 14.4.5.1
Ebuild name:

media-sound/sox-14.4.5.1

Description

The swiss army knife of sound processing programs

Added to portage

2026-02-19

sox - 14.7.0.9
Ebuild name:

media-sound/sox-14.7.0.9

Description

The swiss army knife of sound processing programs

Added to portage

2026-02-19

spawn - 26.0.0-r1
Ebuild name:

dev-ada/spawn-26.0.0-r1

Description

Simple API to spawn processes

Added to portage

2026-02-19

sphinx-autodoc-typehints - 3.6.3
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.6.3

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-02-19

tavern - 3.2.0
Ebuild name:

dev-python/tavern-3.2.0

Description

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

Added to portage

2026-02-19

tox - 4.39.0
Ebuild name:

dev-python/tox-4.39.0

Description

virtualenv-based automation of test activities

Added to portage

2026-02-19

webkit-gtk - 2.50.5-r410
Ebuild name:

net-libs/webkit-gtk-2.50.5-r410

Description

Open source web browser engine

Added to portage

2026-02-19

webkit-gtk - 2.50.5-r600
Ebuild name:

net-libs/webkit-gtk-2.50.5-r600

Description

Open source web browser engine

Added to portage

2026-02-19

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