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:

88088

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-09-02
android-studio - 2026.1.4.7
Ebuild name:

dev-util/android-studio-2026.1.4.7

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-09-02

fsautocomplete - 0.84.0
Ebuild name:

dev-dotnet/fsautocomplete-0.84.0

Description

F language server using the Language Server Protocol

Added to portage

2026-09-02

gajim - 2.6.0
Ebuild name:

net-im/gajim-2.6.0

Description

GTK XMPP Client

Added to portage

2026-09-02

libfastjson - 1.2609.0
Ebuild name:

dev-libs/libfastjson-1.2609.0

Description

Fork of the json-c library, which is optimized for liblognorm process

Added to portage

2026-09-02

libnftnl - 1.3.2
Ebuild name:

net-libs/libnftnl-1.3.2

Description

Netlink API to the in-kernel nf_tables subsystem

Added to portage

2026-09-02

nftables - 1.1.7
Ebuild name:

net-firewall/nftables-1.1.7

Description

Linux kernel firewall, NAT and packet mangling tools

Added to portage

2026-09-02

noto - 20260901
Ebuild name:

media-fonts/noto-20260901

Description

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

Added to portage

2026-09-02

openjdk - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-11.0.32.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-17.0.20.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-21.0.12.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-25.0.4.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 27_beta35
Ebuild name:

dev-java/openjdk-27_beta35

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 28_alpha12
Ebuild name:

dev-java/openjdk-28_alpha12

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 8.504_p01
Ebuild name:

dev-java/openjdk-8.504_p01

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk-bin - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-bin-11.0.32.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-bin-17.0.20.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-bin-21.0.12.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-bin-25.0.4.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 27_beta35
Ebuild name:

dev-java/openjdk-bin-27_beta35

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 28_alpha13
Ebuild name:

dev-java/openjdk-bin-28_alpha13

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 8.504_p01
Ebuild name:

dev-java/openjdk-bin-8.504_p01

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-11.0.32.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-17.0.20.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-21.0.12.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-25.0.4.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 8.504_p01
Ebuild name:

dev-java/openjdk-jre-bin-8.504_p01

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

systemd - 262_rc1
Ebuild name:

sys-apps/systemd-262_rc1

Description

System and service manager for Linux

Added to portage

2026-09-02

2026-09-01
blessed - 1.49.0
Ebuild name:

dev-python/blessed-1.49.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2026-09-01

boto3 - 1.43.85
Ebuild name:

dev-python/boto3-1.43.85

Description

The AWS SDK for Python

Added to portage

2026-09-01

botocore - 1.43.85
Ebuild name:

dev-python/botocore-1.43.85

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-01

c-blosc2 - 3.3.3
Ebuild name:

dev-libs/c-blosc2-3.3.3

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-09-01

cachetools - 7.1.8
Ebuild name:

dev-python/cachetools-7.1.8

Description

Extensible memoizing collections and decorators

Added to portage

2026-09-01

cfn-lint - 1.56.0
Ebuild name:

dev-python/cfn-lint-1.56.0

Description

CloudFormation Linter

Added to portage

2026-09-01

cssselect2 - 0.10.1
Ebuild name:

dev-python/cssselect2-0.10.1

Description

Parses CSS3 Selectors and translates them to XPath 1.0

Added to portage

2026-09-01

darktable - 5.6.1
Ebuild name:

media-gfx/darktable-5.6.1

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-09-01

dist-kernel - 7.2.2
Ebuild name:

virtual/dist-kernel-7.2.2

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-01

filelock - 3.32.5
Ebuild name:

dev-python/filelock-3.32.5

Description

A platform independent file lock for Python

Added to portage

2026-09-01

firefox - 155.0
Ebuild name:

www-client/firefox-155.0

Description

Firefox Web Browser

Added to portage

2026-09-01

firefox-bin - 155.0
Ebuild name:

www-client/firefox-bin-155.0

Description

Firefox Web Browser

Added to portage

2026-09-01

firefox-l10n - 155.0
Ebuild name:

www-client/firefox-l10n-155.0

Description

Firefox Web Browser's translation files

Added to portage

2026-09-01

fonttools - 4.64.0
Ebuild name:

dev-python/fonttools-4.64.0

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2026-09-01

gentoo-kernel - 7.2.2
Ebuild name:

sys-kernel/gentoo-kernel-7.2.2

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-01

gentoo-kernel-bin - 7.2.2
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.2

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-01

gentoo-kernel-modprep - 7.2.2
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.2

Description

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

Added to portage

2026-09-01

google-api-python-client - 2.200.0
Ebuild name:

dev-python/google-api-python-client-2.200.0

Description

Google API Client for Python

Added to portage

2026-09-01

