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:

82970

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-27
actionpack - 8.1.2
Ebuild name:

dev-ruby/actionpack-8.1.2

Description

Eases web-request routing, handling, and response

Added to portage

2026-01-27

actionview - 8.1.2
Ebuild name:

dev-ruby/actionview-8.1.2

Description

Simple, battle-tested conventions and helpers for building web pages

Added to portage

2026-01-27

activejob - 8.1.2
Ebuild name:

dev-ruby/activejob-8.1.2

Description

Job framework with pluggable queues

Added to portage

2026-01-27

activemodel - 8.1.2
Ebuild name:

dev-ruby/activemodel-8.1.2

Description

Toolkit for building modeling frameworks like Active Record and Active R

Added to portage

2026-01-27

activerecord - 8.1.2
Ebuild name:

dev-ruby/activerecord-8.1.2

Description

Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM

Added to portage

2026-01-27

commons-cli - 1.11.0
Ebuild name:

dev-java/commons-cli-1.11.0

Description

A Java library for working with the command line arguments and options

Added to portage

2026-01-27

commons-digester - 3.2-r5
Ebuild name:

dev-java/commons-digester-3.2-r5

Description

Reads XML configuration files to provide initialization of various

Added to portage

2026-01-27

commons-exec - 1.6.0
Ebuild name:

dev-java/commons-exec-1.6.0

Description

Utility classes, stream implementations, file filters, and much more

Added to portage

2026-01-27

commons-io - 2.21.0
Ebuild name:

dev-java/commons-io-2.21.0

Description

Utility classes, stream implementations, file filters, and much more

Added to portage

2026-01-27

commons-lang - 3.20.0
Ebuild name:

dev-java/commons-lang-3.20.0

Description

Commons components to manipulate core java classes

Added to portage

2026-01-27

dar - 2.8.3
Ebuild name:

app-backup/dar-2.8.3

Description

A full featured backup tool, aimed for disks

Added to portage

2026-01-27

dnscap - 2.5.1
Ebuild name:

net-dns/dnscap-2.5.1

Description

Network capture utility designed specifically for DNS traffic

Added to portage

2026-01-27

gns3-gui - 2.2.56
Ebuild name:

net-misc/gns3-gui-2.2.56

Description

Graphical Network Simulator

Added to portage

2026-01-27

gns3-server - 2.2.56
Ebuild name:

net-misc/gns3-server-2.2.56

Description

GNS3 server to asynchronously manage emulators

Added to portage

2026-01-27

godot - 4.6
Ebuild name:

dev-games/godot-4.6

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2026-01-27

openpgp-keys-pam - 20260122
Ebuild name:

sec-keys/openpgp-keys-pam-20260122

Description

OpenPGP keys used by the linux-pam project

Added to portage

2026-01-27

opus - 1.6.1
Ebuild name:

media-libs/opus-1.6.1

Description

Open codec for interactive speech and music transmission over the Internet

Added to portage

2026-01-27

pam - 1.7.2
Ebuild name:

sys-libs/pam-1.7.2

Description

Linux-PAM (Pluggable Authentication Modules)

Added to portage

2026-01-27

picard - 3.0_pre20260126
Ebuild name:

media-sound/picard-3.0_pre20260126

Description

Cross-platform music tagger

Added to portage

2026-01-27

qdevicemonitor - 1.0.1-r4
Ebuild name:

dev-util/qdevicemonitor-1.0.1-r4

Description

Crossplatform log viewer for Android, iOS and text files

Added to portage

2026-01-27

railties - 8.1.2
Ebuild name:

dev-ruby/railties-8.1.2

Description

Tools for creating, working with, and running Rails applications

Added to portage

2026-01-27

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-27

sbctl - 0.15.4
Ebuild name:

app-crypt/sbctl-0.15.4

Description

Secure Boot key manager

Added to portage

2026-01-27

smplayer-skins - 20.11.0
Ebuild name:

x11-themes/smplayer-skins-20.11.0

Description

Skins for SMPlayer

Added to portage

2026-01-27

smplayer-themes - 20.11.0
Ebuild name:

x11-themes/smplayer-themes-20.11.0

Description

Icon themes for smplayer

Added to portage

2026-01-27

weechat - 4.7.2-r1
Ebuild name:

net-irc/weechat-4.7.2-r1

Description

Portable and multi-interface IRC client

Added to portage

2026-01-27

wine-proton - 10.0.4
Ebuild name:

app-emulation/wine-proton-10.0.4

Description

Valve Software's fork of Wine

Added to portage

2026-01-27

2026-01-26
activesupport - 8.1.2
Ebuild name:

dev-ruby/activesupport-8.1.2

Description

Utility Classes and Extension to the Standard Library

Added to portage

2026-01-26

anydesk - 7.1.3
Ebuild name:

net-misc/anydesk-7.1.3

Description

Feature rich multi-platform remote desktop application

Added to portage

2026-01-26

