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:

82737

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-07
anyio - 4.12.1
Ebuild name:

dev-python/anyio-4.12.1

Description

Compatibility layer for multiple asynchronous event loop implementations

Added to portage

2026-01-07

avidemux - 2.8.1_p20251019-r1
Ebuild name:

media-video/avidemux-2.8.1_p20251019-r1

Description

Video editor designed for simple cutting, filtering and enc

Added to portage

2026-01-07

awscli - 1.44.13
Ebuild name:

app-admin/awscli-1.44.13

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-07

boto3 - 1.42.23
Ebuild name:

dev-python/boto3-1.42.23

Description

The AWS SDK for Python

Added to portage

2026-01-07

botocore - 1.42.23
Ebuild name:

dev-python/botocore-1.42.23

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-07

claude-code - 2.0.77
Ebuild name:

dev-util/claude-code-2.0.77

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-01-07

derper - 1.92.4
Ebuild name:

net-vpn/derper-1.92.4

Description

DERP server for tailscale network

Added to portage

2026-01-07

django - 5.2.10
Ebuild name:

dev-python/django-5.2.10

Description

High-level Python web framework

Added to portage

2026-01-07

django - 6.0.1
Ebuild name:

dev-python/django-6.0.1

Description

High-level Python web framework

Added to portage

2026-01-07

flog - 4.9.4
Ebuild name:

dev-ruby/flog-4.9.4

Description

Flog reports the most tortured code in an easy to read pain report

Added to portage

2026-01-07

google-auth - 2.47.0
Ebuild name:

dev-python/google-auth-2.47.0

Description

Google Authentication Library

Added to portage

2026-01-07

hackrf-tools - 2026.01.1
Ebuild name:

net-wireless/hackrf-tools-2026.01.1

Description

tools for communicating with HackRF SDR platform

Added to portage

2026-01-07

hypothesis - 6.150.0
Ebuild name:

dev-python/hypothesis-6.150.0

Description

A library for property based testing

Added to portage

2026-01-07

kube-apiserver - 1.33.7
Ebuild name:

sys-cluster/kube-apiserver-1.33.7

Description

Kubernetes API server

Added to portage

2026-01-07

kube-controller-manager - 1.33.7
Ebuild name:

sys-cluster/kube-controller-manager-1.33.7

Description

Kubernetes Controller Manager

Added to portage

2026-01-07

kube-proxy - 1.33.7
Ebuild name:

sys-cluster/kube-proxy-1.33.7

Description

Kubernetes Proxy service

Added to portage

2026-01-07

kube-scheduler - 1.33.7
Ebuild name:

sys-cluster/kube-scheduler-1.33.7

Description

Kubernetes Scheduler

Added to portage

2026-01-07

kubeadm - 1.33.7
Ebuild name:

sys-cluster/kubeadm-1.33.7

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2026-01-07

kubectl - 1.33.7
Ebuild name:

sys-cluster/kubectl-1.33.7

Description

CLI to run commands against Kubernetes clusters

Added to portage

2026-01-07

kubelet - 1.33.7
Ebuild name:

sys-cluster/kubelet-1.33.7

Description

Kubernetes Node Agent

Added to portage

2026-01-07

ldoc - 1.5.0
Ebuild name:

dev-lua/ldoc-1.5.0

Description

LuaDoc-compatible documentation generation system

Added to portage

2026-01-07

libhackrf - 2026.01.1
Ebuild name:

net-libs/libhackrf-2026.01.1

Description

library for communicating with HackRF SDR platform

Added to portage

2026-01-07

libofx - 0.10.9-r1
Ebuild name:

dev-libs/libofx-0.10.9-r1

Description

Library to support the Open Financial eXchange XML format

Added to portage

2026-01-07

libxdg-basedir - 1.2.3-r1
Ebuild name:

dev-libs/libxdg-basedir-1.2.3-r1

Description

Small library to access XDG Base Directories Specification paths

Added to portage

2026-01-07

narwhals - 2.15.0
Ebuild name:

dev-python/narwhals-2.15.0

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2026-01-07

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

pathspec - 1.0.1
Ebuild name:

dev-python/pathspec-1.0.1

Description

Utility library for gitignore style pattern matching of file paths

Added to portage

2026-01-07

py-spy - 0.4.1
Ebuild name:

dev-util/py-spy-0.4.1

Description

Sampling profiler for Python programs

Added to portage

2026-01-07

