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:

82686

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-01
amq-protocol - 2.5.0
Ebuild name:

dev-ruby/amq-protocol-2.5.0

Description

An AMQP 0.9.1 serialization library for Ruby

Added to portage

2026-01-01

arti - 1.8.0
Ebuild name:

net-p2p/arti-1.8.0

Description

Implementation of Tor in Rust

Added to portage

2026-01-01

bcrypt-ruby - 3.1.21
Ebuild name:

dev-ruby/bcrypt-ruby-3.1.21

Description

An easy way to keep your users' passwords secure

Added to portage

2026-01-01

cddlib - 094n
Ebuild name:

sci-libs/cddlib-094n

Description

C library implementing the Double Description Method

Added to portage

2026-01-01

chrome-binary-plugins - 143.0.7499.169
Ebuild name:

www-plugins/chrome-binary-plugins-143.0.7499.169

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-01-01

chrome-binary-plugins - 144.0.7559.31_beta
Ebuild name:

www-plugins/chrome-binary-plugins-144.0.7559.31_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-01-01

chrome-binary-plugins - 145.0.7587.4_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-145.0.7587.4_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-01-01

chromedriver-bin - 143.0.7499.169
Ebuild name:

www-apps/chromedriver-bin-143.0.7499.169

Description

WebDriver for Chrome

Added to portage

2026-01-01

curl - 8.18.0_rc3
Ebuild name:

net-misc/curl-8.18.0_rc3

Description

A Client that groks URLs

Added to portage

2026-01-01

fonttosfnt - 1.2.5
Ebuild name:

x11-apps/fonttosfnt-1.2.5

Description

X.Org fonttosfnt application

Added to portage

2026-01-01

git-merge-changelog - 1.0
Ebuild name:

dev-vcs/git-merge-changelog-1.0

Description

Git merge driver for GNU style ChangeLog files

Added to portage

2026-01-01

gnatformat - 26.0.0
Ebuild name:

dev-ada/gnatformat-26.0.0

Description

Opinionated code formatter for the Ada language

Added to portage

2026-01-01

google-chrome - 143.0.7499.169
Ebuild name:

www-client/google-chrome-143.0.7499.169

Description

The web browser from Google

Added to portage

2026-01-01

google-chrome-beta - 144.0.7559.31
Ebuild name:

www-client/google-chrome-beta-144.0.7559.31

Description

The web browser from Google

Added to portage

2026-01-01

google-chrome-unstable - 145.0.7587.4
Ebuild name:

www-client/google-chrome-unstable-145.0.7587.4

Description

The web browser from Google

Added to portage

2026-01-01

libsdl2 - 2.32.62
Ebuild name:

media-libs/libsdl2-2.32.62

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.2.30
Ebuild name:

media-libs/libsdl3-3.2.30

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.4.0
Ebuild name:

media-libs/libsdl3-3.4.0

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libva-intel-media-driver - 25.4.6
Ebuild name:

media-libs/libva-intel-media-driver-25.4.6

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-01-01

lidarr-bin - 3.1.1.4900
Ebuild name:

www-apps/lidarr-bin-3.1.1.4900

Description

Looks and smells like Sonarr but made for music

Added to portage

2026-01-01

microsoft-edge - 143.0.3650.96
Ebuild name:

www-client/microsoft-edge-143.0.3650.96

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-beta - 144.0.3719.23
Ebuild name:

www-client/microsoft-edge-beta-144.0.3719.23

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-beta - 144.0.3719.35
Ebuild name:

www-client/microsoft-edge-beta-144.0.3719.35

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-dev - 145.0.3734.1
Ebuild name:

www-client/microsoft-edge-dev-145.0.3734.1

Description

The web browser from Microsoft

Added to portage

2026-01-01

moonlight - 6.1.0-r3
Ebuild name:

net-misc/moonlight-6.1.0-r3

Description

NVIDIA GameStream (and Sunshine) client

Added to portage

2026-01-01

obs-vkcapture - 1.5.3-r1
Ebuild name:

media-plugins/obs-vkcapture-1.5.3-r1

Description

OBS Linux Vulkan/OpenGL game capture

Added to portage

2026-01-01

opera - 125.0.5729.49
Ebuild name:

www-client/opera-125.0.5729.49

Description

A fast and secure web browser

Added to portage

2026-01-01

opera-beta - 126.0.5750.11
Ebuild name:

www-client/opera-beta-126.0.5750.11