awkward - 2.8.12
Ebuild name:

dev-python/awkward-2.8.12

Description

Manipulate JSON-like data with NumPy-like idioms

Added to portage

2026-01-26

cachetools - 6.2.5
Ebuild name:

dev-python/cachetools-6.2.5

Description

Extensible memoizing collections and decorators

Added to portage

2026-01-26

cccc - 3.2.0
Ebuild name:

dev-util/cccc-3.2.0

Description

Source metrics (line counts, complexity, etc) for Java and C++

Added to portage

2026-01-26

clang - 23.0.0_pre20260125
Ebuild name:

dev-python/clang-23.0.0_pre20260125

Description

Python bindings for llvm-core/clang

Added to portage

2026-01-26

clang - 23.0.0_pre20260125
Ebuild name:

llvm-core/clang-23.0.0_pre20260125

Description

C language family frontend for LLVM

Added to portage

2026-01-26

clang-common - 23.0.0_pre20260125
Ebuild name:

llvm-core/clang-common-23.0.0_pre20260125

Description

Common files shared between multiple slots of clang

Added to portage

2026-01-26

commons-codec - 1.20.0
Ebuild name:

dev-java/commons-codec-1.20.0

Description

Implementations of common encoders and decoders in Java

Added to portage

2026-01-26

compiler-rt - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/compiler-rt-23.0.0_pre20260125

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-01-26

compiler-rt-sanitizers - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-23.0.0_pre20260125

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-01-26

coverage - 7.13.2
Ebuild name:

dev-python/coverage-7.13.2

Description

Code coverage measurement for Python

Added to portage

2026-01-26

eid-mw - 5.1.28
Ebuild name:

app-crypt/eid-mw-5.1.28

Description

Electronic Identity Card middleware supplied by the Belgian Federal Governm

Added to portage

2026-01-26

ensurepip-setuptools - 80.10.2
Ebuild name:

dev-python/ensurepip-setuptools-80.10.2

Description

Shared setuptools wheel for ensurepip Python module

Added to portage

2026-01-26

flang - 23.0.0_pre20260125
Ebuild name:

llvm-core/flang-23.0.0_pre20260125

Description

LLVM's Fortran frontend

Added to portage

2026-01-26

flang-rt - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/flang-rt-23.0.0_pre20260125

Description

LLVM's Fortran runtime

Added to portage

2026-01-26

flatpak - 1.16.3
Ebuild name:

sys-apps/flatpak-1.16.3

Description

Linux application sandboxing and distribution framework

Added to portage

2026-01-26

gcc - 16.0.1_p20260125
Ebuild name:

sys-devel/gcc-16.0.1_p20260125

Description

The GNU Compiler Collection

Added to portage

2026-01-26

git-sources - 6.19_rc7
Ebuild name:

sys-kernel/git-sources-6.19_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2026-01-26

gnulib - 2026.01.14.22.26.00
Ebuild name:

dev-libs/gnulib-2026.01.14.22.26.00

Description

Library of common routines intended to be shared

Added to portage

2026-01-26

gromacs - 2026.0
Ebuild name:

sci-chemistry/gromacs-2026.0

Description

The ultimate molecular dynamics simulation package

Added to portage

2026-01-26

hcloud - 1.61.0
Ebuild name:

app-admin/hcloud-1.61.0

Description

A command-line interface for Hetzner Cloud

Added to portage

2026-01-26

heroic-bin - 2.19.0
Ebuild name:

games-util/heroic-bin-2.19.0

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-01-26

hypothesis - 6.151.0
Ebuild name:

dev-python/hypothesis-6.151.0

Description

A library for property based testing

Added to portage

2026-01-26

incus - 6.21
Ebuild name:

app-containers/incus-6.21

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-01-26

jemalloc - 5.3.0-r2
Ebuild name:

dev-libs/jemalloc-5.3.0-r2

Description

Jemalloc is a general-purpose scalable concurrent allocator

Added to portage

2026-01-26

kalarm - 25.12.1-r2
Ebuild name:

kde-apps/kalarm-25.12.1-r2

Description

Application to manage alarms and other timer based alerts for the deskto

Added to portage

2026-01-26

kdeplasma-addons - 6.5.5-r1
Ebuild name:

kde-plasma/kdeplasma-addons-6.5.5-r1

Description

Extra Plasma applets and engines

Added to portage

2026-01-26

kimageformats - 6.22.0-r1
Ebuild name:

kde-frameworks/kimageformats-6.22.0-r1

Description

Framework providing additional format plugins for Qt's image

Added to portage

2026-01-26

kwin - 6.5.5-r1
Ebuild name:

kde-plasma/kwin-6.5.5-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2026-01-26

libclc - 23.0.0_pre20260125
Ebuild name:

llvm-core/libclc-23.0.0_pre20260125

Description

OpenCL C library

Added to portage

2026-01-26

libcxx - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/libcxx-23.0.0_pre20260125

