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:

82246

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
2025-12-01
amdsmi - 7.1.0
Ebuild name:

dev-util/amdsmi-7.1.0

Description

AMD System Management Interface for managing and monitoring GPUs

Added to portage

2025-12-01

apispec - 6.9.0
Ebuild name:

dev-python/apispec-6.9.0

Description

A pluggable API specification generator

Added to portage

2025-12-01

aws-sam-translator - 1.104.0
Ebuild name:

dev-python/aws-sam-translator-1.104.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2025-12-01

beautifulsoup4 - 4.14.3
Ebuild name:

dev-python/beautifulsoup4-4.14.3

Description

Pythonic idioms for iterating, searching, and modifying an HTML/XM

Added to portage

2025-12-01

beniget - 0.5.0
Ebuild name:

dev-python/beniget-0.5.0

Description

Extract semantic information about static Python code

Added to portage

2025-12-01

buffer - 1.19-r5
Ebuild name:

sys-block/buffer-1.19-r5

Description

A tapedrive tool for speeding up reading from and writing to tape

Added to portage

2025-12-01

cfn-lint - 1.42.0
Ebuild name:

dev-python/cfn-lint-1.42.0

Description

CloudFormation Linter

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.0-r2
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.0-r2

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.1-r1
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.1-r1

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

coverage - 7.12.1_beta1
Ebuild name:

dev-python/coverage-7.12.1_beta1

Description

Code coverage measurement for Python

Added to portage

2025-12-01

cryptodev - 1.14
Ebuild name:

sys-kernel/cryptodev-1.14

Description

device that allows access to Linux kernel cryptographic drivers

Added to portage

2025-12-01

cython - 3.2.2
Ebuild name:

dev-python/cython-3.2.2

Description

A Python to C compiler

Added to portage

2025-12-01

gcc - 16.0.0_p20251130
Ebuild name:

sys-devel/gcc-16.0.0_p20251130

Description

The GNU Compiler Collection

Added to portage

2025-12-01

genshi - 0.7.10
Ebuild name:

dev-python/genshi-0.7.10

Description

Python toolkit for stream-based generation of output for the web

Added to portage

2025-12-01

gpa - 0.11.0-r2
Ebuild name:

app-crypt/gpa-0.11.0-r2

Description

GNU Privacy Assistant (GPA) a graphical user interface for GnuPG

Added to portage

2025-12-01

grass - 8.4.1-r2
Ebuild name:

sci-geosciences/grass-8.4.1-r2

Description

Free GIS with raster and vector functionality, as well as 3D vizuali

Added to portage

2025-12-01

irqbalance - 1.9.4-r3
Ebuild name:

sys-apps/irqbalance-1.9.4-r3

Description

Distribute hardware interrupts across processors on a multiprocessor s

Added to portage

2025-12-01

jellyfin-bin - 10.11.4
Ebuild name:

www-apps/jellyfin-bin-10.11.4

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2025-12-01

libtmux - 0.50.0
Ebuild name:

dev-python/libtmux-0.50.0

Description

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

Added to portage

2025-12-01

libvirt - 11.9.0
Ebuild name:

app-emulation/libvirt-11.9.0

Description

C toolkit to manipulate virtual machines

Added to portage

2025-12-01

libvirt-python - 11.9.0
Ebuild name:

dev-python/libvirt-python-11.9.0

Description

libvirt Python bindings

Added to portage

2025-12-01

libxslt - 1.1.45
Ebuild name:

dev-libs/libxslt-1.1.45

Description

XSLT libraries and tools

Added to portage

2025-12-01

limine - 10.4.0
Ebuild name:

sys-boot/limine-10.4.0

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2025-12-01

meson - 1.10.0_rc1
Ebuild name:

dev-build/meson-1.10.0_rc1

Description

Open source build system

Added to portage

2025-12-01

moto - 5.1.18
Ebuild name:

dev-python/moto-5.1.18

Description

Mock library for boto

Added to portage

2025-12-01

mtx - 1.3.12-r1
Ebuild name:

