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:

85237

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-20
2026-05-19
amdgpu_top - 0.11.5
Ebuild name:

sys-apps/amdgpu_top-0.11.5

Description

Tool to display AMDGPU usage

Added to portage

2026-05-19

audit - 4.1.4-r2
Ebuild name:

sys-process/audit-4.1.4-r2

Description

Userspace utilities for storing and processing auditing records

Added to portage

2026-05-19

awscli - 1.45.10
Ebuild name:

app-admin/awscli-1.45.10

Description

Universal Command Line Environment for AWS

Added to portage

2026-05-19

bear - 4.1.3
Ebuild name:

dev-util/bear-4.1.3

Description

A tool that generates a compilation database for clang tooling

Added to portage

2026-05-19

beets - 2.10.0
Ebuild name:

media-sound/beets-2.10.0

Description

Media library management system for obsessive music geeks

Added to portage

2026-05-19

beets - 2.11.0
Ebuild name:

media-sound/beets-2.11.0

Description

Media library management system for obsessive music geeks

Added to portage

2026-05-19

black - 26.5.1
Ebuild name:

dev-python/black-26.5.1

Description

The uncompromising Python code formatter

Added to portage

2026-05-19

boto3 - 1.43.10
Ebuild name:

dev-python/boto3-1.43.10

Description

The AWS SDK for Python

Added to portage

2026-05-19

botocore - 1.43.10
Ebuild name:

dev-python/botocore-1.43.10

Description

Low-level, data-driven core of boto 3

Added to portage

2026-05-19

cachetools - 7.1.3
Ebuild name:

dev-python/cachetools-7.1.3

Description

Extensible memoizing collections and decorators

Added to portage

2026-05-19

caja - 1.28.0-r3
Ebuild name:

mate-base/caja-1.28.0-r3

Description

Caja file manager for the MATE desktop

Added to portage

2026-05-19

click - 8.4.0
Ebuild name:

dev-python/click-8.4.0

Description

A Python package for creating beautiful command line interfaces

Added to portage

2026-05-19

clojure - 1.12.5
Ebuild name:

dev-lang/clojure-1.12.5

Description

General-purpose programming language with an emphasis on functional program

Added to portage

2026-05-19

clojure-tools - 1.12.5.1645
Ebuild name:

dev-util/clojure-tools-1.12.5.1645

Description

Development tools for the Clojure programming language

Added to portage

2026-05-19

closure-compiler-bin - 20260513
Ebuild name:

dev-lang/closure-compiler-bin-20260513

Description

JavaScript optimizing compiler

Added to portage

2026-05-19

consoleet-utils - 1.11
Ebuild name:

app-misc/consoleet-utils-1.11

Description

Set of utilities for manipulating terminal fonts and colors

Added to portage

2026-05-19

cronie - 1.7.2-r1
Ebuild name:

sys-process/cronie-1.7.2-r1

Description

Cronie is a standard UNIX daemon cron based on the original vixie-cron

Added to portage

2026-05-19

crystal - 1.20.2
Ebuild name:

dev-lang/crystal-1.20.2

Description

The Crystal Programming Language

Added to portage

2026-05-19

cxxtools - 3.0-r4
Ebuild name:

dev-libs/cxxtools-3.0-r4

Description

Collection of general purpose C++-classes

Added to portage

2026-05-19

dbus - 1.16.2-r1
Ebuild name:

sys-apps/dbus-1.16.2-r1

Description

A message bus system, a simple way for applications to talk to each other

Added to portage

2026-05-19

decorator - 5.3.1
Ebuild name:

dev-python/decorator-5.3.1

Description

Simplifies the usage of decorators for the average programmer

Added to portage

2026-05-19

devcontainer - 0.87.0
Ebuild name:

app-containers/devcontainer-0.87.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-05-19

fable - 4.29.0-r2
Ebuild name:

dev-dotnet/fable-4.29.0-r2

Description

F to JavaScript, TypeScript, Python, Rust and Dart Compiler

Added to portage

2026-05-19

fable - 5.0.0-r2
Ebuild name:

dev-dotnet/fable-5.0.0-r2

Description

F to JavaScript, TypeScript, Python, Rust and Dart Compiler

Added to portage

2026-05-19

firefox - 151.0
Ebuild name:

www-client/firefox-151.0

Description

Firefox Web Browser

Added to portage

2026-05-19

firefox-l10n - 151.0
Ebuild name:

www-client/firefox-l10n-151.0

Description

Firefox Web Browser's translation files

Added to portage

2026-05-19

fish - 4.7.1
Ebuild name:

app-shells/fish-4.7.1

Description

Friendly Interactive SHell

Added to portage

2026-05-19

gdal - 3.12.4
Ebuild name:

sci-libs/gdal-3.12.4

Description

Translator library for raster geospatial data formats (includes OGR support)

Added to portage

2026-05-19

gentoo-sources - 5.10.256-r1
Ebuild name:

sys-kernel/gentoo-sources-5.10.256-r1

Description

Full sources including the Gentoo patchset for the . kernel t

Added to portage

2026-05-19

gentoo-sources - 5.15.207-r1
Ebuild name:

sys-kernel/gentoo-sources-5.15.207-r1

Description

Full sources including the Gentoo patchset for the . kernel t

Added to portage

2026-05-19

gentoo-sources - 6.1.173-r1
Ebuild name:

sys-kernel/gentoo-sources-6.1.173-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 6.12.90-r1
Ebuild name:

sys-kernel/gentoo-sources-6.12.90-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 6.18.32-r1
Ebuild name:

sys-kernel/gentoo-sources-6.18.32-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 6.6.140-r1
Ebuild name:

sys-kernel/gentoo-sources-6.6.140-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 7.0.9-r1
Ebuild name:

sys-kernel/gentoo-sources-7.0.9-r1

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-19

goland - 2025.3.4
Ebuild name:

dev-util/goland-2025.3.4

Description

Golang IDE by JetBrains

Added to portage

2026-05-19

goland - 2026.1
Ebuild name:

dev-util/goland-2026.1

Description

Golang IDE by JetBrains

Added to portage

2026-05-19

goland - 2026.1.1
Ebuild name:

dev-util/goland-2026.1.1

Description

Golang IDE by JetBrains

Added to portage

2026-05-19

gr-ieee802154 - 0.0_p20210719-r5
Ebuild name:

net-wireless/gr-ieee802154-0.0_p20210719-r5

Description

IEEE 802.15.4 ZigBee Transceiver

Added to portage

2026-05-19

gr-ieee802154 - 0.0_p20230828-r1
Ebuild name:

net-wireless/gr-ieee802154-0.0_p20230828-r1

Description

IEEE 802.15.4 ZigBee Transceiver

Added to portage

2026-05-19

hxtools - 20251011
Ebuild name:

dev-util/hxtools-20251011

Description

Collection of tools and scripts

Added to portage

2026-05-19

hypothesis - 6.152.8
Ebuild name:

dev-python/hypothesis-6.152.8

Description

A library for property based testing

Added to portage

2026-05-19

icalendar - 7.1.1
Ebuild name:

dev-python/icalendar-7.1.1

Description

RFC 5545 compatible parser and generator of iCalendar files

Added to portage

2026-05-19

jf - 1.0.0
Ebuild name:

app-misc/jf-1.0.0

Description

A small utility to safely format and print JSON objects in the commandline

Added to portage

2026-05-19

joplin-desktop - 3.7.1
Ebuild name:

app-office/joplin-desktop-3.7.1

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-05-19

libpqxx - 7.10.6
Ebuild name:

dev-libs/libpqxx-7.10.6

Description

Standard front-end for writing C++ programs that use PostgreSQL

Added to portage

2026-05-19

libpqxx - 7.10.7
Ebuild name:

dev-libs/libpqxx-7.10.7

Description

Standard front-end for writing C++ programs that use PostgreSQL

Added to portage

2026-05-19

libpqxx - 8.0.1
Ebuild name:

dev-libs/libpqxx-8.0.1

Description

Standard front-end for writing C++ programs that use PostgreSQL

Added to portage

2026-05-19

librepcb - 1.3.0-r1
Ebuild name:

sci-electronics/librepcb-1.3.0-r1

Description

Free EDA software to develop printed circuit boards

Added to portage

2026-05-19

libreplaygain - 483-r1
Ebuild name:

media-libs/libreplaygain-483-r1

Description