gpxsee - 16.14
Ebuild name:

sci-geosciences/gpxsee-16.14

Description

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

Added to portage

2026-09-01

grub - 2.16_rc2
Ebuild name:

sys-boot/grub-2.16_rc2

Description

GNU GRUB boot loader

Added to portage

2026-09-01

joblib - 1.6.0
Ebuild name:

dev-python/joblib-1.6.0

Description

Tools to provide lightweight pipelining in Python

Added to portage

2026-09-01

kgpg - 26.04.3-r1
Ebuild name:

kde-apps/kgpg-26.04.3-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

kgpg - 26.08.0-r1
Ebuild name:

kde-apps/kgpg-26.08.0-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

kquickimageeditor - 0.7.0
Ebuild name:

media-libs/kquickimageeditor-0.7.0

Description

QtQuick components providing basic image editing capabilities

Added to portage

2026-09-01

lego - 5.3.1
Ebuild name:

app-crypt/lego-5.3.1

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-09-01

libtlsrpt - 0.5.1
Ebuild name:

net-libs/libtlsrpt-0.5.1

Description

library to implement TLSRPT

Added to portage

2026-09-01

loky - 3.6.0
Ebuild name:

dev-python/loky-3.6.0

Description

Robust and reusable Executor for joblib

Added to portage

2026-09-01

nvidia-drivers - 595.99.02
Ebuild name:

x11-drivers/nvidia-drivers-595.99.02

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-09-01

nxml-gentoo-schemas - 20260901
Ebuild name:

app-emacs/nxml-gentoo-schemas-20260901

Description

Extension for nxml-mode with Gentoo-specific schemas

Added to portage

2026-09-01

openpgp-keys-lsandova - 20260831
Ebuild name:

sec-keys/openpgp-keys-lsandova-20260831

Description

OpenPGP key for Leo Sandoval

Added to portage

2026-09-01

openstacksdk - 4.20.0
Ebuild name:

dev-python/openstacksdk-4.20.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-09-01

psycopg - 3.3.5
Ebuild name:

dev-python/psycopg-3.3.5

Description

PostgreSQL database adapter for Python

Added to portage

2026-09-01

python - 0.3.15.0_rc2
Ebuild name:

dev-lang/python-0.3.15.0_rc2

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-09-01

python - 3.15.0_rc2
Ebuild name:

dev-lang/python-3.15.0_rc2

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-09-01

python-tests - 0.3.15.0_rc2
Ebuild name:

dev-python/python-tests-0.3.15.0_rc2

Description

Test modules from dev-lang/python

Added to portage

2026-09-01

python-tests - 3.15.0_rc2
Ebuild name:

dev-python/python-tests-3.15.0_rc2

Description

Test modules from dev-lang/python

Added to portage

2026-09-01

regex - 2026.9.3
Ebuild name:

dev-python/regex-2026.9.3

Description

Alternative regular expression module to replace re

Added to portage

2026-09-01

sbcl - 2.6.8
Ebuild name:

dev-lisp/sbcl-2.6.8

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2026-09-01

sqlalchemy - 2.1.0_rc1
Ebuild name:

dev-python/sqlalchemy-2.1.0_rc1

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-09-01

tavern - 3.6.3
Ebuild name:

dev-python/tavern-3.6.3

Description

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

Added to portage

2026-09-01

telegram-desktop-bin - 7.1.3
Ebuild name:

net-im/telegram-desktop-bin-7.1.3

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-09-01

throttled - 0.12.2-r1
Ebuild name:

sys-power/throttled-0.12.2-r1

Description

Daemon to work around throttling issues on some Intel laptops

Added to portage

2026-09-01

tlsrpt-reporter - 0.6.0
Ebuild name:

net-mail/tlsrpt-reporter-0.6.0

Description

tools and daemons to implement TLSRPT services

Added to portage

2026-09-01

tox - 4.61.2
Ebuild name:

dev-python/tox-4.61.2

Description

virtualenv-based automation of test activities

Added to portage

2026-09-01

trimesh - 5.1.0
Ebuild name:

dev-python/trimesh-5.1.0

Description

Python library for loading and using triangular meshes

Added to portage

2026-09-01

uv - 0.12.8
Ebuild name:

dev-python/uv-0.12.8

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-09-01

uv-build - 0.12.8
Ebuild name:

dev-python/uv-build-0.12.8

Description

PEP517 uv build backend

Added to portage

2026-09-01

vanilla-kernel - 7.2.2
Ebuild name:

sys-kernel/vanilla-kernel-7.2.2

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-01

websocket-client - 1.9.2
Ebuild name:

dev-python/websocket-client-1.9.2

Description

WebSocket client for python with hybi13 support

Added to portage

2026-09-01

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