sys-block/mtx-1.3.12-r1

Description

Utilities for controlling SCSI media changers and tape drives

Added to portage

2025-12-01

planner - 3.42-r1
Ebuild name:

app-emacs/planner-3.42-r1

Description

Maintain a local Wiki using Emacs-friendly markup

Added to portage

2025-12-01

plz - 0.7.2
Ebuild name:

app-emacs/plz-0.7.2

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-12-01

pygraphviz - 1.14-r1
Ebuild name:

dev-python/pygraphviz-1.14-r1

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pygraphviz - 1.14-r2
Ebuild name:

dev-python/pygraphviz-1.14-r2

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pylint - 4.0.4
Ebuild name:

dev-python/pylint-4.0.4

Description

Python code static checker

Added to portage

2025-12-01

radicale - 3.5.9
Ebuild name:

www-apps/radicale-3.5.9

Description

A simple CalDAV calendar server

Added to portage

2025-12-01

remind - 06.02.01
Ebuild name:

app-misc/remind-06.02.01

Description

Ridiculously functional reminder program

Added to portage

2025-12-01

rpds-py - 0.30.0
Ebuild name:

dev-python/rpds-py-0.30.0

Description

Python bindings to Rust's persistent data structures (rpds)

Added to portage

2025-12-01

socklog - 2.1.2
Ebuild name:

app-admin/socklog-2.1.2

Description

Small secure replacement for syslogd with automatic log rotation

Added to portage

2025-12-01

sphinx - 9.0.0
Ebuild name:

dev-python/sphinx-9.0.0

Description

Python documentation generator

Added to portage

2025-12-01

supercollider - 3.14.1
Ebuild name:

media-sound/supercollider-3.14.1

Description

Environment and programming language for real time audio synthesis

Added to portage

2025-12-01

wild - 0.7.0
Ebuild name:

sys-devel/wild-0.7.0

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 0.7.0-r1
Ebuild name:

sys-devel/wild-0.7.0-r1

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 9999
Ebuild name:

sys-devel/wild-9999

Description

A very fast linker for Linux

Added to portage

2025-12-01

xdotool - 4.20251130.1
Ebuild name:

x11-misc/xdotool-4.20251130.1

Description

Simulate keyboard input and mouse activity, move and resize windows

Added to portage

2025-12-01

zerotier - 1.16.0-r2
Ebuild name:

net-misc/zerotier-1.16.0-r2

Description

A software-based managed Ethernet switch for planet Earth

Added to portage

2025-12-01

2025-11-30
abiword - 3.0.7
Ebuild name:

app-office/abiword-3.0.7

Description

Fully featured yet light and fast cross platform word processor

Added to portage

2025-11-30

b2 - 5.3.3
Ebuild name:

dev-build/b2-5.3.3

Description

A system for large project software construction, simple to use and powerful

Added to portage

2025-11-30

beartype - 0.22.7
Ebuild name:

dev-python/beartype-0.22.7

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2025-11-30

catch - 3.11.0
Ebuild name:

dev-cpp/catch-3.11.0

Description

Modern C++ header-only framework for unit-tests

Added to portage

2025-11-30

cpik - 0.7.4_p4-r1
Ebuild name:

dev-embedded/cpik-0.7.4_p4-r1

Description

C compiler for PIC18 devices

Added to portage

2025-11-30

dino - 0.5.1
Ebuild name:

net-im/dino-0.5.1

Description

Modern Jabber/XMPP Client using GTK+/Vala

Added to portage

2025-11-30

dos2unix - 7.5.3
Ebuild name:

app-text/dos2unix-7.5.3

Description

Convert DOS or MAC text files to UNIX format or vice versa

Added to portage

2025-11-30

evolution - 3.58.2
Ebuild name:

mail-client/evolution-3.58.2

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2025-11-30

evolution-data-server - 3.58.2
Ebuild name:

gnome-extra/evolution-data-server-3.58.2

Description

Evolution groupware backend

Added to portage

2025-11-30