Replay Gain library from Musepack

Added to portage

2026-05-19

libtmux - 0.57.1
Ebuild name:

dev-python/libtmux-0.57.1

Description

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

Added to portage

2026-05-19

lxml - 6.1.1
Ebuild name:

dev-python/lxml-6.1.1

Description

A Pythonic binding for the libxml2 and libxslt libraries

Added to portage

2026-05-19

memtest86+ - 8.10
Ebuild name:

sys-apps/memtest86+-8.10

Description

Memory tester based on PCMemTest

Added to portage

2026-05-19

moolticute - 1.03.0-r2
Ebuild name:

app-crypt/moolticute-1.03.0-r2

Description

Mooltipass crossplatform daemon/tools

Added to portage

2026-05-19

moolticute - 9999
Ebuild name:

app-crypt/moolticute-9999

Description

Mooltipass crossplatform daemon/tools

Added to portage

2026-05-19

mpg123-base - 1.33.5
Ebuild name:

media-sound/mpg123-base-1.33.5

Description

Realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3

Added to portage

2026-05-19

mpg123-output-plugins - 1.33.5
Ebuild name:

media-plugins/mpg123-output-plugins-1.33.5

Description

Plugins for mpg123, the realtime MPEG 1.0/2.0/2.5 audio

Added to portage

2026-05-19

mtd-utils - 2.3.1
Ebuild name:

sys-fs/mtd-utils-2.3.1

Description

MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)

Added to portage

2026-05-19

mycli - 1.72.1
Ebuild name:

dev-db/mycli-1.72.1

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2026-05-19

nasty - 0.6-r2
Ebuild name:

app-crypt/nasty-0.6-r2

Description

Proof-of-concept GPG passphrase recovery tool

Added to portage

2026-05-19

nethack - 5.0.0-r1
Ebuild name:

games-roguelike/nethack-5.0.0-r1

Description

The ultimate old-school single player dungeon exploration game

Added to portage

2026-05-19

numpy - 2.4.6
Ebuild name:

dev-python/numpy-2.4.6

Description

Fast array and numerical python library

Added to portage

2026-05-19

openpgp-keys-yubico - 20260509
Ebuild name:

sec-keys/openpgp-keys-yubico-20260509

Description

OpenPGP keys used by Yubico's developers

Added to portage

2026-05-19

openstacksdk - 4.13.0
Ebuild name:

dev-python/openstacksdk-4.13.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-05-19

oslo-config - 10.4.0
Ebuild name:

dev-python/oslo-config-10.4.0

Description

Oslo Configuration API

Added to portage

2026-05-19

oslo-context - 6.4.0
Ebuild name:

dev-python/oslo-context-6.4.0

Description

Helpers to maintain useful information about a request context

Added to portage

2026-05-19

oslo-i18n - 6.8.0
Ebuild name:

dev-python/oslo-i18n-6.8.0

Description

Oslo i18n library

Added to portage

2026-05-19

oslo-log - 8.2.0
Ebuild name:

dev-python/oslo-log-8.2.0

Description

OpenStack logging config library, configuration for all openstack project

Added to portage

2026-05-19

oslo-serialization - 5.10.0
Ebuild name:

dev-python/oslo-serialization-5.10.0

Description

Oslo Serialization library

Added to portage

2026-05-19

passwdqc - 2.1.0-r1
Ebuild name:

sys-auth/passwdqc-2.1.0-r1

Description

Password strength checking library (and PAM module)

Added to portage

2026-05-19

patool - 4.0.5
Ebuild name:

app-arch/patool-4.0.5

Description

Portable archive file manager

Added to portage

2026-05-19

ppsspp - 1.20.4
Ebuild name:

games-emulation/ppsspp-1.20.4

Description

A PSP emulator written in C++

Added to portage

2026-05-19

procenv - 0.60
Ebuild name:

sys-process/procenv-0.60

Description

command-line utility to show process environment

Added to portage

2026-05-19

pysnmp - 7.1.27
Ebuild name:

dev-python/pysnmp-7.1.27

Description

Python SNMP library

Added to portage

2026-05-19

python-ironicclient - 6.1.0
Ebuild name:

dev-python/python-ironicclient-6.1.0

Description

Python bindings for the Ironic API

Added to portage

