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:

85697

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-06-08
aiohttp - 3.14.1
Ebuild name:

dev-python/aiohttp-3.14.1

Description

HTTP client/server for asyncio

Added to portage

2026-06-08

array-api-compat - 1.15.0
Ebuild name:

dev-python/array-api-compat-1.15.0

Description

Array API standard compatibility wrapper over NumPy and others

Added to portage

2026-06-08

asyncssh - 2.23.1
Ebuild name:

dev-python/asyncssh-2.23.1

Description

Asynchronous SSHv2 client and server library

Added to portage

2026-06-08

beautifulsoup4 - 4.15.0
Ebuild name:

dev-python/beautifulsoup4-4.15.0

Description

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

Added to portage

2026-06-08

bugbite-cli - 0.0.15
Ebuild name:

dev-util/bugbite-cli-0.0.15

Description

A command line tool for bug, issue, and ticket mangling

Added to portage

2026-06-08

caddy - 2.11.4
Ebuild name:

www-servers/caddy-2.11.4

Description

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HT

Added to portage

2026-06-08

cdemu - 3.3.1
Ebuild name:

app-cdr/cdemu-3.3.1

Description

Command-line tool for controlling cdemu-daemon

Added to portage

2026-06-08

cdemu-daemon - 3.3.1
Ebuild name:

app-cdr/cdemu-daemon-3.3.1

Description

Daemon of the CDEmu optical media image mounting suite

Added to portage

2026-06-08

citus - 13.3.0
Ebuild name:

dev-db/citus-13.3.0

Description

Open-source postgresql extension for clustering/multi-node setups

Added to portage

2026-06-08

citus - 14.1.0
Ebuild name:

dev-db/citus-14.1.0

Description

Open-source postgresql extension for clustering/multi-node setups

Added to portage

2026-06-08

coredns - 1.14.3
Ebuild name:

net-dns/coredns-1.14.3

Description

CoreDNS is a DNS server that chains plugins

Added to portage

2026-06-08

cosign - 3.1.0
Ebuild name:

app-containers/cosign-3.1.0

Description

container signing utility

Added to portage

2026-06-08

duckdb - 1.5.3
Ebuild name:

dev-db/duckdb-1.5.3

Description

high-performance analytical database system

Added to portage

2026-06-08

fakeredis - 2.36.1
Ebuild name:

dev-python/fakeredis-2.36.1

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-06-08

flask-cors - 6.0.4
Ebuild name:

dev-python/flask-cors-6.0.4

Description

A Flask extension for Cross Origin Resource Sharing (CORS)

Added to portage

2026-06-08

gcc - 17.0.0_p20260607
Ebuild name:

sys-devel/gcc-17.0.0_p20260607

Description

The GNU Compiler Collection

Added to portage

2026-06-08

gcdemu - 3.3.1
Ebuild name:

app-cdr/gcdemu-3.3.1

Description

Gtk+ GUI for controlling cdemu-daemon

Added to portage

2026-06-08

git-sources - 7.1_rc7
Ebuild name:

sys-kernel/git-sources-7.1_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2026-06-08

gnuradio - 3.11_pre20260606
Ebuild name:

net-wireless/gnuradio-3.11_pre20260606

Description

Toolkit that provides signal processing blocks to implement

Added to portage

2026-06-08

gr-fosphor - 0.0_p20260330-r1
Ebuild name:

net-analyzer/gr-fosphor-0.0_p20260330-r1

Description

gnuradio fosphor block (GPU spectrum display)

Added to portage

2026-06-08

jellyfin-bin - 10.11.11
Ebuild name:

www-apps/jellyfin-bin-10.11.11

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2026-06-08

kafka-bin - 4.2.1
Ebuild name:

net-misc/kafka-bin-4.2.1

Description

A high-throughput distributed messaging system

Added to portage

2026-06-08

kafka-bin - 4.3.0
Ebuild name:

net-misc/kafka-bin-4.3.0

Description

A high-throughput distributed messaging system

Added to portage

2026-06-08

libmirage - 3.3.2
Ebuild name:

dev-libs/libmirage-3.3.2

Description

CD and DVD image access library

Added to portage

2026-06-08

libslirp - 4.9.3
Ebuild name:

