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:

82715

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-01-04
aiohttp - 3.13.3
Ebuild name:

dev-python/aiohttp-3.13.3

Description

HTTP client/server for asyncio

Added to portage

2026-01-04

astroid - 4.0.3
Ebuild name:

dev-python/astroid-4.0.3

Description

Abstract Syntax Tree for logilab packages

Added to portage

2026-01-04

badkeys - 0.0.16
Ebuild name:

app-crypt/badkeys-0.0.16

Description

Check cryptographic keys for known weaknesses

Added to portage

2026-01-04

brotli - 1.2.0-r1
Ebuild name:

app-arch/brotli-1.2.0-r1

Description

Generic-purpose lossless compression algorithm

Added to portage

2026-01-04

cifs-utils - 7.5
Ebuild name:

net-fs/cifs-utils-7.5

Description

Tools for Managing Linux CIFS Client Filesystems

Added to portage

2026-01-04

clang - 22.0.0_pre20260103
Ebuild name:

dev-python/clang-22.0.0_pre20260103

Description

Python bindings for llvm-core/clang

Added to portage

2026-01-04

clang - 22.0.0_pre20260103
Ebuild name:

llvm-core/clang-22.0.0_pre20260103

Description

C language family frontend for LLVM

Added to portage

2026-01-04

clang-common - 22.0.0_pre20260103
Ebuild name:

llvm-core/clang-common-22.0.0_pre20260103

Description

Common files shared between multiple slots of clang

Added to portage

2026-01-04

compiler-rt - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/compiler-rt-22.0.0_pre20260103

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-01-04

compiler-rt-sanitizers - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-22.0.0_pre20260103

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-01-04

cython - 3.1.8
Ebuild name:

dev-python/cython-3.1.8

Description

A Python to C compiler

Added to portage

2026-01-04

fish - 4.3.2
Ebuild name:

app-shells/fish-4.3.2

Description

Friendly Interactive SHell

Added to portage

2026-01-04

flang - 22.0.0_pre20260103
Ebuild name:

llvm-core/flang-22.0.0_pre20260103

Description

LLVM's Fortran frontend

Added to portage

2026-01-04

flang-rt - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/flang-rt-22.0.0_pre20260103

Description

LLVM's Fortran runtime

Added to portage

2026-01-04

gallery-dl - 1.31.2
Ebuild name:

net-misc/gallery-dl-1.31.2

Description

Download image galleries and collections from several image hosting site

Added to portage

2026-01-04

gcc - 13.4.1_p20260101
Ebuild name:

sys-devel/gcc-13.4.1_p20260101

Description

The GNU Compiler Collection

Added to portage

2026-01-04

gcc - 14.3.1_p20260102
Ebuild name:

sys-devel/gcc-14.3.1_p20260102

Description

The GNU Compiler Collection

Added to portage

2026-01-04

gcc - 15.2.1_p20260103
Ebuild name:

sys-devel/gcc-15.2.1_p20260103

Description

The GNU Compiler Collection

Added to portage

2026-01-04

gnatdoc - 25.0.0-r6
Ebuild name:

dev-ada/gnatdoc-25.0.0-r6

Description

GNAT Documentation Generation Tool

Added to portage

2026-01-04

gnatdoc - 25.2.0
Ebuild name:

dev-ada/gnatdoc-25.2.0

Description

GNAT Documentation Generation Tool

Added to portage

2026-01-04

hypothesis - 6.148.11
Ebuild name:

dev-python/hypothesis-6.148.11

Description

A library for property based testing

Added to portage

2026-01-04

libclc - 22.0.0_pre20260103
Ebuild name:

llvm-core/libclc-22.0.0_pre20260103

Description

OpenCL C library

Added to portage

2026-01-04

libcxx - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libcxx-22.0.0_pre20260103

Description

New implementation of the C++ standard library, targeting C

Added to portage

2026-01-04

libcxxabi - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libcxxabi-22.0.0_pre20260103

Description

Low level support for a standard C++ library

Added to portage

2026-01-04

libgcc - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libgcc-22.0.0_pre20260103

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-01-04

libgcrypt - 1.11.2-r1
Ebuild name:

dev-libs/libgcrypt-1.11.2-r1

Description

General purpose crypto library based on the code used in GnuPG

Added to portage

2026-01-04

libpcap - 1.10.6
Ebuild name:

net-libs/libpcap-1.10.6

Description

A system-independent library for user-level network packet capture

Added to portage

2026-01-04

libtpms - 0.10.2
Ebuild name:

dev-libs/libtpms-0.10.2

Description

Library providing software emulation of a TPM

Added to portage

2026-01-04

libunwind - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libunwind-22.0.0_pre20260103

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-01-04

liquidshell - 1.10.1
Ebuild name:

gui-apps/liquidshell-1.10.1

Description

Basic desktop shell using QtWidgets

Added to portage

2026-01-04

lit - 22.0.0_pre20260103
Ebuild name:

dev-python/lit-22.0.0_pre20260103

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-01-04