Description

A fast and secure web browser

Added to portage

2026-01-01

opera-developer - 126.0.5748.0
Ebuild name:

www-client/opera-developer-126.0.5748.0

Description

A fast and secure web browser

Added to portage

2026-01-01

package-build - 4.0.0
Ebuild name:

app-emacs/package-build-4.0.0

Description

Tools for assembling a package archive

Added to portage

2026-01-01

pauker - 1.8-r5
Ebuild name:

games-puzzle/pauker-1.8-r5

Description

A java based flashcard program

Added to portage

2026-01-01

pymdown-extensions - 10.20
Ebuild name:

dev-python/pymdown-extensions-10.20

Description

Extensions for Python Markdown

Added to portage

2026-01-01

python-gnupg - 0.5.6
Ebuild name:

dev-python/python-gnupg-0.5.6

Description

A Python wrapper for GnuPG

Added to portage

2026-01-01

radarr-bin - 6.1.0.10316
Ebuild name:

www-apps/radarr-bin-6.1.0.10316

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2026-01-01

rgb - 1.1.1
Ebuild name:

x11-apps/rgb-1.1.1

Description

uncompile an rgb color-name database

Added to portage

2026-01-01

rouge - 4.7.0
Ebuild name:

dev-ruby/rouge-4.7.0

Description

Yet-another-markdown-parser using a strict syntax definition in pure Ruby

Added to portage

2026-01-01

ruamel-yaml - 0.19.0
Ebuild name:

dev-python/ruamel-yaml-0.19.0

Description

YAML parser/emitter that supports roundtrip comment preservation

Added to portage

2026-01-01

socket-burst-dampener - 1.3.4
Ebuild name:

net-misc/socket-burst-dampener-1.3.4

Description

A daemon that spawns one command per connection, and dampens c

Added to portage

2026-01-01

sphinx - 9.1.0
Ebuild name:

dev-python/sphinx-9.1.0

Description

Python documentation generator

Added to portage

2026-01-01

tlfloat - 1.17.1_p20250711
Ebuild name:

dev-cpp/tlfloat-1.17.1_p20250711

Description

C++ template library for floating point operations

Added to portage

2026-01-01

tt-rss - 20251216
Ebuild name:

www-apps/tt-rss-20251216

Description

Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX

Added to portage

2026-01-01

ty - 0.0.7
Ebuild name:

dev-util/ty-0.0.7

Description

An extremely fast Python type checker and language server, written in Rust

Added to portage

2026-01-01

xauth - 1.1.5
Ebuild name:

x11-apps/xauth-1.1.5

Description

X authority file utility

Added to portage

2026-01-01

2025-12-31
action_text-trix - 2.1.16
Ebuild name:

dev-ruby/action_text-trix-2.1.16

Description

A rich text editor for everyday writing

Added to portage

2025-12-31

amq-protocol - 2.4.0
Ebuild name:

dev-ruby/amq-protocol-2.4.0

Description

An AMQP 0.9.1 serialization library for Ruby

Added to portage

2025-12-31

aws-partitions - 1.1200.0
Ebuild name:

dev-ruby/aws-partitions-1.1200.0

Description

Provides interfaces to enumerate AWS partitions, regions, and serv

Added to portage

2025-12-31

awscli - 1.44.9
Ebuild name:

app-admin/awscli-1.44.9

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-31

botan - 3.10.0
Ebuild name:

dev-libs/botan-3.10.0

Description

C++ crypto library

Added to portage

2025-12-31

boto3 - 1.42.19
Ebuild name:

dev-python/boto3-1.42.19

Description

The AWS SDK for Python

Added to portage

2025-12-31

botocore - 1.42.19
Ebuild name:

dev-python/botocore-1.42.19

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-31

cbor2 - 5.8.0
Ebuild name:

dev-python/cbor2-5.8.0

Description

Pure Python CBOR (de)serializer with extensive tag support

Added to portage

2025-12-31

color - 2.1.2
Ebuild name:

dev-ruby/color-2.1.2

Description

Colour management with Ruby

Added to portage

2025-12-31

dnscrypt-proxy - 2.1.15
Ebuild name:

net-dns/dnscrypt-proxy-2.1.15

Description

Flexible DNS proxy, with support for encrypted DNS protocols

Added to portage

2025-12-31

duplicity - 3.0.7
Ebuild name:

app-backup/duplicity-3.0.7