evolution-ews - 3.56.2-r1
Ebuild name:

gnome-extra/evolution-ews-3.56.2-r1

Description

Evolution module for connecting to Microsoft Exchange Web Servi

Added to portage

2025-11-30

evolution-ews - 3.58.2
Ebuild name:

gnome-extra/evolution-ews-3.58.2

Description

Evolution module for connecting to Microsoft Exchange Web Services

Added to portage

2025-11-30

fzy - 1.1
Ebuild name:

app-text/fzy-1.1

Description

Fuzzy text selector (interactive grep) for console

Added to portage

2025-11-30

gast - 0.7.0
Ebuild name:

dev-python/gast-0.7.0

Description

A generic AST to represent Python2 and Python3's Abstract Syntax Tree (AST)

Added to portage

2025-11-30

gcc - 15.2.1_p20251129
Ebuild name:

sys-devel/gcc-15.2.1_p20251129

Description

The GNU Compiler Collection

Added to portage

2025-11-30

gnome-user-share - 48.2
Ebuild name:

gnome-extra/gnome-user-share-48.2

Description

Personal file sharing for the GNOME desktop

Added to portage

2025-11-30

graphviz - 14.0.5-r1
Ebuild name:

media-gfx/graphviz-14.0.5-r1

Description

Open Source Graph Visualization Software

Added to portage

2025-11-30

gtk - 4.20.3-r2
Ebuild name:

gui-libs/gtk-4.20.3-r2

Description

GTK is a multi-platform toolkit for creating graphical user interfaces

Added to portage

2025-11-30

jaconv - 0.4.1
Ebuild name:

dev-python/jaconv-0.4.1

Description

Pure-Python Japanese character interconverter

Added to portage

2025-11-30

ktechlab - 0.51.0_p20251122
Ebuild name:

sci-electronics/ktechlab-0.51.0_p20251122

Description

IDE for microcontrollers and electronics

Added to portage

2025-11-30

kube-apiserver - 1.32.10
Ebuild name:

sys-cluster/kube-apiserver-1.32.10

Description

Kubernetes API server

Added to portage

2025-11-30

kube-apiserver - 1.33.6
Ebuild name:

sys-cluster/kube-apiserver-1.33.6

Description

Kubernetes API server

Added to portage

2025-11-30

kube-apiserver - 1.34.2
Ebuild name:

sys-cluster/kube-apiserver-1.34.2

Description

Kubernetes API server

Added to portage

2025-11-30

kube-controller-manager - 1.32.10
Ebuild name:

sys-cluster/kube-controller-manager-1.32.10

Description

Kubernetes Controller Manager

Added to portage

2025-11-30

kube-controller-manager - 1.33.6
Ebuild name:

sys-cluster/kube-controller-manager-1.33.6

Description

Kubernetes Controller Manager

Added to portage

2025-11-30

kube-controller-manager - 1.34.2
Ebuild name:

sys-cluster/kube-controller-manager-1.34.2

Description

Kubernetes Controller Manager

Added to portage

2025-11-30

kube-proxy - 1.32.10
Ebuild name:

sys-cluster/kube-proxy-1.32.10

Description

Kubernetes Proxy service

Added to portage

2025-11-30

kube-proxy - 1.33.6
Ebuild name:

sys-cluster/kube-proxy-1.33.6

Description

Kubernetes Proxy service

Added to portage

2025-11-30

kube-proxy - 1.34.2
Ebuild name:

sys-cluster/kube-proxy-1.34.2

Description

Kubernetes Proxy service

Added to portage

2025-11-30

kube-scheduler - 1.32.10
Ebuild name:

sys-cluster/kube-scheduler-1.32.10

Description

Kubernetes Scheduler

Added to portage

2025-11-30

kube-scheduler - 1.33.6
Ebuild name:

sys-cluster/kube-scheduler-1.33.6

Description

Kubernetes Scheduler

Added to portage

2025-11-30

kube-scheduler - 1.34.2
Ebuild name:

sys-cluster/kube-scheduler-1.34.2

