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:

85115

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-12
backports-zstd - 1.5.0
Ebuild name:

dev-python/backports-zstd-1.5.0

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2026-05-12

calligra - 26.04.1
Ebuild name:

app-office/calligra-26.04.1

Description

KDE Office Suite

Added to portage

2026-05-12

cups - 2.4.19
Ebuild name:

net-print/cups-2.4.19

Description

The Common Unix Printing System

Added to portage

2026-05-12

cups-pdf - 3.0.3
Ebuild name:

net-print/cups-pdf-3.0.3

Description

Provides a virtual printer for CUPS to produce PDF files

Added to portage

2026-05-12

dtrace - 2.0.7
Ebuild name:

dev-debug/dtrace-2.0.7

Description

Dynamic BPF-based system-wide tracing tool

Added to portage

2026-05-12

elogind - 257.14
Ebuild name:

sys-auth/elogind-257.14

Description

The systemd project's logind, extracted to a standalone package

Added to portage

2026-05-12

haproxy - 2.8.24
Ebuild name:

net-proxy/haproxy-2.8.24

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-05-12

haproxy - 3.0.23
Ebuild name:

net-proxy/haproxy-3.0.23

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-05-12

haproxy - 3.2.19
Ebuild name:

net-proxy/haproxy-3.2.19

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-05-12

haproxy - 3.3.10
Ebuild name:

net-proxy/haproxy-3.3.10

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-05-12

hypothesis - 6.152.6
Ebuild name:

dev-python/hypothesis-6.152.6

Description

A library for property based testing

Added to portage

2026-05-12

installer - 1.0.1
Ebuild name:

dev-python/installer-1.0.1

Description

A library for installing Python wheels

Added to portage

2026-05-12

jj - 0.41.0
Ebuild name:

dev-vcs/jj-0.41.0

Description

Jujutsu - an experimental version control system

Added to portage

2026-05-12

mypy - 2.1.0
Ebuild name:

dev-python/mypy-2.1.0

Description

Optional static typing for Python

Added to portage

2026-05-12

notmuch - 0.39-r1
Ebuild name:

net-mail/notmuch-0.39-r1

Description

Thread-based e-mail indexer, supporting quick search and tagging

Added to portage

2026-05-12

notmuch - 0.40-r2
Ebuild name:

net-mail/notmuch-0.40-r2

Description

Thread-based e-mail indexer, supporting quick search and tagging

Added to portage

2026-05-12

nuitka - 4.1
Ebuild name:

dev-python/nuitka-4.1

Description

Python to native compiler

Added to portage

2026-05-12

pandas - 3.0.3
Ebuild name:

dev-python/pandas-3.0.3

Description

Powerful data structures for data analysis and statistics

Added to portage

2026-05-12

pbs-installer - 2026.5.10
Ebuild name:

dev-python/pbs-installer-2026.5.10

Description

Installer for Python Build Standalone

Added to portage

2026-05-12

php - 8.2.31
Ebuild name:

dev-lang/php-8.2.31

Description

The PHP language runtime engine

Added to portage

2026-05-12

php - 8.3.31
Ebuild name:

dev-lang/php-8.3.31

Description

The PHP language runtime engine

Added to portage

2026-05-12

php - 8.4.21
Ebuild name:

dev-lang/php-8.4.21

Description

The PHP language runtime engine

Added to portage

2026-05-12

php - 8.5.6
Ebuild name:

dev-lang/php-8.5.6

Description

The PHP language runtime engine

Added to portage

2026-05-12

qt-docs - 6.11.1_p202605090529
Ebuild name:

dev-qt/qt-docs-6.11.1_p202605090529

Description

Qt6 documentation and examples for Qt Creator and other tools

Added to portage

2026-05-12

qt3d - 6.11.1
Ebuild name:

dev-qt/qt3d-6.11.1

Description

3D rendering module for the Qt6 framework

Added to portage

2026-05-12