pyfuse3 - 3.4.2
Ebuild name:

dev-python/pyfuse3-3.4.2

Description

Python 3 bindings for libfuse 3 with asynchronous API

Added to portage

2026-01-07

pytest-golden - 1.0.1
Ebuild name:

dev-python/pytest-golden-1.0.1

Description

Plugin for pytest that offloads expected outputs to data files

Added to portage

2026-01-07

rpm - 6.0.1
Ebuild name:

app-arch/rpm-6.0.1

Description

The RPM Package Manager

Added to portage

2026-01-07

sbctl - 0.16
Ebuild name:

app-crypt/sbctl-0.16

Description

Secure Boot key manager

Added to portage

2026-01-07

strscan - 3.1.7
Ebuild name:

dev-ruby/strscan-3.1.7

Description

Provides lexical scanning operations on a String

Added to portage

2026-01-07

tarlz - 0.29
Ebuild name:

app-arch/tarlz-0.29

Description

A parallel archiver combining tar and lzip

Added to portage

2026-01-07

thor - 1.5.0
Ebuild name:

dev-ruby/thor-1.5.0

Description

Simple and efficient tool for building self-documenting command line utilities

Added to portage

2026-01-07

uv - 0.9.22
Ebuild name:

dev-python/uv-0.9.22

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-01-07

uv-build - 0.9.22
Ebuild name:

dev-python/uv-build-0.9.22

Description

PEP517 uv build backend

Added to portage

2026-01-07

wget2 - 2.2.1
Ebuild name:

net-misc/wget2-2.2.1

Description

GNU Wget2 is a file and recursive website downloader

Added to portage

2026-01-07

xmlschema - 4.3.0
Ebuild name:

dev-python/xmlschema-4.3.0

Description

An XML Schema validator and decoder

Added to portage

2026-01-07

xvfbwrapper - 0.2.17
Ebuild name:

dev-python/xvfbwrapper-0.2.17

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-01-07

2026-01-06
ada_language_server - 26.0.202504171
Ebuild name:

dev-ada/ada_language_server-26.0.202504171

Description

a Language Server Protocol for Ada/SPARK

Added to portage

2026-01-06

ada_language_server - 26.0.202507020
Ebuild name:

dev-ada/ada_language_server-26.0.202507020

Description

a Language Server Protocol for Ada/SPARK

Added to portage

2026-01-06

ada_language_server - 26.0.202507021
Ebuild name:

dev-ada/ada_language_server-26.0.202507021

Description

a Language Server Protocol for Ada/SPARK

Added to portage

2026-01-06

adifmerg - 20250112
Ebuild name:

media-radio/adifmerg-20250112

Description

A small conversion and check utility for ADIF files

Added to portage

2026-01-06

adifmerg - 9999
Ebuild name:

media-radio/adifmerg-9999

Description

A small conversion and check utility for ADIF files

Added to portage

2026-01-06

awesome - 4.3_p20260105
Ebuild name:

x11-wm/awesome-4.3_p20260105

Description

Dynamic floating and tiling window manager

Added to portage

2026-01-06

boto3 - 1.42.22
Ebuild name:

dev-python/boto3-1.42.22

Description

The AWS SDK for Python

Added to portage

2026-01-06

botocore - 1.42.22
Ebuild name:

dev-python/botocore-1.42.22

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-06

calligraplan - 4.0.0
Ebuild name:

app-office/calligraplan-4.0.0

Description

Project management application

Added to portage

2026-01-06

cfn-lint - 1.43.2
Ebuild name:

dev-python/cfn-lint-1.43.2

Description

CloudFormation Linter

Added to portage

2026-01-06

cmocka - 2.0.1
Ebuild name:

dev-util/cmocka-2.0.1

Description

Unit testing framework for C

Added to portage

2026-01-06

colord - 1.4.8-r1
Ebuild name:

x11-misc/colord-1.4.8-r1

Description

System service to accurately color manage input and output devices

Added to portage

2026-01-06

coreutils - 9.9-r1
Ebuild name:

sys-apps/coreutils-9.9-r1

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-01-06

coreutils - 9.9-r11
Ebuild name:

sys-apps/coreutils-9.9-r11

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-01-06

cyme - 2.2.9
Ebuild name:

sys-apps/cyme-2.2.9

Description

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

Added to portage

2026-01-06

dbeaver-bin - 25.3.1-r1
Ebuild name:

dev-db/dbeaver-bin-25.3.1-r1

Description

