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:

87739

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-08-17
DBI - 1.652.0
Ebuild name:

dev-perl/DBI-1.652.0

Description

Database independent interface for Perl

Added to portage

2026-08-17

arti - 2.5.1
Ebuild name:

net-p2p/arti-2.5.1

Description

Implementation of Tor in Rust

Added to portage

2026-08-17

chrony_exporter - 0.14.0
Ebuild name:

app-metrics/chrony_exporter-0.14.0

Description

Chrony NTP exporter for Prometheus

Added to portage

2026-08-17

codipack - 3.1.2
Ebuild name:

sys-cluster/codipack-3.1.2

Description

Fast gradient evaluation in C++ based on Expression Templates

Added to portage

2026-08-17

electrum - 4.8.1
Ebuild name:

net-misc/electrum-4.8.1

Description

User friendly Bitcoin client

Added to portage

2026-08-17

exfatprogs - 1.4.3
Ebuild name:

sys-fs/exfatprogs-1.4.3

Description

Userspace utilities for the exFAT filesystem

Added to portage

2026-08-17

gagit - 4
Ebuild name:

dev-vcs/gagit-4

Description

Gentoo AGit workflow tool

Added to portage

2026-08-17

htop - 3.5.3
Ebuild name:

sys-process/htop-3.5.3

Description

Interactive process viewer

Added to portage

2026-08-17

hypothesis - 6.165.10
Ebuild name:

dev-python/hypothesis-6.165.10

Description

A library for property based testing

Added to portage

2026-08-17

kguiaddons - 6.29.0-r1
Ebuild name:

kde-frameworks/kguiaddons-6.29.0-r1

Description

Framework providing assorted high-level user interface componen

Added to portage

2026-08-17

kirigami - 6.29.0-r1
Ebuild name:

kde-frameworks/kirigami-6.29.0-r1

Description

Lightweight user interface framework for mobile and convergent ap

Added to portage

2026-08-17

libquo - 1.4.1
Ebuild name:

sys-cluster/libquo-1.4.1

Description

Run-time tuning of process binding policies made easy

Added to portage

2026-08-17

metakernel - 1.0.6
Ebuild name:

dev-python/metakernel-1.0.6

Description

Metakernel for Jupyter

Added to portage

2026-08-17

nushell - 0.115.0
Ebuild name:

app-shells/nushell-0.115.0

Description

A new type of shell, written in Rust

Added to portage

2026-08-17

openpgp-keys-patrick96 - 20260816
Ebuild name:

sec-keys/openpgp-keys-patrick96-20260816

Description

OpenPGP keys used by Patrick Ziegler

Added to portage

2026-08-17

openpgp-keys-putty-release - 2026
Ebuild name:

sec-keys/openpgp-keys-putty-release-2026

Description

PuTTY Release Key

Added to portage

2026-08-17

polybar - 3.7.2-r1
Ebuild name:

x11-misc/polybar-3.7.2-r1

Description

A fast and easy-to-use tool for creating status bars

Added to portage

2026-08-17

postgresql - 14.24
Ebuild name:

dev-db/postgresql-14.24

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 15.19
Ebuild name:

dev-db/postgresql-15.19

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 16.15
Ebuild name:

dev-db/postgresql-16.15

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 17.11
Ebuild name:

dev-db/postgresql-17.11

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 18.6
Ebuild name:

dev-db/postgresql-18.6

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 19_beta3
Ebuild name:

dev-db/postgresql-19_beta3

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

putty - 0.85
Ebuild name:

net-misc/putty-0.85

Description

A Free Telnet/SSH Client

Added to portage

2026-08-17

pyproject-fmt - 2.28.0
Ebuild name:

dev-python/pyproject-fmt-2.28.0

Description

Format your pyproject.toml file

Added to portage

2026-08-17

pysubs2 - 1.9.0
Ebuild name:

dev-python/pysubs2-1.9.0

Description

Python library for editing subtitle files

Added to portage

2026-08-17

pytest-timeout - 2.5.0
Ebuild name:

dev-python/pytest-timeout-2.5.0

Description

pytest plugin to abort hanging tests

Added to portage

2026-08-17

python - 0.3.15.0_rc1-r1
Ebuild name:

dev-lang/python-0.3.15.0_rc1-r1

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-08-17

python - 3.15.0_rc1_p1-r1
Ebuild name:

dev-lang/python-3.15.0_rc1_p1-r1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-08-17

python-dotenv - 1.2.3
Ebuild name:

dev-python/python-dotenv-1.2.3

Description

Manage .env files

Added to portage

2026-08-17

rq - 2.11.0
Ebuild name:

dev-python/rq-2.11.0

Description

Simple, lightweight library for creating and processing background jobs

Added to portage

2026-08-17

tibs - 2.0.1
Ebuild name:

dev-python/tibs-2.0.1

Description

A sleek Python library for your binary data

Added to portage

2026-08-17

tpm2-pytss - 3.0.0
Ebuild name:

dev-python/tpm2-pytss-3.0.0

Description

Python bindings for TSS

Added to portage

2026-08-17

tree-sitter - 0.26.12
Ebuild name:

dev-libs/tree-sitter-0.26.12

Description

Tree-sitter is a parser generator tool and an incremental parsing libr

Added to portage

2026-08-17

tree-sitter-cli - 0.26.12
Ebuild name:

dev-util/tree-sitter-cli-0.26.12

Description

Command-line tool for creating and testing tree-sitter grammars

Added to portage

2026-08-17

xaos - 4.3.7
Ebuild name:

x11-misc/xaos-4.3.7

Description

Very fast real-time fractal zoomer

Added to portage

2026-08-17

z3 - 5.1.0
Ebuild name:

sci-mathematics/z3-5.1.0

Description

An efficient theorem prover

Added to portage

2026-08-17

zsh - 5.9.2
Ebuild name:

app-shells/zsh-5.9.2

Description

UNIX Shell similar to the Korn shell

Added to portage

2026-08-17

zxing-cpp - 3.1.1
Ebuild name:

media-libs/zxing-cpp-3.1.1

Description

C++ Multi-format 1D/2D barcode image processing library

Added to portage

2026-08-17

2026-08-16
arj - 3.10.22_p29
Ebuild name:

app-arch/arj-3.10.22_p29

Description

Utility for opening arj archives

Added to portage

2026-08-16

backports-zstd - 1.7.0
Ebuild name:

dev-python/backports-zstd-1.7.0

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2026-08-16

borgmatic - 2.1.7
Ebuild name:

app-backup/borgmatic-2.1.7

Description

Automatically create, prune and verify backups with borgbackup

Added to portage

2026-08-16

charset-normalizer - 3.5.1
Ebuild name:

dev-python/charset-normalizer-3.5.1

Description

The Real First Universal Charset Detector

Added to portage

2026-08-16

containerd - 2.3.4
Ebuild name:

app-containers/containerd-2.3.4

Description

A daemon to control runC

Added to portage

2026-08-16

crun - 1.29.1
Ebuild name:

app-containers/crun-1.29.1

Description

Fast and low-memory footprint OCI Container Runtime fully written in C

Added to portage

2026-08-16

duplicity - 3.2.0.1
Ebuild name:

app-backup/duplicity-3.2.0.1

Description

Secure backup system using GnuPG to encrypt data

Added to portage

2026-08-16

fastjsonschema - 2.22.2
Ebuild name:

dev-python/fastjsonschema-2.22.2

Description

Fast JSON schema validator for Python

Added to portage

2026-08-16

gcc - 13.4.1_p20260812
Ebuild name:

sys-devel/gcc-13.4.1_p20260812

Description

The GNU Compiler Collection

Added to portage

2026-08-16

gcc - 14.4.1_p20260813
Ebuild name:

sys-devel/gcc-14.4.1_p20260813

Description

The GNU Compiler Collection

Added to portage

2026-08-16

gcc - 15.3.1_p20260814
Ebuild name:

sys-devel/gcc-15.3.1_p20260814

Description

The GNU Compiler Collection

Added to portage

2026-08-16

gcc - 16.2.1_p20260815
Ebuild name:

sys-devel/gcc-16.2.1_p20260815

Description

The GNU Compiler Collection

Added to portage

2026-08-16

ggml - 0.19.0-r1
Ebuild name:

sci-ml/ggml-0.19.0-r1

Description

Tensor library for machine learning

Added to portage

2026-08-16

ggml - 0.20.0-r1
Ebuild name:

sci-ml/ggml-0.20.0-r1

Description

Tensor library for machine learning

Added to portage

2026-08-16

kitinerary - 26.04.3-r2
Ebuild name:

kde-apps/kitinerary-26.04.3-r2

Description

Data Model and Extraction System for Travel Reservation information

Added to portage

2026-08-16

libatasmart - 0.19_p6
Ebuild name:

dev-libs/libatasmart-0.19_p6

Description

Small and lightweight parser library for ATA S.M.A.R.T. hard disks

Added to portage

2026-08-16

macrostep-geiser - 0.2.0_p20210717
Ebuild name:

app-emacs/macrostep-geiser-0.2.0_p20210717

Description

Emacs macrostep back-end powered by geiser

