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:

83027

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-31
ansicolor - 0.3.3
Ebuild name:

dev-python/ansicolor-0.3.3

Description

Produce ansi color output and colored highlighting and diffing

Added to portage

2026-01-31

awscli - 1.44.29
Ebuild name:

app-admin/awscli-1.44.29

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-31

boto3 - 1.42.39
Ebuild name:

dev-python/boto3-1.42.39

Description

The AWS SDK for Python

Added to portage

2026-01-31

botocore - 1.42.39
Ebuild name:

dev-python/botocore-1.42.39

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-31

cyme - 2.2.11
Ebuild name:

sys-apps/cyme-2.2.11

Description

List system USB buses and devices; a modern cross-platform `lsusb`

Added to portage

2026-01-31

dist-kernel - 6.12.68
Ebuild name:

virtual/dist-kernel-6.12.68

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-01-31

dist-kernel - 6.18.8
Ebuild name:

virtual/dist-kernel-6.18.8

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-01-31

dist-kernel - 6.6.122
Ebuild name:

virtual/dist-kernel-6.6.122

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-01-31

element - 1.12.9
Ebuild name:

www-apps/element-1.12.9

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-01-31

freerdp - 3.22.0
Ebuild name:

net-misc/freerdp-3.22.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-01-31

gentoo-kernel - 6.12.68
Ebuild name:

sys-kernel/gentoo-kernel-6.12.68

Description

Linux kernel built with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel - 6.18.8
Ebuild name:

sys-kernel/gentoo-kernel-6.18.8

Description

Linux kernel built with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel - 6.6.122
Ebuild name:

sys-kernel/gentoo-kernel-6.6.122

Description

Linux kernel built with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel-bin - 6.12.68
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.68

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel-bin - 6.18.8
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.8

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel-bin - 6.6.122
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.122

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-01-31

gpxsee - 15.10
Ebuild name:

sci-geosciences/gpxsee-15.10

Description

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

Added to portage

2026-01-31

heroic-bin - 2.19.1
Ebuild name:

games-util/heroic-bin-2.19.1

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-01-31

id - 1.6.0
Ebuild name:

dev-python/id-1.6.0

Description

A tool for generating OIDC identities

Added to portage

2026-01-31

kitty - 0.45.0-r1
Ebuild name:

x11-terms/kitty-0.45.0-r1

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-01-31

kitty-terminfo - 0.45.0-r1
Ebuild name:

x11-terms/kitty-terminfo-0.45.0-r1

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-01-31

libhx - 5.3
Ebuild name:

sys-libs/libhx-5.3

Description

Platform independent library providing basic system functions

Added to portage

2026-01-31

nvidia-drivers - 580.94.17
Ebuild name:

x11-drivers/nvidia-drivers-580.94.17

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-01-31

org-roam - 2.3.1
Ebuild name:

app-emacs/org-roam-2.3.1

Description

Rudimentary Roam replica with Org-mode

Added to portage

2026-01-31

pcsx2 - 2.6.3
Ebuild name:

games-emulation/pcsx2-2.6.3

Description

PlayStation 2 emulator

Added to portage

2026-01-31

pooch - 1.9.0
Ebuild name:

dev-python/pooch-1.9.0

Description

Manage your Python library's sample data files

Added to portage

2026-01-31

pyjwt - 2.11.0
Ebuild name:

dev-python/pyjwt-2.11.0

Description

JSON Web Token implementation in Python

Added to portage

2026-01-31

scanssh - 2.1.3.1_p20260130
Ebuild name:

net-analyzer/scanssh-2.1.3.1_p20260130

Description

network scanner that gathers info on SSH protocols and versi

Added to portage

2026-01-31

thc-ipv6 - 3.8_p20250914
Ebuild name:

net-analyzer/thc-ipv6-3.8_p20250914

Description

Complete tool set to attack the inherent protocol weaknesses of

Added to portage

2026-01-31

tqdm - 4.67.2
Ebuild name:

dev-python/tqdm-4.67.2

Description

Add a progress meter to your loops in a second

Added to portage

2026-01-31

vanilla-kernel - 6.12.68
Ebuild name:

sys-kernel/vanilla-kernel-6.12.68

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-01-31

vanilla-kernel - 6.18.8
Ebuild name:

sys-kernel/vanilla-kernel-6.18.8

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-01-31