qt5compat - 6.11.1
Ebuild name:

dev-qt/qt5compat-6.11.1

Description

Qt module containing the unsupported Qt 5 APIs

Added to portage

2026-05-12

qtbase - 6.11.1
Ebuild name:

dev-qt/qtbase-6.11.1

Description

Cross-platform application development framework

Added to portage

2026-05-12

qtcharts - 6.11.1
Ebuild name:

dev-qt/qtcharts-6.11.1

Description

Chart component library for the Qt6 framework

Added to portage

2026-05-12

qtconnectivity - 6.11.1
Ebuild name:

dev-qt/qtconnectivity-6.11.1

Description

Bluetooth and NFC support library for the Qt6 framework

Added to portage

2026-05-12

qtdeclarative - 6.11.1
Ebuild name:

dev-qt/qtdeclarative-6.11.1

Description

Qt Declarative (Quick 2)

Added to portage

2026-05-12

qtgraphs - 6.11.1
Ebuild name:

dev-qt/qtgraphs-6.11.1

Description

Graphs component library for the Qt6 framework

Added to portage

2026-05-12

qthttpserver - 6.11.1
Ebuild name:

dev-qt/qthttpserver-6.11.1

Description

HTTP server functionality for the Qt6 framework

Added to portage

2026-05-12

qtimageformats - 6.11.1
Ebuild name:

dev-qt/qtimageformats-6.11.1

Description

Additional format plugins for the Qt image I/O system

Added to portage

2026-05-12

qtlanguageserver - 6.11.1
Ebuild name:

dev-qt/qtlanguageserver-6.11.1

Description

Implementation of the Language Server Protocol for Qt

Added to portage

2026-05-12

qtlocation - 6.11.1
Ebuild name:

dev-qt/qtlocation-6.11.1

Description

Location (places, maps, navigation) library for the Qt6 framework

Added to portage

2026-05-12

qtmultimedia - 6.11.1
Ebuild name:

dev-qt/qtmultimedia-6.11.1

Description

Multimedia (audio, video, radio, camera) library for the Qt6 framework

Added to portage

2026-05-12

qtnetworkauth - 6.11.1
Ebuild name:

dev-qt/qtnetworkauth-6.11.1

Description

Network authorization library for the Qt6 framework

Added to portage

2026-05-12

qtpositioning - 6.11.1
Ebuild name:

dev-qt/qtpositioning-6.11.1

Description

Physical position determination library for the Qt6 framework

Added to portage

2026-05-12

qtquick3d - 6.11.1
Ebuild name:

dev-qt/qtquick3d-6.11.1

Description

Qt module and API for defining 3D content in Qt QuickTools

Added to portage

2026-05-12

qtquicktimeline - 6.11.1
Ebuild name:

dev-qt/qtquicktimeline-6.11.1

Description

Qt module for keyframe-based timeline construction

Added to portage

2026-05-12

qtremoteobjects - 6.11.1
Ebuild name:

dev-qt/qtremoteobjects-6.11.1

Description

Inter-Process Communication (IPC) library for the Qt6 framework

Added to portage

2026-05-12

qtscxml - 6.11.1
Ebuild name:

dev-qt/qtscxml-6.11.1

Description

State Chart XML (SCXML) support library for the Qt6 framework

Added to portage

2026-05-12

qtsensors - 6.11.1
Ebuild name:

dev-qt/qtsensors-6.11.1

Description

Hardware sensor access library for the Qt6 framework

Added to portage

2026-05-12

qtserialbus - 6.11.1
Ebuild name:

dev-qt/qtserialbus-6.11.1

Description

Qt module to access CAN, ModBus, and other industrial serial buses and pr

Added to portage

2026-05-12

qtserialport - 6.11.1
Ebuild name:

dev-qt/qtserialport-6.11.1

Description

Serial port abstraction library for the Qt6 framework

Added to portage

2026-05-12

requests - 2.34.0
Ebuild name:

dev-python/requests-2.34.0