2026-05-19

python-openstackclient - 10.0.0
Ebuild name:

dev-python/python-openstackclient-10.0.0

Description

A client for the OpenStack APIs

Added to portage

2026-05-19

requests-ratelimiter - 0.10.0
Ebuild name:

dev-python/requests-ratelimiter-0.10.0

Description

Rate-limiting for the requests library

Added to portage

2026-05-19

scx - 1.1.1
Ebuild name:

sys-kernel/scx-1.1.1

Description

sched_ext schedulers and tools

Added to portage

2026-05-19

scx-loader - 1.1.1
Ebuild name:

sys-kernel/scx-loader-1.1.1

Description

DBUS on-demand loader of sched-ext schedulers

Added to portage

2026-05-19

setuptools-gettext - 0.1.17
Ebuild name:

dev-python/setuptools-gettext-0.1.17

Description

Setuptools plugin for building mo files

Added to portage

2026-05-19

stevedore - 5.8.0
Ebuild name:

dev-python/stevedore-5.8.0

Description

Manage dynamic plugins for Python applications

Added to portage

2026-05-19

strongswan - 6.0.4-r1
Ebuild name:

net-vpn/strongswan-6.0.4-r1

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2026-05-19

superqt - 0.8.2
Ebuild name:

dev-python/superqt-0.8.2

Description

Missing widgets and components for PyQt/PySide

Added to portage

2026-05-19

tuf - 7.0.0
Ebuild name:

dev-python/tuf-7.0.0

Description

A secure updater framework for Python

Added to portage

2026-05-19

tuxpaint - 0.9.35-r1
Ebuild name:

media-gfx/tuxpaint-0.9.35-r1

Description

Drawing program designed for young children

Added to portage

2026-05-19

types-docutils - 0.22.3.20260518
Ebuild name:

dev-python/types-docutils-0.22.3.20260518

Description

Typing stubs for docutils

Added to portage

2026-05-19

types-gdb - 16.3.0.20260518
Ebuild name:

dev-python/types-gdb-16.3.0.20260518

Description

Typing stubs for gdb

Added to portage

2026-05-19

types-psutil - 7.2.2.20260518
Ebuild name:

dev-python/types-psutil-7.2.2.20260518

Description

Typing stubs for psutil

Added to portage

2026-05-19

types-python-dateutil - 2.9.0.20260518
Ebuild name:

dev-python/types-python-dateutil-2.9.0.20260518

Description

Typing stubs for python-dateutil

Added to portage

2026-05-19

types-setuptools - 82.0.0.20260518
Ebuild name:

dev-python/types-setuptools-82.0.0.20260518

Description

Typing stubs for setuptools

Added to portage

2026-05-19

umockdev - 0.19.7-r1
Ebuild name:

dev-util/umockdev-0.19.7-r1

Description

Mock hardware devices for creating unit tests

Added to portage

2026-05-19

uv - 0.11.15
Ebuild name:

dev-python/uv-0.11.15

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-05-19

uv-build - 0.11.15
Ebuild name:

dev-python/uv-build-0.11.15

Description

PEP517 uv build backend

Added to portage

2026-05-19

vinyl-cache - 8.0.2
Ebuild name:

www-servers/vinyl-cache-8.0.2

Description

Varnish is a state-of-the-art, high-performance HTTP accelerator

Added to portage

2026-05-19

vinyl-cache - 9.0.1
Ebuild name:

www-servers/vinyl-cache-9.0.1

Description

A high-performance caching HTTP reverse proxy

Added to portage

2026-05-19

watchfiles - 1.2.0
Ebuild name:

dev-python/watchfiles-1.2.0

Description

Simple, modern file watching and code reload in Python

Added to portage

2026-05-19

xmlsec - 1.3.11-r1
Ebuild name:

dev-libs/xmlsec-1.3.11-r1

Description

Command line tool for signing, verifying, encrypting and decrypting XML

Added to portage

2026-05-19

zeroconf - 0.149.7
Ebuild name:

dev-python/zeroconf-0.149.7

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi comp

Added to portage

2026-05-19

zipp - 4.1.0
Ebuild name:

dev-python/zipp-4.1.0

Description

Backport of pathlib-compatible object wrapper for zip files

Added to portage

2026-05-19

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