vanilla-kernel - 6.6.122
Ebuild name:

sys-kernel/vanilla-kernel-6.6.122

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-01-31

vivaldi - 7.8.3925.56
Ebuild name:

www-client/vivaldi-7.8.3925.56

Description

A browser for our friends

Added to portage

2026-01-31

vivaldi-snapshot - 7.8.3925.53
Ebuild name:

www-client/vivaldi-snapshot-7.8.3925.53

Description

A browser for our friends

Added to portage

2026-01-31

2026-01-30
alembic - 1.18.3
Ebuild name:

dev-python/alembic-1.18.3

Description

Database migrations tool, written by the author of SQLAlchemy

Added to portage

2026-01-30

autopage - 0.6.0
Ebuild name:

dev-python/autopage-0.6.0

Description

A library to provide automatic paging for console output

Added to portage

2026-01-30

aws-sam-translator - 1.107.0
Ebuild name:

dev-python/aws-sam-translator-1.107.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2026-01-30

awscli - 1.44.28
Ebuild name:

app-admin/awscli-1.44.28

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-30

bibtexparser - 1.4.4
Ebuild name:

dev-python/bibtexparser-1.4.4

Description

A BibTeX parser written in Python

Added to portage

2026-01-30

boto3 - 1.42.38
Ebuild name:

dev-python/boto3-1.42.38

Description

The AWS SDK for Python

Added to portage

2026-01-30

botocore - 1.42.38
Ebuild name:

dev-python/botocore-1.42.38

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-30

c-blosc2 - 2.23.0
Ebuild name:

dev-libs/c-blosc2-2.23.0

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-01-30

claude-code - 2.1.23
Ebuild name:

dev-util/claude-code-2.1.23

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-01-30

cloudflared - 2026.1.2
Ebuild name:

net-vpn/cloudflared-2026.1.2

Description

A command-line client and tunneling daemon for Cloudflare Tunnel

Added to portage

2026-01-30

courier - 1.6.0
Ebuild name:

mail-mta/courier-1.6.0

Description

An MTA designed specifically for maildirs

Added to portage

2026-01-30

courier-authlib - 0.72.7
Ebuild name:

net-libs/courier-authlib-0.72.7

Description

Courier authentication library

Added to portage

2026-01-30

courier-unicode - 2.5.0
Ebuild name:

net-libs/courier-unicode-2.5.0

Description

Unicode library used by the courier mail server

Added to portage

2026-01-30

cssselect - 1.4.0
Ebuild name:

dev-python/cssselect-1.4.0

Description

Parse CSS3 Selectors and translate them to XPath 1.0

Added to portage

2026-01-30

deno-bin - 2.6.7
Ebuild name:

dev-lang/deno-bin-2.6.7

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-01-30

dracut-crypt-ssh - 1.0.8-r2
Ebuild name:

sys-kernel/dracut-crypt-ssh-1.0.8-r2

Description

Early unlocking of encrypted systems via ssh for dracut

Added to portage

2026-01-30

gimp - 3.0.8-r1
Ebuild name:

media-gfx/gimp-3.0.8-r1

Description

GNU Image Manipulation Program

Added to portage

2026-01-30

hackrf-tools - 2026.01.3
Ebuild name:

net-wireless/hackrf-tools-2026.01.3

Description

tools for communicating with HackRF SDR platform

Added to portage

2026-01-30

kea - 3.0.2-r2
Ebuild name:

net-misc/kea-3.0.2-r2

Description

High-performance production grade DHCPv4 & DHCPv6 server

Added to portage

2026-01-30

libhackrf - 2026.01.3
Ebuild name:

net-libs/libhackrf-2026.01.3

Description

library for communicating with HackRF SDR platform

Added to portage

2026-01-30

nanobind - 2.11.0
Ebuild name:

dev-python/nanobind-2.11.0

Description

Tiny and efficient C++/Python bindings

Added to portage

2026-01-30

nbconvert - 7.17.0
Ebuild name:

dev-python/nbconvert-7.17.0

Description

Converting Jupyter Notebooks

Added to portage

2026-01-30

nvidia-drivers - 580.95.05
Ebuild name:

x11-drivers/nvidia-drivers-580.95.05

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-01-30

nvidia-vaapi-driver - 0.0.15
Ebuild name:

media-libs/nvidia-vaapi-driver-0.0.15

Description