Description

HTTP library for human beings

Added to portage

2026-05-12

requests-cache - 1.3.2
Ebuild name:

dev-python/requests-cache-1.3.2

Description

Persistent cache for requests library

Added to portage

2026-05-12

rssguard - 5.1.2
Ebuild name:

net-news/rssguard-5.1.2

Description

Simple (yet powerful) news feed reader

Added to portage

2026-05-12

translate-toolkit - 3.19.9
Ebuild name:

dev-python/translate-toolkit-3.19.9

Description

Toolkit to convert between many translation formats

Added to portage

2026-05-12

twisted - 26.4.0
Ebuild name:

dev-python/twisted-26.4.0

Description

An asynchronous networking framework written in Python

Added to portage

2026-05-12

2026-05-11
acme-tiny - 5.0.3
Ebuild name:

app-crypt/acme-tiny-5.0.3

Description

Tiny, auditable script for Let's Encrypt's ACME Protocol

Added to portage

2026-05-11

antimicrox - 3.6.0
Ebuild name:

games-util/antimicrox-3.6.0

Description

Graphical program used to map keyboard buttons and mouse controls to a

Added to portage

2026-05-11

asymptote - 3.10
Ebuild name:

media-gfx/asymptote-3.10

Description

A vector graphics language that provides a framework for technical drawing

Added to portage

2026-05-11

btrfs-progs - 7.0
Ebuild name:

sys-fs/btrfs-progs-7.0

Description

Btrfs filesystem utilities

Added to portage

2026-05-11

btrfsutil - 7.0
Ebuild name:

dev-python/btrfsutil-7.0

Description

Library for managing Btrfs filesystems

Added to portage

2026-05-11

claude-code - 2.1.138
Ebuild name:

dev-util/claude-code-2.1.138

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-05-11

coverage - 7.14.0
Ebuild name:

dev-python/coverage-7.14.0

Description

Code coverage measurement for Python

Added to portage

2026-05-11

devcontainer - 0.86.1
Ebuild name:

app-containers/devcontainer-0.86.1

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-05-11

dist-kernel - 6.18.29
Ebuild name:

virtual/dist-kernel-6.18.29

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-11

dist-kernel - 7.0.6
Ebuild name:

virtual/dist-kernel-7.0.6

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-11

dns-lexicon - 3.25.2
Ebuild name:

dev-python/dns-lexicon-3.25.2

Description

Manipulate DNS records on various DNS providers in a standardized/agn

Added to portage

2026-05-11

ecl - 26.5.5
Ebuild name:

dev-lisp/ecl-26.5.5

Description

ECL is an embeddable Common Lisp implementation

Added to portage

2026-05-11

eisl - 5.66
Ebuild name:

dev-lang/eisl-5.66

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2026-05-11

elogind - 255.24
Ebuild name:

sys-auth/elogind-255.24

Description

The systemd project's logind, extracted to a standalone package

Added to portage

2026-05-11

expat - 2.8.1
Ebuild name:

dev-libs/expat-2.8.1

Description

Stream-oriented XML parser library

Added to portage

2026-05-11

fastai - 2.8.7
Ebuild name:

sci-ml/fastai-2.8.7

Description

The fastai deep learning library

Added to portage

2026-05-11

gcc - 17.0.0_p20260510
Ebuild name:

sys-devel/gcc-17.0.0_p20260510

Description

The GNU Compiler Collection

Added to portage

2026-05-11

gdb - 17.2
Ebuild name:

dev-debug/gdb-17.2

Description

GNU debugger

Added to portage

2026-05-11

gentoo-kernel - 6.18.29
Ebuild name:

sys-kernel/gentoo-kernel-6.18.29

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-11

gentoo-kernel - 7.0.6
Ebuild name:

sys-kernel/gentoo-kernel-7.0.6

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-11

gentoo-kernel-bin - 6.18.29
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.29

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-11

gentoo-kernel-bin - 7.0.6
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.0.6

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-11