Added to portage

2026-08-16

magit - 4.5.0-r1
Ebuild name:

app-emacs/magit-4.5.0-r1

Description

A Git porcelain inside Emacs

Added to portage

2026-08-16

magit - 4.6.0
Ebuild name:

app-emacs/magit-4.6.0

Description

A Git porcelain inside Emacs

Added to portage

2026-08-16

magit - 4.7.0
Ebuild name:

app-emacs/magit-4.7.0

Description

A Git porcelain inside Emacs

Added to portage

2026-08-16

magit - 9999
Ebuild name:

app-emacs/magit-9999

Description

A Git porcelain inside Emacs

Added to portage

2026-08-16

magit-popup - 2.13.3-r1
Ebuild name:

app-emacs/magit-popup-2.13.3-r1

Description

Define prefix-infix-suffix command combos

Added to portage

2026-08-16

mailcrypt - 3.5.9-r3
Ebuild name:

app-emacs/mailcrypt-3.5.9-r3

Description

Provides a simple interface to public key cryptography with OpenPGP

Added to portage

2026-08-16

man-pages-ja - 20260815
Ebuild name:

app-i18n/man-pages-ja-20260815

Description

Collection of manual pages translated into Japanese

Added to portage

2026-08-16

marginalia - 2.10
Ebuild name:

app-emacs/marginalia-2.10

Description

Marginalia in the minibuffer

Added to portage

2026-08-16

nanobind - 2.15.0
Ebuild name:

dev-python/nanobind-2.15.0

Description

Tiny and efficient C++/Python bindings

Added to portage

2026-08-16

nauty - 2.9.3
Ebuild name:

sci-mathematics/nauty-2.9.3

Description

Computing automorphism groups of graphs and digraphs

Added to portage

2026-08-16

obs-studio - 32.2.2
Ebuild name:

media-video/obs-studio-32.2.2

Description

Software for Recording and Streaming Live Video Content

Added to portage

2026-08-16

ollama - 0.32.9-r2
Ebuild name:

sci-ml/ollama-0.32.9-r2

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-08-16

openbsd-netcat - 1.238_p1
Ebuild name:

net-analyzer/openbsd-netcat-1.238_p1

Description

The OpenBSD network swiss army knife

Added to portage

2026-08-16

openrgb - 1.0_rc3
Ebuild name:

app-misc/openrgb-1.0_rc3

Description

Open source RGB lighting control

Added to portage

2026-08-16

podman - 5.8.6
Ebuild name:

app-containers/podman-5.8.6

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-08-16

podman - 6.1.0
Ebuild name:

app-containers/podman-6.1.0

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-08-16

python-json-logger - 4.2.0
Ebuild name:

dev-python/python-json-logger-4.2.0

Description

Standard python logging to output log data as json objects

Added to portage

2026-08-16

pywayland - 0.4.19
Ebuild name:

dev-python/pywayland-0.4.19

Description

Python bindings for the libwayland library

Added to portage

2026-08-16

qemu - 10.2.3-r1
Ebuild name:

app-emulation/qemu-10.2.3-r1

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2026-08-16

shtab - 1.11.0
Ebuild name:

dev-python/shtab-1.11.0

Description

Automagic shell tab completion for Python CLI applications

Added to portage

2026-08-16

sip - 6.16.1
Ebuild name:

dev-python/sip-6.16.1

Description

Python bindings generator for C/C++ libraries

Added to portage

2026-08-16

tifffile - 2026.8.16
Ebuild name:

dev-python/tifffile-2026.8.16

Description

Read and write TIFF files

Added to portage

2026-08-16

webencodings - 0.6.1
Ebuild name:

dev-python/webencodings-0.6.1

Description

Character encoding aliases for legacy web content

Added to portage

2026-08-16

wrapt - 2.4.0_rc4
Ebuild name:

dev-python/wrapt-2.4.0_rc4

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-08-16

zabbix - 6.0.48
Ebuild name:

net-analyzer/zabbix-6.0.48

Description

ZABBIX is software for monitoring of your applications, network and serv

Added to portage

2026-08-16

zabbix - 7.0.29
Ebuild name:

net-analyzer/zabbix-7.0.29

Description

ZABBIX is software for monitoring of your applications, network and serv

Added to portage

2026-08-16

zabbix - 7.4.13
Ebuild name:

net-analyzer/zabbix-7.4.13

Description

ZABBIX is software for monitoring of your applications, network and serv

Added to portage

2026-08-16

zip - 3.0_p16
Ebuild name:

app-arch/zip-3.0_p16

Description

Info ZIP (encryption support)

Added to portage

2026-08-16

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