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:

85340

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-05-24
akonadi-config - 1
Ebuild name:

kde-apps/akonadi-config-1

Description

Default Akonadi storage backend configuration

Added to portage

2026-05-24

bazelisk - 1.29.0
Ebuild name:

dev-build/bazelisk-1.29.0

Description

A user-friendly launcher for Bazel written in Go

Added to portage

2026-05-24

closure-compiler-bin - 20260520
Ebuild name:

dev-lang/closure-compiler-bin-20260520

Description

JavaScript optimizing compiler

Added to portage

2026-05-24

duration - 0.3.1
Ebuild name:

dev-ml/duration-0.3.1

Description

Duration - conversions to various time units

Added to portage

2026-05-24

gentoo-kernel - 5.10.257
Ebuild name:

sys-kernel/gentoo-kernel-5.10.257

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel - 5.15.208
Ebuild name:

sys-kernel/gentoo-kernel-5.15.208

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel - 6.1.174
Ebuild name:

sys-kernel/gentoo-kernel-6.1.174

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel - 6.12.91
Ebuild name:

sys-kernel/gentoo-kernel-6.12.91

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel - 6.18.33
Ebuild name:

sys-kernel/gentoo-kernel-6.18.33

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel - 6.6.141
Ebuild name:

sys-kernel/gentoo-kernel-6.6.141

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel - 7.0.10
Ebuild name:

sys-kernel/gentoo-kernel-7.0.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel-bin - 5.10.257
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.257

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel-bin - 5.15.208
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.208

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel-bin - 6.1.174
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.174

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel-bin - 6.12.91
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.91

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel-bin - 6.18.33
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.33

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel-bin - 6.6.141
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.141

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-24

gentoo-kernel-bin - 7.0.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.0.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-24

gentoo-sources - 5.10.257
Ebuild name:

sys-kernel/gentoo-sources-5.10.257

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-24

gentoo-sources - 5.15.208
Ebuild name:

sys-kernel/gentoo-sources-5.15.208

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-24

gentoo-sources - 6.1.174
Ebuild name:

sys-kernel/gentoo-sources-6.1.174

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-24

gentoo-sources - 6.12.91
Ebuild name:

sys-kernel/gentoo-sources-6.12.91

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-24

gentoo-sources - 6.18.33
Ebuild name:

sys-kernel/gentoo-sources-6.18.33

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-24

gentoo-sources - 6.6.141
Ebuild name:

sys-kernel/gentoo-sources-6.6.141

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-24

gentoo-sources - 7.0.10
Ebuild name:

sys-kernel/gentoo-sources-7.0.10

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-24

gns3-gui - 2.2.59
Ebuild name:

net-misc/gns3-gui-2.2.59

Description

Graphical Network Simulator

Added to portage

2026-05-24

gns3-server - 2.2.59
Ebuild name:

net-misc/gns3-server-2.2.59

Description

GNS3 server to asynchronously manage emulators

Added to portage

2026-05-24

lambda-term - 3.4.0
Ebuild name:

dev-ml/lambda-term-3.4.0

Description

Terminal manipulation library for OCaml

Added to portage

2026-05-24

modus-themes - 9999
Ebuild name:

app-emacs/modus-themes-9999

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-05-24

mpg123-el - 1.65
Ebuild name:

app-emacs/mpg123-el-1.65

Description

Emacs front-end to mpg123 audio player and OggVorbis audio player

Added to portage

2026-05-24

mu-cite - 8.1_p202011031127
Ebuild name:

app-emacs/mu-cite-8.1_p202011031127

Description

Message citation utilities for emacsen

Added to portage

2026-05-24

nim - 2.2.10
Ebuild name:

dev-lang/nim-2.2.10

Description

Compiled, garbage-collected systems programming language

Added to portage

2026-05-24

nvc - 1.21.0
Ebuild name:

sci-electronics/nvc-1.21.0

Description

NVC is a VHDL compiler and simulator

Added to portage

2026-05-24

openrazer - 3.12.3
Ebuild name:

sys-apps/openrazer-3.12.3

Description

Drivers and user-space daemon to control Razer devices on GNU/Linux

Added to portage

2026-05-24

pwsh - 7.6.2
Ebuild name:

app-shells/pwsh-7.6.2

Description

Cross-platform automation and configuration tool

Added to portage

2026-05-24

pwsh-bin - 7.6.2
Ebuild name:

app-shells/pwsh-bin-7.6.2

Description

Cross-platform automation and configuration tool (binary package)

Added to portage

2026-05-24

rclone - 1.74.2
Ebuild name:

net-misc/rclone-1.74.2

Description

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

Added to portage

2026-05-24

sdbus-c++ - 2.3.1
Ebuild name:

dev-cpp/sdbus-c++-2.3.1

Description

High-level C++ D-Bus library

Added to portage