Free universal database tool (community edition)

Added to portage

2026-01-06

dbeaver-bin - 25.3.2-r1
Ebuild name:

dev-db/dbeaver-bin-25.3.2-r1

Description

Free universal database tool (community edition)

Added to portage

2026-01-06

ddrescue - 1.30
Ebuild name:

sys-fs/ddrescue-1.30

Description

Copy data from one file or block device to another with read-error recovery

Added to portage

2026-01-06

deno-bin - 2.6.4
Ebuild name:

dev-lang/deno-bin-2.6.4

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-01-06

django-polymorphic - 4.6.0
Ebuild name:

dev-python/django-polymorphic-4.6.0

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2026-01-06

ed - 1.22.4
Ebuild name:

sys-apps/ed-1.22.4

Description

Your basic line editor

Added to portage

2026-01-06

faraday-gzip - 3.1.0
Ebuild name:

dev-ruby/faraday-gzip-3.1.0

Description

Faraday plugin to set compression headers and decompress responses.

Added to portage

2026-01-06

flog - 4.9.3
Ebuild name:

dev-ruby/flog-4.9.3

Description

Flog reports the most tortured code in an easy to read pain report

Added to portage

2026-01-06

gitlab-runner - 18.6.6
Ebuild name:

dev-util/gitlab-runner-18.6.6

Description

The official GitLab Runner, written in Go

Added to portage

2026-01-06

gitlab-runner - 18.7.1
Ebuild name:

dev-util/gitlab-runner-18.7.1

Description

The official GitLab Runner, written in Go

Added to portage

2026-01-06

google-auth - 2.46.0
Ebuild name:

dev-python/google-auth-2.46.0

Description

Google Authentication Library

Added to portage

2026-01-06

hypothesis - 6.149.0
Ebuild name:

dev-python/hypothesis-6.149.0

Description

A library for property based testing

Added to portage

2026-01-06

hypothesis - 6.149.1
Ebuild name:

dev-python/hypothesis-6.149.1

Description

A library for property based testing

Added to portage

2026-01-06

imlib2 - 1.12.6
Ebuild name:

media-libs/imlib2-1.12.6

Description

Version 2 of an advanced replacement library for libraries like libXpm

Added to portage

2026-01-06

imlib2_loaders - 1.12.6
Ebuild name:

media-plugins/imlib2_loaders-1.12.6

Description

Additional image loaders for Imlib2

Added to portage

2026-01-06

ipython - 9.9.0
Ebuild name:

dev-python/ipython-9.9.0

Description

Advanced interactive shell for Python

Added to portage

2026-01-06

kube-apiserver - 1.32.11
Ebuild name:

sys-cluster/kube-apiserver-1.32.11

Description

Kubernetes API server

Added to portage

2026-01-06

kube-controller-manager - 1.32.11
Ebuild name:

sys-cluster/kube-controller-manager-1.32.11

Description

Kubernetes Controller Manager

Added to portage

2026-01-06

kube-proxy - 1.32.11
Ebuild name:

sys-cluster/kube-proxy-1.32.11

Description

Kubernetes Proxy service

Added to portage

2026-01-06

kube-scheduler - 1.32.11
Ebuild name:

sys-cluster/kube-scheduler-1.32.11

Description

Kubernetes Scheduler

Added to portage

2026-01-06

kubeadm - 1.32.11
Ebuild name:

sys-cluster/kubeadm-1.32.11

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2026-01-06

kubectl - 1.32.11
Ebuild name:

sys-cluster/kubectl-1.32.11

Description

CLI to run commands against Kubernetes clusters

Added to portage

2026-01-06

kubelet - 1.32.11
Ebuild name:

sys-cluster/kubelet-1.32.11

Description

Kubernetes Node Agent

Added to portage

2026-01-06

lgi - 0.9.2_p20251219
Ebuild name:

dev-lua/lgi-0.9.2_p20251219

Description

Lua bindings using gobject-introspection

Added to portage

2026-01-06

libarchive - 3.8.5
Ebuild name:

app-arch/libarchive-3.8.5

Description

Multi-format archive and compression library

Added to portage

2026-01-06

lumberjack - 2.0.4
Ebuild name:

dev-ruby/lumberjack-2.0.4

Description

A simple, powerful, and very fast logging utility

Added to portage

2026-01-06

maturin - 1.11.2
Ebuild name:

dev-util/maturin-1.11.2

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-01-06