Description

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

Added to portage

2026-01-26

libcxxabi - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/libcxxabi-23.0.0_pre20260125

Description

Low level support for a standard C++ library

Added to portage

2026-01-26

libgcc - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/libgcc-23.0.0_pre20260125

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-01-26

libkscreen - 6.5.5-r1
Ebuild name:

kde-plasma/libkscreen-6.5.5-r1

Description

Plasma screen management library

Added to portage

2026-01-26

libunwind - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/libunwind-23.0.0_pre20260125

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-01-26

lit - 23.0.0_pre20260125
Ebuild name:

dev-python/lit-23.0.0_pre20260125

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-01-26

lld - 23.0.0_pre20260125
Ebuild name:

llvm-core/lld-23.0.0_pre20260125

Description

The LLVM linker (link editor)

Added to portage

2026-01-26

lldb - 23.0.0_pre20260125
Ebuild name:

llvm-core/lldb-23.0.0_pre20260125

Description

The LLVM debugger

Added to portage

2026-01-26

llvm - 23.0.0_pre20260125
Ebuild name:

dev-ml/llvm-23.0.0_pre20260125

Description

OCaml bindings for LLVM

Added to portage

2026-01-26

llvm - 23.0.0_pre20260125
Ebuild name:

llvm-core/llvm-23.0.0_pre20260125

Description

Low Level Virtual Machine

Added to portage

2026-01-26

llvm-common - 23.0.0_pre20260125
Ebuild name:

llvm-core/llvm-common-23.0.0_pre20260125

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-01-26

marknote - 1.4.1
Ebuild name:

app-text/marknote-1.4.1

Description

Markdown editor with a wide range of formating options for everyday notes

Added to portage

2026-01-26

mlir - 23.0.0_pre20260125
Ebuild name:

llvm-core/mlir-23.0.0_pre20260125

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-01-26

multidict - 6.7.1
Ebuild name:

dev-python/multidict-6.7.1

Description

multidict implementation

Added to portage

2026-01-26

offload - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/offload-23.0.0_pre20260125

Description

OpenMP offloading support

Added to portage

2026-01-26

openmp - 23.0.0_pre20260125
Ebuild name:

llvm-runtimes/openmp-23.0.0_pre20260125

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2026-01-26

openpgp-keys-gentoo-auth - 20260125
Ebuild name:

sec-keys/openpgp-keys-gentoo-auth-20260125

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-26

openpgp-keys-gentoo-release - 20260125
Ebuild name:

sec-keys/openpgp-keys-gentoo-release-20260125

Description

OpenPGP keys used for Gentoo releases (snapshots, sta

Added to portage

2026-01-26

pebble - 5.2.0
Ebuild name:

dev-python/pebble-5.2.0

Description

Threading and multiprocessing eye-candy

Added to portage

2026-01-26

pecl-http - 4.3.1
Ebuild name:

dev-php/pecl-http-4.3.1

Description

Extended HTTP Support for PHP

Added to portage

2026-01-26

plasma-workspace - 6.5.5-r1
Ebuild name:

kde-plasma/plasma-workspace-6.5.5-r1

Description

KDE Plasma workspace

Added to portage

2026-01-26

polly - 23.0.0_pre20260125
Ebuild name:

llvm-core/polly-23.0.0_pre20260125

Description

Polyhedral optimizations for LLVM

Added to portage

2026-01-26

pygresql - 6.2.3
Ebuild name:

dev-python/pygresql-6.2.3

Description

A Python interface for the PostgreSQL database

Added to portage

2026-01-26

pypdf - 6.6.1
Ebuild name:

dev-python/pypdf-6.6.1

Description

Python library to work with PDF files

Added to portage

2026-01-26

python-multipart - 0.0.22
Ebuild name:

dev-python/python-multipart-0.0.22

Description

A streaming multipart parser for Python

Added to portage

2026-01-26

rbpdf - 1.21.4
Ebuild name:

dev-ruby/rbpdf-1.21.4

Description

Ruby on Rails RBPDF plugin

Added to portage

2026-01-26

redmine - 6.0.7
Ebuild name:

www-apps/redmine-6.0.7

Description

Flexible project management web application using the Ruby on Rails framewor

Added to portage

2026-01-26

setuptools - 80.10.2
Ebuild name:

dev-python/setuptools-80.10.2

Description

Collection of extensions to Distutils

Added to portage

2026-01-26

slurp - 1.6.0
Ebuild name:

gui-apps/slurp-1.6.0

Description

Select a region in a Wayland compositor and print it to the standard output

Added to portage

2026-01-26

ukkonen - 1.1.0
Ebuild name:

dev-python/ukkonen-1.1.0

Description

Implementation of bounded Levenshtein distance (Ukkonen)

Added to portage

2026-01-26

wcwidth - 0.4.0
Ebuild name:

dev-python/wcwidth-0.4.0

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-01-26

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