2026-05-24

selinux-needrestart - 2.20250618_p1
Ebuild name:

sec-policy/selinux-needrestart-2.20250618_p1

Description

SELinux policy for needrestart

Added to portage

2026-05-24

selinux-needrestart - 2.20260312_p1
Ebuild name:

sec-policy/selinux-needrestart-2.20260312_p1

Description

SELinux policy for needrestart

Added to portage

2026-05-24

selinux-needrestart - 9999
Ebuild name:

sec-policy/selinux-needrestart-9999

Description

SELinux policy for needrestart

Added to portage

2026-05-24

selinux-tpm2 - 2.20250618_p1
Ebuild name:

sec-policy/selinux-tpm2-2.20250618_p1

Description

SELinux policy for tpm2

Added to portage

2026-05-24

selinux-tpm2 - 2.20260312_p1
Ebuild name:

sec-policy/selinux-tpm2-2.20260312_p1

Description

SELinux policy for tpm2

Added to portage

2026-05-24

selinux-tpm2 - 9999
Ebuild name:

sec-policy/selinux-tpm2-9999

Description

SELinux policy for tpm2

Added to portage

2026-05-24

tea - 0.14.1
Ebuild name:

dev-util/tea-0.14.1

Description

Command line tool to interact with Gitea server

Added to portage

2026-05-24

utop - 2.17.0
Ebuild name:

dev-ml/utop-2.17.0

Description

Universal toplevel for OCaml

Added to portage

2026-05-24

vanilla-kernel - 5.10.257
Ebuild name:

sys-kernel/vanilla-kernel-5.10.257

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-24

vanilla-kernel - 5.15.208
Ebuild name:

sys-kernel/vanilla-kernel-5.15.208

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-24

vanilla-kernel - 6.1.174
Ebuild name:

sys-kernel/vanilla-kernel-6.1.174

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-24

xwaylandvideobridge - 0.5.0
Ebuild name:

gui-apps/xwaylandvideobridge-0.5.0

Description

Screenshare Wayland windows to XWayland apps

Added to portage

2026-05-24

2026-05-23
awscli - 1.45.14
Ebuild name:

app-admin/awscli-1.45.14

Description

Universal Command Line Environment for AWS

Added to portage

2026-05-23

blessed - 1.42.0
Ebuild name:

dev-python/blessed-1.42.0

Description

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

Added to portage

2026-05-23

boto3 - 1.43.14
Ebuild name:

dev-python/boto3-1.43.14

Description

The AWS SDK for Python

Added to portage

2026-05-23

botocore - 1.43.14
Ebuild name:

dev-python/botocore-1.43.14

Description

Low-level, data-driven core of boto 3

Added to portage

2026-05-23

c2ffi - 21.1.0.20260104
Ebuild name:

dev-lisp/c2ffi-21.1.0.20260104

Description

Clang-based FFI wrapper generator for Common Lisp

Added to portage

2026-05-23

click - 8.4.1
Ebuild name:

dev-python/click-8.4.1

Description

A Python package for creating beautiful command line interfaces

Added to portage

2026-05-23

crossdev - 20260501-r1
Ebuild name:

sys-devel/crossdev-20260501-r1

Description

Gentoo Cross-toolchain generator

Added to portage

2026-05-23

cucumber-expressions - 19.0.1
Ebuild name:

dev-python/cucumber-expressions-19.0.1

Description

Human friendly alternative to Regular Expressions

Added to portage

2026-05-23

deno-bin - 2.8.0
Ebuild name:

dev-lang/deno-bin-2.8.0

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-05-23

faker - 40.19.1
Ebuild name:

dev-python/faker-40.19.1

Description

A Python package that generates fake data for you

Added to portage

2026-05-23

gentoo-sources - 7.0.9-r5
Ebuild name:

sys-kernel/gentoo-sources-7.0.9-r5

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-23

gnome-settings-daemon - 49.1-r1
Ebuild name:

gnome-base/gnome-settings-daemon-49.1-r1

Description

Gnome Settings Daemon

Added to portage

2026-05-23

gr-rds - 0.0_p20250404-r1
Ebuild name:

net-wireless/gr-rds-0.0_p20250404-r1

Description

GNU Radio FM RDS Receiver

Added to portage

2026-05-23

graph-tool - 2.98
Ebuild name:

dev-python/graph-tool-2.98

Description

An efficient python module for manipulation and statistical analysis of

Added to portage

2026-05-23

griddataformats - 1.2.0
Ebuild name:

dev-python/griddataformats-1.2.0

Description

Reading and writing of data on regular grids in Python

Added to portage

2026-05-23

icalendar - 7.1.2
Ebuild name:

dev-python/icalendar-7.1.2

Description

RFC 5545 compatible parser and generator of iCalendar files

Added to portage

2026-05-23