Description

Kubernetes Scheduler

Added to portage

2025-11-30

kubeadm - 1.32.10
Ebuild name:

sys-cluster/kubeadm-1.32.10

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2025-11-30

kubeadm - 1.33.6
Ebuild name:

sys-cluster/kubeadm-1.33.6

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2025-11-30

kubeadm - 1.34.2
Ebuild name:

sys-cluster/kubeadm-1.34.2

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2025-11-30

kubectl - 1.32.10
Ebuild name:

sys-cluster/kubectl-1.32.10

Description

CLI to run commands against Kubernetes clusters

Added to portage

2025-11-30

kubectl - 1.33.6
Ebuild name:

sys-cluster/kubectl-1.33.6

Description

CLI to run commands against Kubernetes clusters

Added to portage

2025-11-30

kubelet - 1.32.10
Ebuild name:

sys-cluster/kubelet-1.32.10

Description

Kubernetes Node Agent

Added to portage

2025-11-30

kubelet - 1.33.6
Ebuild name:

sys-cluster/kubelet-1.33.6

Description

Kubernetes Node Agent

Added to portage

2025-11-30

kubelet - 1.34.2
Ebuild name:

sys-cluster/kubelet-1.34.2

Description

Kubernetes Node Agent

Added to portage

2025-11-30

lego - 4.29.0
Ebuild name:

app-crypt/lego-4.29.0

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2025-11-30

libtmux - 0.49.0
Ebuild name:

dev-python/libtmux-0.49.0

Description

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

Added to portage

2025-11-30

link-grammar - 5.13.0
Ebuild name:

dev-libs/link-grammar-5.13.0

Description

A Syntactic English parser

Added to portage

2025-11-30

nuitka - 2.8.9
Ebuild name:

dev-python/nuitka-2.8.9

Description

Python to native compiler

Added to portage

2025-11-30

planner - 3.42-r1
Ebuild name:

app-emacs/planner-3.42-r1

Description

Maintain a local Wiki using Emacs-friendly markup

Added to portage

2025-11-30

plz - 0.7.2
Ebuild name:

app-emacs/plz-0.7.2

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-11-30

pyspellchecker - 0.8.4
Ebuild name:

dev-python/pyspellchecker-0.8.4

Description

Pure python spell checker based on work by Peter Norvig

Added to portage

2025-11-30

qutebrowser - 3.6.3
Ebuild name:

www-client/qutebrowser-3.6.3

Description

Keyboard-driven, vim-like browser based on Python and Qt

Added to portage

2025-11-30

renderdoc - 1.36-r1
Ebuild name:

media-gfx/renderdoc-1.36-r1

Description

Standalone graphics debugging tool

Added to portage

2025-11-30

stdio-mgr - 1.0.1.1
Ebuild name:

dev-python/stdio-mgr-1.0.1.1

Description

Context manager for mocking/wrapping stdin/stdout/stderr

Added to portage

2025-11-30

systemd - 259_rc2
Ebuild name:

sys-apps/systemd-259_rc2

Description

System and service manager for Linux

Added to portage

2025-11-30

types-psutil - 7.1.3.20251130
Ebuild name:

dev-python/types-psutil-7.1.3.20251130

Description

Typing stubs for psutil

Added to portage

2025-11-30

vivaldi - 7.7.3851.56
Ebuild name:

www-client/vivaldi-7.7.3851.56

Description

A browser for our friends

Added to portage

2025-11-30

vivaldi-snapshot - 7.8.3879.3
Ebuild name:

www-client/vivaldi-snapshot-7.8.3879.3

Description

A browser for our friends

Added to portage

2025-11-30

wcd - 6.0.6
Ebuild name:

app-misc/wcd-6.0.6

Description

Wherever Change Directory

Added to portage

2025-11-30

yq-go - 4.49.2
Ebuild name:

app-misc/yq-go-4.49.2

Description

yq is a lightweight and portable command-line YAML, JSON and XML processor

Added to portage

2025-11-30

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