lld - 22.0.0_pre20260103
Ebuild name:

llvm-core/lld-22.0.0_pre20260103

Description

The LLVM linker (link editor)

Added to portage

2026-01-04

lldb - 22.0.0_pre20260103
Ebuild name:

llvm-core/lldb-22.0.0_pre20260103

Description

The LLVM debugger

Added to portage

2026-01-04

llvm - 22.0.0_pre20260103
Ebuild name:

dev-ml/llvm-22.0.0_pre20260103

Description

OCaml bindings for LLVM

Added to portage

2026-01-04

llvm - 22.0.0_pre20260103
Ebuild name:

llvm-core/llvm-22.0.0_pre20260103

Description

Low Level Virtual Machine

Added to portage

2026-01-04

llvm-common - 22.0.0_pre20260103
Ebuild name:

llvm-core/llvm-common-22.0.0_pre20260103

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-01-04

locale-gen - 3.9-r2
Ebuild name:

sys-apps/locale-gen-3.9-r2

Description

Generate locales based upon the config file /etc/locale.gen

Added to portage

2026-01-04

mlir - 22.0.0_pre20260103
Ebuild name:

llvm-core/mlir-22.0.0_pre20260103

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-01-04

nprolog - 4.79
Ebuild name:

dev-lang/nprolog-4.79

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-01-04

offload - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/offload-22.0.0_pre20260103

Description

OpenMP offloading support

Added to portage

2026-01-04

openmp - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/openmp-22.0.0_pre20260103

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2026-01-04

openpgp-keys-tcpdump - 20260104
Ebuild name:

sec-keys/openpgp-keys-tcpdump-20260104

Description

OpenPGP keys used to sign tcpdump releases

Added to portage

2026-01-04

package-lint - 0.26
Ebuild name:

app-emacs/package-lint-0.26

Description

Linting library for Emacs Lisp package metadata

Added to portage

2026-01-04

pandoc-mode - 2.35
Ebuild name:

app-emacs/pandoc-mode-2.35

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2026-01-04

pkgcheck - 0.10.39
Ebuild name:

dev-util/pkgcheck-0.10.39

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-01-04

pkgcore - 0.12.32
Ebuild name:

sys-apps/pkgcore-0.12.32

Description

a framework for package management

Added to portage

2026-01-04

polly - 22.0.0_pre20260103
Ebuild name:

llvm-core/polly-22.0.0_pre20260103

Description

Polyhedral optimizations for LLVM

Added to portage

2026-01-04

pygresql - 6.2.2
Ebuild name:

dev-python/pygresql-6.2.2

Description

A Python interface for the PostgreSQL database

Added to portage

2026-01-04

suite3270 - 4.5_p5
Ebuild name:

net-misc/suite3270-4.5_p5

Description

Complete 3270 (S390) access package

Added to portage

2026-01-04

tcpdump - 4.99.6
Ebuild name:

net-analyzer/tcpdump-4.99.6

Description

Tool for network monitoring and data acquisition

Added to portage

2026-01-04

2026-01-03
awscli - 1.44.11
Ebuild name:

app-admin/awscli-1.44.11

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-03

bcachefs-tools - 1.34.0
Ebuild name:

sys-fs/bcachefs-tools-1.34.0

Description

Tools for bcachefs

Added to portage

2026-01-03

boto3 - 1.42.21
Ebuild name:

dev-python/boto3-1.42.21

Description

The AWS SDK for Python

Added to portage

2026-01-03

botocore - 1.42.21
Ebuild name:

dev-python/botocore-1.42.21

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-03

cargo-nextest - 0.9.117
Ebuild name:

dev-util/cargo-nextest-0.9.117

Description

Next-generation test runner for Rust

Added to portage

2026-01-03

elementary-xfce-icon-theme - 0.22
Ebuild name:

x11-themes/elementary-xfce-icon-theme-0.22

Description

Elementary icons forked from upstream, extended and main

Added to portage

2026-01-03

filelock - 3.20.2
Ebuild name:

dev-python/filelock-3.20.2

Description

A platform independent file lock for Python

Added to portage

2026-01-03

gentoo-sources - 6.18.3
Ebuild name:

sys-kernel/gentoo-sources-6.18.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-01-03

geolith-jg - 0.3.0
Ebuild name:

games-emulation/geolith-jg-0.3.0

Description

Jolly Good Neo Geo AES/MVS Emulator

Added to portage

2026-01-03

git - 4.1.0
Ebuild name:

dev-ruby/git-4.1.0

Description

Library for using Git in Ruby

Added to portage

2026-01-03

glycin-loaders - 2.1_alpha
Ebuild name:

media-libs/glycin-loaders-2.1_alpha

Description

Loaders for glycin clients (glycin crate or libglycin)

Added to portage

2026-01-03

gpr - 24.0.0-r3
Ebuild name:

dev-ada/gpr-24.0.0-r3

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

gpr - 24.2.0-r1
Ebuild name:

dev-ada/gpr-24.2.0-r1

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

gpr - 25.0.0-r4
Ebuild name:

dev-ada/gpr-25.0.0-r4

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

highs - 1.12.0
Ebuild name:

sci-mathematics/highs-1.12.0

Description

Modern solver for linear, quadratic, and mixed-integer programs

Added to portage

2026-01-03

hoe - 4.5.1
Ebuild name:

dev-ruby/hoe-4.5.1

Description

Hoe extends rake to provide full project automation

Added to portage

2026-01-03

mgba - 0.11.0_pre20260101
Ebuild name:

games-emulation/mgba-0.11.0_pre20260101

Description

Game Boy Advance Emulator

Added to portage

2026-01-03

mpmath - 1.4.0_beta3
Ebuild name:

dev-python/mpmath-1.4.0_beta3

Description

Python library for arbitrary-precision floating-point arithmetic

Added to portage

2026-01-03

openpgp-keys-gentoo-developers - 20251229
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20251229

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-03

openttd - 15.0
Ebuild name:

games-simulation/openttd-15.0

Description

A clone of Transport Tycoon Deluxe

Added to portage

2026-01-03

patatt - 0.7.0
Ebuild name:

dev-python/patatt-0.7.0

Description

A simple library to add cryptographic attestation to patches sent via email

Added to portage

2026-01-03

pillow - 12.1.0
Ebuild name:

dev-python/pillow-12.1.0

Description

Python Imaging Library (fork)

Added to portage

2026-01-03

pkgcheck - 0.10.37-r1
Ebuild name:

dev-util/pkgcheck-0.10.37-r1

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-01-03

pkgcore - 0.12.30-r1
Ebuild name:

sys-apps/pkgcore-0.12.30-r1

Description

a framework for package management

Added to portage

2026-01-03

portage-utils - 0.99
Ebuild name:

app-portage/portage-utils-0.99

Description

Small and fast Portage helper tools written in C

Added to portage

2026-01-03

pyside - 6.10.1-r3
Ebuild name:

dev-python/pyside-6.10.1-r3

Description

Python bindings for the Qt framework

Added to portage

2026-01-03

qemu - 10.2.0-r1
Ebuild name:

app-emulation/qemu-10.2.0-r1

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2026-01-03

refind - 0.14.2-r4
Ebuild name:

sys-boot/refind-0.14.2-r4

Description

The UEFI Boot Manager by Rod Smith

Added to portage

2026-01-03

rgbds - 1.0.1
Ebuild name:

dev-util/rgbds-1.0.1

Description

Rednex Game Boy Development System

Added to portage

2026-01-03

rhash - 1.4.6-r1
Ebuild name:

app-crypt/rhash-1.4.6-r1

Description

Console utility and library for computing and verifying file hash sums

Added to portage

2026-01-03

rmg - 0.8.8
Ebuild name:

games-emulation/rmg-0.8.8

Description

Rosalie's Mupen GUI

Added to portage

2026-01-03

rotix - 0.83-r3
Ebuild name:

app-crypt/rotix-0.83-r3

Description

Rotix allows you to generate rotational obfuscations

Added to portage

2026-01-03

rpm-sequoia - 1.10.0
Ebuild name:

app-crypt/rpm-sequoia-1.10.0

Description

Implementation of the RPM PGP interface using Sequoia

Added to portage

2026-01-03

rpm-sequoia - 1.9.0
Ebuild name:

app-crypt/rpm-sequoia-1.9.0

Description

Implementation of the RPM PGP interface using Sequoia

Added to portage

2026-01-03

ruamel-yaml - 0.19.1
Ebuild name:

dev-python/ruamel-yaml-0.19.1

Description

YAML parser/emitter that supports roundtrip comment preservation

Added to portage

2026-01-03

ruamel-yaml-clibz - 0.3.7
Ebuild name:

dev-python/ruamel-yaml-clibz-0.3.7

Description

C-based reader/scanner and emitter for dev-python/ruamel-yaml

Added to portage

2026-01-03

sbctl - 0.15.4
Ebuild name:

app-crypt/sbctl-0.15.4

Description

Secure Boot key manager

Added to portage

2026-01-03

sbctl - 0.16
Ebuild name:

app-crypt/sbctl-0.16

Description

Secure Boot key manager

Added to portage

2026-01-03

snakeoil - 0.11.0
Ebuild name:

dev-python/snakeoil-0.11.0

Description

misc common functionality and useful optimizations

Added to portage

2026-01-03

sphinx-autodoc-typehints - 3.6.2
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.6.2

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-01-03

sus-fixtures-console - 0.5.0
Ebuild name:

dev-ruby/sus-fixtures-console-0.5.0

Description

Test fixtures for capturing Console output

Added to portage

2026-01-03

tox - 4.33.0
Ebuild name:

dev-python/tox-4.33.0

Description

virtualenv-based automation of test activities

Added to portage

2026-01-03

vanilla-sources - 6.18.3
Ebuild name:

sys-kernel/vanilla-sources-6.18.3

Description

Full sources for the Linux kernel

Added to portage

2026-01-03

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