Description

Secure backup system using gnupg to encrypt data

Added to portage

2025-12-31

ebuild-mode - 1.80
Ebuild name:

app-xemacs/ebuild-mode-1.80

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2025-12-31

ergo - 2.17.0
Ebuild name:

net-irc/ergo-2.17.0

Description

A modern IRC server written in Go

Added to portage

2025-12-31

fish - 4.3.0
Ebuild name:

app-shells/fish-4.3.0

Description

Friendly Interactive SHell

Added to portage

2025-12-31

freepg - 2.5.16
Ebuild name:

app-crypt/freepg-2.5.16

Description

Cross-distro GnuPG fork focused on OpenPGP compliance

Added to portage

2025-12-31

gentoo-sources - 6.18.2-r1
Ebuild name:

sys-kernel/gentoo-sources-6.18.2-r1

Description

Full sources including the Gentoo patchset for the . kernel tre

Added to portage

2025-12-31

gnupg - 2.5.16-r1
Ebuild name:

app-crypt/gnupg-2.5.16-r1

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2025-12-31

gpxsee - 15.7
Ebuild name:

sci-geosciences/gpxsee-15.7

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2025-12-31

grub - 2.12-r10
Ebuild name:

sys-boot/grub-2.12-r10

Description

GNU GRUB boot loader

Added to portage

2025-12-31

kryoflux-dtc - 3.50_p4
Ebuild name:

app-misc/kryoflux-dtc-3.50_p4

Description

KryoFlux Host Software

Added to portage

2025-12-31

libcamera - 0.6.0-r1
Ebuild name:

media-libs/libcamera-0.6.0-r1

Description

Complex camera support library

Added to portage

2025-12-31

libgpg-error - 1.58
Ebuild name:

dev-libs/libgpg-error-1.58

Description

Contains error handling functions used by GnuPG software

Added to portage

2025-12-31

librtas - 2.0.6
Ebuild name:

sys-libs/librtas-2.0.6

Description

A set of libraries for userspace access to RTAS on the PowerPC platform(s)

Added to portage

2025-12-31

linux-headers - 6.18
Ebuild name:

sys-kernel/linux-headers-6.18

Description

Added to portage

2025-12-31

mbuffer - 20251025
Ebuild name:

sys-block/mbuffer-20251025

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2025-12-31

memory-allocator - 0.2.0
Ebuild name:

dev-python/memory-allocator-0.2.0

Description

An extension class for memory allocation in cython

Added to portage

2025-12-31

mkmf-lite - 0.7.5
Ebuild name:

dev-ruby/mkmf-lite-0.7.5

Description

light version of the the mkmf library designed for use as a library

Added to portage

2025-12-31

nawk - 20251225
Ebuild name:

sys-apps/nawk-20251225

Description

Brian Kernighan's pattern scanning and processing language

Added to portage

2025-12-31

net-http-persistent - 4.0.8
Ebuild name:

dev-ruby/net-http-persistent-4.0.8

Description

Manages persistent connections using Net plus a speed fix for Ru

Added to portage

2025-12-31

package-lint - 0.26
Ebuild name:

app-emacs/package-lint-0.26

Description

Linting library for Emacs Lisp package metadata

Added to portage

2025-12-31

pandoc-mode - 2.35
Ebuild name:

app-emacs/pandoc-mode-2.35

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-31

pandoc-mode - 2.90.2
Ebuild name:

app-emacs/pandoc-mode-2.90.2

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-31

paredit - 26-r1
Ebuild name:

app-emacs/paredit-26-r1

Description

Minor mode for performing structured editing of S-expressions

Added to portage

2025-12-31

pg - 1.6.3
Ebuild name:

dev-ruby/pg-1.6.3

Description

Ruby extension library providing an API to PostgreSQL

Added to portage

2025-12-31

picard - 3.0_pre20251230
Ebuild name:

media-sound/picard-3.0_pre20251230

Description

Cross-platform music tagger

Added to portage

2025-12-31

pipewire - 1.4.9-r2
Ebuild name:

media-video/pipewire-1.4.9-r2

Description

Multimedia processing graphs

Added to portage

2025-12-31

piwigo - 16.2.0
Ebuild name:

www-apps/piwigo-16.2.0

Description

a photo gallery software for the web

Added to portage

2025-12-31

process_executer - 4.0.1
Ebuild name:

dev-ruby/process_executer-4.0.1

Description