jellyfin-bin - 10.11.9
Ebuild name:

www-apps/jellyfin-bin-10.11.9

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2026-05-23

jinxed - 2.0.1
Ebuild name:

dev-python/jinxed-2.0.1

Description

A pure-Python implementation of a subset of the Python curses library

Added to portage

2026-05-23

jwt-cpp - 0.7.2-r1
Ebuild name:

dev-cpp/jwt-cpp-0.7.2-r1

Description

header only library for creating and validating JSON Web Tokens in C++11

Added to portage

2026-05-23

libgit2 - 1.9.4
Ebuild name:

dev-libs/libgit2-1.9.4

Description

A linkable library for Git

Added to portage

2026-05-23

liblms7002m - 0.0_p20200518-r3
Ebuild name:

net-wireless/liblms7002m-0.0_p20200518-r3

Description

Compact LMS7002M library suitable for resource-limited MC

Added to portage

2026-05-23

lmod - 9.2.2
Ebuild name:

sys-cluster/lmod-9.2.2

Description

Environment Module System based on Lua

Added to portage

2026-05-23

more-itertools - 11.1.0
Ebuild name:

dev-python/more-itertools-11.1.0

Description

More routines for operating on iterables, beyond itertools

Added to portage

2026-05-23

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-05-23

nginx - 1.30.2
Ebuild name:

www-servers/nginx-1.30.2

Description

Added to portage

2026-05-23

nvidia-drivers - 595.44.09
Ebuild name:

x11-drivers/nvidia-drivers-595.44.09

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-05-23

pika - 1.4.1
Ebuild name:

dev-python/pika-1.4.1

Description

Pure-Python implementation of the AMQP

Added to portage

2026-05-23

portage - 3.0.79
Ebuild name:

sys-apps/portage-3.0.79

Description

The package management and distribution system for Gentoo

Added to portage

2026-05-23

pypdf - 6.12.1
Ebuild name:

dev-python/pypdf-6.12.1

Description

Python library to work with PDF files

Added to portage

2026-05-23

pytest-rerunfailures - 16.3
Ebuild name:

dev-python/pytest-rerunfailures-16.3

Description

pytest plugin to re-run tests to eliminate flaky failures

Added to portage

2026-05-23

qtdeclarative - 6.11.1-r1
Ebuild name:

dev-qt/qtdeclarative-6.11.1-r1

Description

Qt Declarative (Quick 2)

Added to portage

2026-05-23

qtile - 0.36.0
Ebuild name:

x11-wm/qtile-0.36.0

Description

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

Added to portage

2026-05-23

raspberrypi-firmware - 1.20260521
Ebuild name:

sys-boot/raspberrypi-firmware-1.20260521

Description

Raspberry Pi (all versions) bootloader and GPU firmware

Added to portage

2026-05-23

raspberrypi-image - 6.18.32_p20260521
Ebuild name:

sys-kernel/raspberrypi-image-6.18.32_p20260521

Description

Raspberry Pi (all versions) kernel and modules

Added to portage

2026-05-23

raspberrypi-sources - 6.18.32_p20260521
Ebuild name:

sys-kernel/raspberrypi-sources-6.18.32_p20260521

Description

Raspberry Pi kernel sources

Added to portage

2026-05-23

snapd-glib - 1.72
Ebuild name:

sys-libs/snapd-glib-1.72

Description

glib library for communicating with snapd

Added to portage

2026-05-23

sunshine - 2026.516.143833
Ebuild name:

net-misc/sunshine-2026.516.143833

Description

Self-hosted game stream host for Moonlight

Added to portage

2026-05-23

superlu_mt - 4.0.2
Ebuild name:

sci-libs/superlu_mt-4.0.2

Description

Multithreaded sparse LU factorization library

Added to portage

2026-05-23

trove-classifiers - 2026.5.22.10
Ebuild name:

dev-python/trove-classifiers-2026.5.22.10

Description

Canonical source for classifiers on PyPI (pypi.org)

Added to portage

2026-05-23

virt-firmware - 26.5.4
Ebuild name:

app-emulation/virt-firmware-26.5.4

Description

Tools for ovmf/armvirt firmware volumes

Added to portage

2026-05-23

vpl-gpu-rt - 26.2.0
Ebuild name:

media-libs/vpl-gpu-rt-26.2.0

Description

Intel Video Processing Library GPU Runtime

Added to portage

2026-05-23

wrapt - 2.2.1
Ebuild name:

dev-python/wrapt-2.2.1

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-05-23

yle-dl - 20260520
Ebuild name:

media-video/yle-dl-20260520

Description

Download media files from Yle Areena

Added to portage

2026-05-23

zotero-bin - 9.0.4
Ebuild name:

app-text/zotero-bin-9.0.4

Description

Helps you collect, organize, cite, and share your research sources

Added to portage

2026-05-23

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