net-libs/libslirp-4.9.3

Description

A TCP-IP emulator used to provide virtual networking services

Added to portage

2026-06-08

libxfce4ui - 4.21.8
Ebuild name:

xfce-base/libxfce4ui-4.21.8

Description

Unified widget and session management libs for Xfce

Added to portage

2026-06-08

marginalia - 2.11
Ebuild name:

app-emacs/marginalia-2.11

Description

Marginalia in the minibuffer

Added to portage

2026-06-08

openpgp-keys-dougmassay - 20260608
Ebuild name:

sec-keys/openpgp-keys-dougmassay-20260608

Description

OpenPGP key used by Doug Massay

Added to portage

2026-06-08

passt - 2026.05.26
Ebuild name:

net-misc/passt-2026.05.26

Description

User-mode networking daemons for VMs and namespaces, replacement for Slir

Added to portage

2026-06-08

postgresql - 19_beta1
Ebuild name:

dev-db/postgresql-19_beta1

Description

PostgreSQL RDBMS

Added to portage

2026-06-08

pytest-aiohttp - 1.1.1
Ebuild name:

dev-python/pytest-aiohttp-1.1.1

Description

pytest plugin for aiohttp support

Added to portage

2026-06-08

python-debian - 1.1.1
Ebuild name:

dev-python/python-debian-1.1.1

Description

Python modules to work with Debian-related data formats

Added to portage

2026-06-08

qbe - 1.3-r1
Ebuild name:

sys-devel/qbe-1.3-r1

Description

Pure-C embeddable compiler backend

Added to portage

2026-06-08

sanlock - 5.1.0-r2
Ebuild name:

sys-cluster/sanlock-5.1.0-r2

Description

shared storage lock manager

Added to portage

2026-06-08

sigil - 2.8.0
Ebuild name:

app-text/sigil-2.8.0

Description

Multi-platform WYSIWYG ebook editor for ePub format

Added to portage

2026-06-08

sqlite - 3.53.2-r1
Ebuild name:

dev-db/sqlite-3.53.2-r1

Description

SQL database engine

Added to portage

2026-06-08

stalwart-mail - 0.16.8
Ebuild name:

net-mail/stalwart-mail-0.16.8

Description

Stalwart Mail Server

Added to portage

2026-06-08

syd - 3.55.0
Ebuild name:

sys-apps/syd-3.55.0

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2026-06-08

timescaledb - 2.27.2
Ebuild name:

dev-db/timescaledb-2.27.2

Description

Open-source time-series SQL database

Added to portage

2026-06-08

websocat - 1.14.1
Ebuild name:

net-misc/websocat-1.14.1

Description

Command-line client for WebSockets, like netcat, with socat-like functions

Added to portage

2026-06-08

xfce4-panel - 4.21.2
Ebuild name:

xfce-base/xfce4-panel-4.21.2

Description

Panel for the Xfce desktop environment

Added to portage

2026-06-08

zedis - 0.4.2
Ebuild name:

dev-db/zedis-0.4.2

Description

Blazing-fast native Redis GUI built with Rust and GPUI

Added to portage

2026-06-08

2026-06-07
ParmEd - 4.3.1
Ebuild name:

sci-chemistry/ParmEd-4.3.1

Description

Parameter and topology file editor and molecular mechanical simulator en

Added to portage

2026-06-07

flask-cors - 6.0.3
Ebuild name:

dev-python/flask-cors-6.0.3

Description

A Flask extension for Cross Origin Resource Sharing (CORS)

Added to portage

2026-06-07

gap - 4.16.0
Ebuild name:

sci-mathematics/gap-4.16.0

Description

System for computational discrete algebra (core functionality)

Added to portage

2026-06-07

gcc - 15.2.1_p20260605
Ebuild name:

sys-devel/gcc-15.2.1_p20260605

Description

The GNU Compiler Collection

Added to portage

2026-06-07

gcc - 16.1.1_p20260606
Ebuild name:

sys-devel/gcc-16.1.1_p20260606

Description

The GNU Compiler Collection

Added to portage

2026-06-07

gopls - 0.22.0
Ebuild name:

dev-go/gopls-0.22.0

Description

Added to portage

2026-06-07

highs - 1.14.0-r3
Ebuild name:

sci-mathematics/highs-1.14.0-r3

Description

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

Added to portage

2026-06-07

hydrus - 670
Ebuild name:

media-gfx/hydrus-670

Description

A booru-like media organizer for the desktop

Added to portage

2026-06-07

kid3 - 3.10.0
Ebuild name:

media-sound/kid3-3.10.0

Description

Simple tag editor based on Qt

Added to portage

2026-06-07

kitty - 0.47.2
Ebuild name:

x11-terms/kitty-0.47.2

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-06-07

kitty-shell-integration - 0.47.2
Ebuild name:

x11-terms/kitty-shell-integration-0.47.2

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-06-07

kitty-terminfo - 0.47.2
Ebuild name:

x11-terms/kitty-terminfo-0.47.2

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-06-07

less - 704
Ebuild name:

sys-apps/less-704

Description

Excellent text file viewer

Added to portage

2026-06-07

logrotate - 3.22.0-r1
Ebuild name:

app-admin/logrotate-3.22.0-r1

Description

Rotates, compresses, and mails system logs

Added to portage

2026-06-07

logrotate - 9999
Ebuild name:

app-admin/logrotate-9999

Description

Rotates, compresses, and mails system logs

Added to portage

2026-06-07

mapserver - 8.6.4
Ebuild name:

sci-geosciences/mapserver-8.6.4

Description

Development environment for building spatially enabled webapps

Added to portage

2026-06-07

markdown-mode - 2.8
Ebuild name:

app-emacs/markdown-mode-2.8

Description

Major mode for editing Markdown-formatted text files

Added to portage

2026-06-07

mastodon - 2.0.7
Ebuild name:

app-emacs/mastodon-2.0.7

Description

Emacs client for Mastodon, federated microblogging social network

Added to portage

2026-06-07

moto - 5.2.2
Ebuild name:

dev-python/moto-5.2.2

Description

Mock library for boto

Added to portage

2026-06-07

mutter - 49.6
Ebuild name:

x11-wm/mutter-49.6

Description

GNOME compositing window manager based on Clutter

Added to portage

2026-06-07

phpBB - 3.3.17
Ebuild name:

www-apps/phpBB-3.3.17

Description

An open-source PHP-based bulletin board package

Added to portage

2026-06-07

plplot - 5.15.0_p15-r2
Ebuild name:

sci-libs/plplot-5.15.0_p15-r2

Description

Multi-language scientific plotting library

Added to portage

2026-06-07

propka - 3.5.1-r1
Ebuild name:

sci-chemistry/propka-3.5.1-r1

Description

pKa-value prediction of ionizable groups in protein and protein-ligan

Added to portage

2026-06-07

protobuf-go - 1.36.11
Ebuild name:

dev-go/protobuf-go-1.36.11

Description

Go support for Google's protocol buffers

Added to portage

2026-06-07

pysam - 0.24.0
Ebuild name:

sci-biology/pysam-0.24.0

Description

Python interface for the SAM/BAM sequence alignment and mapping format

Added to portage

2026-06-07

pysiril - 0.0.17
Ebuild name:

sci-astronomy/pysiril-0.0.17

Description

Python library to interface Python to a SiriL script

Added to portage

2026-06-07

rebar - 3.27.0
Ebuild name:

dev-util/rebar-3.27.0

Description

A sophisticated build-tool for Erlang projects that follows OTP principles

Added to portage

2026-06-07

sh - 2.2.4
Ebuild name:

dev-python/sh-2.2.4

Description

Python subprocess interface

Added to portage

2026-06-07

shotwell - 0.32.16
Ebuild name:

media-gfx/shotwell-0.32.16

Description

Open source photo manager for GNOME

Added to portage

2026-06-07

soundfile - 0.14.0
Ebuild name:

dev-python/soundfile-0.14.0

Description

audio library based on libsndfile, CFFI and NumPy

Added to portage

2026-06-07

structlog - 26.1.0
Ebuild name:

dev-python/structlog-26.1.0

Description

Structured Logging for Python

Added to portage

2026-06-07

zensical - 0.0.41
Ebuild name:

dev-python/zensical-0.0.41

Description

A modern static site generator by the Material for MkDocs team

Added to portage

2026-06-07

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