gentoo-sources - 6.18.29
Ebuild name:

sys-kernel/gentoo-sources-6.18.29

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-11

gentoo-sources - 7.0.6
Ebuild name:

sys-kernel/gentoo-sources-7.0.6

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-11

git-sources - 7.1_rc3
Ebuild name:

sys-kernel/git-sources-7.1_rc3

Description

The very latest -git version of the Linux kernel

Added to portage

2026-05-11

gramps - 6.0.8
Ebuild name:

app-misc/gramps-6.0.8

Description

Community genealogy program aiming to be both intuitive and feature-complete

Added to portage

2026-05-11

hcloud - 1.64.1
Ebuild name:

app-admin/hcloud-1.64.1

Description

A command-line interface for Hetzner Cloud

Added to portage

2026-05-11

hypothesis - 6.152.5
Ebuild name:

dev-python/hypothesis-6.152.5

Description

A library for property based testing

Added to portage

2026-05-11

idna - 3.14
Ebuild name:

dev-python/idna-3.14

Description

Internationalized Domain Names in Applications (IDNA)

Added to portage

2026-05-11

joplin-desktop - 3.6.11
Ebuild name:

app-office/joplin-desktop-3.6.11

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-05-11

lego - 5.0.0
Ebuild name:

app-crypt/lego-5.0.0

Description

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

Added to portage

2026-05-11

libmd - 1.2.0
Ebuild name:

app-crypt/libmd-1.2.0

Description

Message Digest functions from BSD systems

Added to portage

2026-05-11

librt - 0.11.0
Ebuild name:

dev-python/librt-0.11.0

Description

Mypyc runtime library

Added to portage

2026-05-11

libtmux - 0.56.0
Ebuild name:

dev-python/libtmux-0.56.0

Description

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

Added to portage

2026-05-11

mathematica - 10.3.1-r2
Ebuild name:

sci-mathematics/mathematica-10.3.1-r2

Description

Wolfram Mathematica

Added to portage

2026-05-11

mathematica - 12.2.0
Ebuild name:

sci-mathematics/mathematica-12.2.0

Description

Wolfram Mathematica

Added to portage

2026-05-11

mathematica - 13.0.1
Ebuild name:

sci-mathematics/mathematica-13.0.1

Description

Wolfram Mathematica

Added to portage

2026-05-11

mathematica - 13.1.0-r1
Ebuild name:

sci-mathematics/mathematica-13.1.0-r1

Description

Wolfram Mathematica

Added to portage

2026-05-11

maturin - 1.13.3
Ebuild name:

dev-util/maturin-1.13.3

Description

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

Added to portage

2026-05-11

memtest86-bin - 11.7
Ebuild name:

sys-apps/memtest86-bin-11.7

Description

Stand alone memory testing software for x86 EFI hardware

Added to portage

2026-05-11

moto - 5.2.1
Ebuild name:

dev-python/moto-5.2.1

Description

Mock library for boto

Added to portage

2026-05-11

nxml-docbook5-schemas - 5.1
Ebuild name:

app-emacs/nxml-docbook5-schemas-5.1

Description

Add support for DocBook 5 schemas to NXML

Added to portage

2026-05-11

nxml-gentoo-schemas - 20241116
Ebuild name:

app-emacs/nxml-gentoo-schemas-20241116

Description

Extension for nxml-mode with Gentoo-specific schemas

Added to portage

2026-05-11

nxml-libvirt-schemas - 11.10.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-11.10.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-05-11

nxml-libvirt-schemas - 12.0.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-12.0.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-05-11

open-vm-tools - 13.0.10-r1
Ebuild name:

app-emulation/open-vm-tools-13.0.10-r1

Description

Tools for VMware guests

Added to portage

2026-05-11

openjdk - 27_alpha21
Ebuild name:

dev-java/openjdk-27_alpha21

Description

Open source implementation of the Java programming language

Added to portage