An API for executing commands in a subprocess

Added to portage

2025-12-31

pytest-reserial - 0.6.1
Ebuild name:

dev-python/pytest-reserial-0.6.1

Description

Pytest plugin for recording and replaying serial port traffic duri

Added to portage

2025-12-31

pythia - 8.3.16-r1
Ebuild name:

sci-physics/pythia-8.3.16-r1

Description

Lund Monte Carlo high-energy physics event generator

Added to portage

2025-12-31

python-gnupg - 0.5.5-r2
Ebuild name:

dev-python/python-gnupg-0.5.5-r2

Description

A Python wrapper for GnuPG

Added to portage

2025-12-31

qemu - 10.2.0
Ebuild name:

app-emulation/qemu-10.2.0

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2025-12-31

reaper-bin - 7.57
Ebuild name:

media-sound/reaper-bin-7.57

Description

Digital audio workstation

Added to portage

2025-12-31

rivet - 3.1.11-r1
Ebuild name:

sci-physics/rivet-3.1.11-r1

Description

Robust Independent Validation of Experiment and Theory toolkit

Added to portage

2025-12-31

ruby - 4.0.0
Ebuild name:

dev-lang/ruby-4.0.0

Description

An object-oriented scripting language

Added to portage

2025-12-31

ruby-ssl - 16
Ebuild name:

virtual/ruby-ssl-16

Description

Virtual ebuild for the Ruby OpenSSL bindings

Added to portage

2025-12-31

rubygems - 22
Ebuild name:

virtual/rubygems-22

Description

Virtual ebuild for rubygems

Added to portage

2025-12-31

sbcl - 2.6.0
Ebuild name:

dev-lisp/sbcl-2.6.0

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2025-12-31

scipy - 1.17.0_rc2
Ebuild name:

dev-python/scipy-1.17.0_rc2

Description

Scientific algorithms library for Python

Added to portage

2025-12-31

simple-rss - 2.1.0
Ebuild name:

dev-ruby/simple-rss-2.1.0

Description

A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby

Added to portage

2025-12-31

sleef - 3.9.0
Ebuild name:

dev-libs/sleef-3.9.0

Description

Implements vectorized versions of C standard math functions

Added to portage

2025-12-31

starship - 1.24.2
Ebuild name:

app-shells/starship-1.24.2

Description

The minimal, blazing-fast, and infinitely customizable prompt for any sh

Added to portage

2025-12-31

steve - 1.4.0
Ebuild name:

dev-build/steve-1.4.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2025-12-31

supertux - 0.7.0_beta1
Ebuild name:

games-arcade/supertux-0.7.0_beta1

Description

A run n' jump platforming game featuring Tux the penguin

Added to portage

2025-12-31

supertux - 9999
Ebuild name:

games-arcade/supertux-9999

Description

A run n' jump platforming game featuring Tux the penguin

Added to portage

2025-12-31

tesseract - 5.5.2
Ebuild name:

app-text/tesseract-5.5.2

Description

An OCR Engine, originally developed at HP, now open source

Added to portage

2025-12-31

thepeg - 2.3.0-r4
Ebuild name:

sci-physics/thepeg-2.3.0-r4

Description

Toolkit for High Energy Physics Event Generation

Added to portage

2025-12-31

types-psutil - 7.2.1.20251231
Ebuild name:

dev-python/types-psutil-7.2.1.20251231

Description

Typing stubs for psutil

Added to portage

2025-12-31

uchmviewer - 8.5
Ebuild name:

app-text/uchmviewer-8.5

Description

Feature rich chm file viewer, based on Qt

Added to portage

2025-12-31

uv - 0.9.21
Ebuild name:

dev-python/uv-0.9.21

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-12-31

uv-build - 0.9.21
Ebuild name:

dev-python/uv-build-0.9.21

Description

PEP517 uv build backend

Added to portage

2025-12-31

wine-mono - 10.4.1
Ebuild name:

app-emulation/wine-mono-10.4.1

Description

Replacement for the .NET runtime and class libraries in Wine

Added to portage

2025-12-31

xfsprogs - 6.18.0
Ebuild name:

sys-fs/xfsprogs-6.18.0

Description

XFS filesystem utilities

Added to portage

2025-12-31

zoom - 6.7.2.6498
Ebuild name:

net-im/zoom-6.7.2.6498

Description

Video conferencing and web conferencing service

Added to portage

2025-12-31

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