mumble - 1.6.0_pre20250920-r2
Ebuild name:

net-voip/mumble-1.6.0_pre20250920-r2

Description

Mumble is an open source, low-latency, high quality voice chat

Added to portage

2026-01-06

murmur - 1.6.0_pre20250920-r3
Ebuild name:

net-voip/murmur-1.6.0_pre20250920-r3

Description

Mumble is an open source, low-latency, high quality voice chat

Added to portage

2026-01-06

openvpn - 2.6.17-r1
Ebuild name:

net-vpn/openvpn-2.6.17-r1

Description

Robust and highly flexible tunneling application compatible with many OSe

Added to portage

2026-01-06

ovpn-dco - 0.2.20251017
Ebuild name:

net-vpn/ovpn-dco-0.2.20251017

Description

OpenVPN Data Channel Offload in the linux kernel

Added to portage

2026-01-06

patatt - 0.7.0-r1
Ebuild name:

dev-python/patatt-0.7.0-r1

Description

A simple library to add cryptographic attestation to patches sent via em

Added to portage

2026-01-06

pathspec - 1.0.0
Ebuild name:

dev-python/pathspec-1.0.0

Description

Utility library for gitignore style pattern matching of file paths

Added to portage

2026-01-06

pcsx2 - 2.6.1
Ebuild name:

games-emulation/pcsx2-2.6.1

Description

PlayStation 2 emulator

Added to portage

2026-01-06

prismlauncher - 9.4-r1
Ebuild name:

games-action/prismlauncher-9.4-r1

Description

Custom, open source Minecraft launcher

Added to portage

2026-01-06

pyasynchat - 1.0.5
Ebuild name:

dev-python/pyasynchat-1.0.5

Description

Make asynchat available for Python 3.12 onwards

Added to portage

2026-01-06

pyasyncore - 1.0.5
Ebuild name:

dev-python/pyasyncore-1.0.5

Description

Make asyncore available for Python 3.12 onwards

Added to portage

2026-01-06

pyshp - 3.0.3
Ebuild name:

sci-libs/pyshp-3.0.3

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2026-01-06

pyside - 6.10.1-r4
Ebuild name:

dev-python/pyside-6.10.1-r4

Description

Python bindings for the Qt framework

Added to portage

2026-01-06

ruff - 0.14.10-r1
Ebuild name:

dev-util/ruff-0.14.10-r1

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-01-06

sbctl - 0.16
Ebuild name:

app-crypt/sbctl-0.16

Description

Secure Boot key manager

Added to portage

2026-01-06

seatd - 0.9.2
Ebuild name:

sys-auth/seatd-0.9.2

Description

Minimal seat management daemon and universal library

Added to portage

2026-01-06

shadowman - 5
Ebuild name:

dev-util/shadowman-5

Description

Unified compiler shadow link directory updater

Added to portage

2026-01-06

soci - 4.1.2-r2
Ebuild name:

dev-db/soci-4.1.2-r2

Description

SOCI - The C++ Database Access Library

Added to portage

2026-01-06

sudo-rs - 0.2.11-r1
Ebuild name:

app-admin/sudo-rs-0.2.11-r1

Description

A memory safe implementation of sudo and su.

Added to portage

2026-01-06

syncthing - 2.0.13
Ebuild name:

net-p2p/syncthing-2.0.13

Description

Open Source Continuous File Synchronization

Added to portage

2026-01-06

tailscale - 1.92.4
Ebuild name:

net-vpn/tailscale-1.92.4

Description

Tailscale vpn client

Added to portage

2026-01-06

texstudio - 4.9.1
Ebuild name:

app-office/texstudio-4.9.1

Description

Free cross-platform LaTeX editor (fork from texmakerX)

Added to portage

2026-01-06

transmission - 4.1.0_beta5
Ebuild name:

net-p2p/transmission-4.1.0_beta5

Description

A fast, easy, and free BitTorrent client

Added to portage

2026-01-06

udisks - 2.10.2-r1
Ebuild name:

sys-fs/udisks-2.10.2-r1

Description

Daemon providing interfaces to work with storage devices

Added to portage

2026-01-06

udisks - 2.11.0-r1
Ebuild name:

sys-fs/udisks-2.11.0-r1

Description

Daemon providing interfaces to work with storage devices

Added to portage

2026-01-06

upterm - 0.21.0
Ebuild name:

app-misc/upterm-0.21.0

Description

Instant Terminal Sharing

Added to portage

2026-01-06

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