2026-05-11

pdfarranger - 1.13.0
Ebuild name:

app-text/pdfarranger-1.13.0

Description

Merge or split pdfs; rearrange, rotate, crop pages

Added to portage

2026-05-11

pdm - 2.26.9
Ebuild name:

dev-python/pdm-2.26.9

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2026-05-11

postfix - 3.12_pre20260510
Ebuild name:

mail-mta/postfix-3.12_pre20260510

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-05-11

pymap3d - 3.2.0
Ebuild name:

sci-geosciences/pymap3d-3.2.0

Description

Python 3-D coordinate conversions

Added to portage

2026-05-11

pytest-subprocess - 1.6.0
Ebuild name:

dev-python/pytest-subprocess-1.6.0

Description

A plugin to fake subprocess for pytest

Added to portage

2026-05-11

python - 0.3.14.5
Ebuild name:

dev-lang/python-0.3.14.5

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-05-11

python - 3.14.5
Ebuild name:

dev-lang/python-3.14.5

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-05-11

python-multipart - 0.0.28
Ebuild name:

dev-python/python-multipart-0.0.28

Description

A streaming multipart parser for Python

Added to portage

2026-05-11

python-tests - 0.3.14.5
Ebuild name:

dev-python/python-tests-0.3.14.5

Description

Test modules from dev-lang/python

Added to portage

2026-05-11

python-tests - 3.14.5
Ebuild name:

dev-python/python-tests-3.14.5

Description

Test modules from dev-lang/python

Added to portage

2026-05-11

rclone - 1.74.1
Ebuild name:

net-misc/rclone-1.74.1

Description

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

Added to portage

2026-05-11

reuse - 6.2.0
Ebuild name:

dev-util/reuse-6.2.0

Description

Manage license information according to the SPDX standard

Added to portage

2026-05-11

roundcube - 1.7.0
Ebuild name:

mail-client/roundcube-1.7.0

Description

A browser-based multilingual IMAP client with an application-like user

Added to portage

2026-05-11

textile - 4.0.4
Ebuild name:

dev-python/textile-4.0.4

Description

A Python port of Textile, A humane web text generator

Added to portage

2026-05-11

tomlkit - 0.15.0
Ebuild name:

dev-python/tomlkit-0.15.0

Description

Style preserving TOML library

Added to portage

2026-05-11

transient - 0.13.3
Ebuild name:

app-emacs/transient-0.13.3

Description

Transient commands abstraction for GNU Emacs

Added to portage

2026-05-11

tuxpaint - 0.9.35
Ebuild name:

media-gfx/tuxpaint-0.9.35

Description

Drawing program designed for young children

Added to portage

2026-05-11

tuxpaint-stamps - 20241025
Ebuild name:

media-gfx/tuxpaint-stamps-20241025

Description

Set of 'Rubber Stamp' images which can be used within Tux Paint

Added to portage

2026-05-11

uv - 0.11.13
Ebuild name:

dev-python/uv-0.11.13

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-05-11

uv-build - 0.11.13
Ebuild name:

dev-python/uv-build-0.11.13

Description

PEP517 uv build backend

Added to portage

2026-05-11

vanilla-kernel - 6.18.29
Ebuild name:

sys-kernel/vanilla-kernel-6.18.29

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-11

vanilla-kernel - 7.0.6
Ebuild name:

sys-kernel/vanilla-kernel-7.0.6

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-11

vanilla-sources - 6.18.29
Ebuild name:

sys-kernel/vanilla-sources-6.18.29

Description

Full sources for the Linux kernel

Added to portage

2026-05-11

vanilla-sources - 7.0.6
Ebuild name:

sys-kernel/vanilla-sources-7.0.6

Description

Full sources for the Linux kernel

Added to portage

2026-05-11

xfsprogs - 7.0.0
Ebuild name:

sys-fs/xfsprogs-7.0.0

Description

XFS filesystem utilities

Added to portage

2026-05-11

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