A VA-API implemention using NVIDIA's NVDEC

Added to portage

2026-01-30

openjdk-bin - 25.0.2_p10
Ebuild name:

dev-java/openjdk-bin-25.0.2_p10

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-01-30

org-roam - 9999
Ebuild name:

app-emacs/org-roam-9999

Description

Rudimentary Roam replica with Org-mode

Added to portage

2026-01-30

orjson - 3.11.6
Ebuild name:

dev-python/orjson-3.11.6

Description

Fast, correct Python JSON library supporting dataclasses, datetimes, and n

Added to portage

2026-01-30

pdm-backend - 2.4.7
Ebuild name:

dev-python/pdm-backend-2.4.7

Description

A PEP 517 backend for PDM that supports PEP 621 metadata

Added to portage

2026-01-30

pikepdf - 10.3.0
Ebuild name:

dev-python/pikepdf-10.3.0

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-01-30

postfix - 3.12_pre20260127
Ebuild name:

mail-mta/postfix-3.12_pre20260127

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-01-30

prometheus-podman-exporter - 1.20.0
Ebuild name:

app-metrics/prometheus-podman-exporter-1.20.0

Description

Exporter for podman giving containers, pods, images,

Added to portage

2026-01-30

protobuf - 6.33.5
Ebuild name:

dev-python/protobuf-6.33.5

Description

Google's Protocol Buffers - Python bindings

Added to portage

2026-01-30

python-dbusmock - 0.38.1
Ebuild name:

dev-python/python-dbusmock-0.38.1

Description

Easily create mock objects on D-Bus for software testing

Added to portage

2026-01-30

pytokens - 0.4.1
Ebuild name:

dev-python/pytokens-0.4.1

Description

A fast, spec compliant Python 3.13+ tokenizer that runs on older Pythons

Added to portage

2026-01-30

sphinxcontrib-trio - 1.2.0
Ebuild name:

dev-python/sphinxcontrib-trio-1.2.0

Description

Make Sphinx better at documenting Python functions and methods

Added to portage

2026-01-30

spidermonkey - 140.7.0
Ebuild name:

dev-lang/spidermonkey-140.7.0

Description

Mozilla's JavaScript engine written in C and C++

Added to portage

2026-01-30

sqlglot - 28.7.0
Ebuild name:

dev-python/sqlglot-28.7.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-01-30

steve - 1.5.0
Ebuild name:

dev-build/steve-1.5.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2026-01-30

talk-desktop-bin - 2.0.5
Ebuild name:

net-im/talk-desktop-bin-2.0.5

Description

Nextcloud Talk Desktop client

Added to portage

2026-01-30

thriftpy2 - 0.6.0_beta1
Ebuild name:

dev-python/thriftpy2-0.6.0_beta1

Description

Pure python approach of Apache Thrift

Added to portage

2026-01-30

tifffile - 2026.1.28
Ebuild name:

dev-python/tifffile-2026.1.28

Description

Read and write TIFF files

Added to portage

2026-01-30

toml-fmt-common - 1.2.0
Ebuild name:

dev-python/toml-fmt-common-1.2.0

Description

Common logic to the TOML formatter

Added to portage

2026-01-30

ttl - 0.15.3
Ebuild name:

net-analyzer/ttl-0.15.3

Description

Modern traceroute/mtr-style TUI with hop stats and optional ASN/geo enrichm

Added to portage

2026-01-30

types-psutil - 7.2.2.20260130
Ebuild name:

dev-python/types-psutil-7.2.2.20260130

Description

Typing stubs for psutil

Added to portage

2026-01-30

uv - 0.9.28
Ebuild name:

dev-python/uv-0.9.28

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-01-30

uv-build - 0.9.28
Ebuild name:

dev-python/uv-build-0.9.28

Description

PEP517 uv build backend

Added to portage

2026-01-30

wcwidth - 0.5.2
Ebuild name:

dev-python/wcwidth-0.5.2

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-01-30

yt-dlp - 2026.01.29
Ebuild name:

net-misc/yt-dlp-2026.01.29

Description

youtube-dl fork with additional features and fixes

Added to portage

2026-01-30

yt-dlp-ejs - 0.4.0
Ebuild name:

dev-python/yt-dlp-ejs-0.4.0

Description

External JavaScript for yt-dlp supporting many runtimes

Added to portage

2026-01-30

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