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:

84177

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-04-05
ebuild-mode - 1.82
Ebuild name:

app-xemacs/ebuild-mode-1.82

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2026-04-05

gcc - 15.2.1_p20260404
Ebuild name:

sys-devel/gcc-15.2.1_p20260404

Description

The GNU Compiler Collection

Added to portage

2026-04-05

mac - 12.62
Ebuild name:

media-sound/mac-12.62

Description

Monkey's Audio Codecs

Added to portage

2026-04-05

prowlarr-bin - 2.3.5.5327
Ebuild name:

www-apps/prowlarr-bin-2.3.5.5327

Description

An indexer manager/proxy to integrate with your various PVR apps

Added to portage

2026-04-05

spectre-meltdown-checker - 26.26.0404682
Ebuild name:

app-admin/spectre-meltdown-checker-26.26.0404682

Description

Spectre & Meltdown vulnerability/mitigation ch

Added to portage

2026-04-05

tempestsdr - 0.0_p20260404
Ebuild name:

net-wireless/tempestsdr-0.0_p20260404

Description

Remote video eavesdropping using a software-defined radio pla

Added to portage

2026-04-05

2026-04-04
avogadro2 - 2.0.0
Ebuild name:

sci-chemistry/avogadro2-2.0.0

Description

Advanced molecule editor and visualizer 2

Added to portage

2026-04-04

avogadrolibs - 2.0.0
Ebuild name:

sci-libs/avogadrolibs-2.0.0

Description

Advanced molecule editor and visualizer 2 - libraries

Added to portage

2026-04-04

aws-session-manager-plugin - 1.2.804.0
Ebuild name:

app-admin/aws-session-manager-plugin-1.2.804.0

Description

AWS Session Manager Plugin for aws-cli

Added to portage

2026-04-04

awscli - 1.44.73
Ebuild name:

app-admin/awscli-1.44.73

Description

Universal Command Line Environment for AWS

Added to portage

2026-04-04

awscli-bin - 2.34.24
Ebuild name:

app-admin/awscli-bin-2.34.24

Description

command line interface for Amazon Web Services

Added to portage

2026-04-04

bcc - 0.36.1-r1
Ebuild name:

dev-util/bcc-0.36.1-r1

Description

Tools for BPF-based Linux IO analysis, networking, monitoring, and more

Added to portage

2026-04-04

botan - 3.11.1
Ebuild name:

dev-libs/botan-3.11.1

Description

C++ crypto library

Added to portage

2026-04-04

boto3 - 1.42.83
Ebuild name:

dev-python/boto3-1.42.83

Description

The AWS SDK for Python

Added to portage

2026-04-04

botocore - 1.42.83
Ebuild name:

dev-python/botocore-1.42.83

Description

Low-level, data-driven core of boto 3

Added to portage

2026-04-04

brltty - 6.9
Ebuild name:

app-accessibility/brltty-6.9

Description

Daemon that provides access to the Linux/Unix console for a blind pers

Added to portage

2026-04-04

cfn-lint - 1.48.1
Ebuild name:

dev-python/cfn-lint-1.48.1

Description

CloudFormation Linter

Added to portage

2026-04-04

chrome-binary-plugins - 148.0.7766.3_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-148.0.7766.3_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-04-04

chromium - 147.0.7727.49
Ebuild name:

www-client/chromium-147.0.7727.49

Description

Open-source version of Google Chrome web browser

Added to portage

2026-04-04

click - 8.3.2
Ebuild name:

dev-python/click-8.3.2

Description

A Python package for creating beautiful command line interfaces

Added to portage

2026-04-04

cloudflare-warp - 2026.3.846.0
Ebuild name:

net-vpn/cloudflare-warp-2026.3.846.0

Description

Cloudflare Warp Client

Added to portage

2026-04-04

cryptsetup - 2.8.6
Ebuild name:

sys-fs/cryptsetup-2.8.6

Description

Tool to setup encrypted devices with dm-crypt

Added to portage

2026-04-04

diffoscope - 316
Ebuild name:

dev-util/diffoscope-316

Description

Will try to get to the bottom of what makes files or directories different

Added to portage

2026-04-04

dist-kernel - 6.12.80
Ebuild name:

virtual/dist-kernel-6.12.80

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-04

dist-kernel - 6.18.21
Ebuild name:

virtual/dist-kernel-6.18.21

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-04

dist-kernel - 6.19.11
Ebuild name:

virtual/dist-kernel-6.19.11

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-04

dist-kernel - 6.6.132
Ebuild name:

virtual/dist-kernel-6.6.132

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-04

ethtool - 6.19
Ebuild name:

sys-apps/ethtool-6.19

Description

Utility for examining and tuning ethernet-based network interfaces

Added to portage

2026-04-04

evisum - 1.2.1
Ebuild name:

sys-process/evisum-1.2.1

Description

System and process monitor written with EFL

Added to portage

2026-04-04

fzf - 0.71.0
Ebuild name:

app-shells/fzf-0.71.0

Description

General-purpose command-line fuzzy finder, written in Golang

Added to portage

2026-04-04

gcc - 13.4.1_p20260402
Ebuild name:

sys-devel/gcc-13.4.1_p20260402

Description

The GNU Compiler Collection

Added to portage

2026-04-04

gcc - 14.3.1_p20260403
Ebuild name:

sys-devel/gcc-14.3.1_p20260403

Description

The GNU Compiler Collection

Added to portage

2026-04-04

gentoo-kernel - 6.12.80
Ebuild name:

sys-kernel/gentoo-kernel-6.12.80

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-04

gentoo-kernel - 6.18.21
Ebuild name:

sys-kernel/gentoo-kernel-6.18.21

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-04

gentoo-kernel - 6.19.11
Ebuild name:

sys-kernel/gentoo-kernel-6.19.11

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-04

gentoo-kernel - 6.6.132
Ebuild name:

sys-kernel/gentoo-kernel-6.6.132

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-04

gentoo-kernel-bin - 6.12.80
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.80

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-04

gentoo-kernel-bin - 6.18.21
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.21

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-04

gentoo-kernel-bin - 6.19.11
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.19.11

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-04

gentoo-kernel-bin - 6.6.132
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.132

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-04

google-chrome-unstable - 148.0.7766.3
Ebuild name:

www-client/google-chrome-unstable-148.0.7766.3

Description

The web browser from Google

Added to portage

2026-04-04

hiprt - 2.5.20250428-r1
Ebuild name:

dev-libs/hiprt-2.5.20250428-r1

Description

A ray tracing library for HIP

Added to portage

2026-04-04

icingaweb2-module-director - 1.11.7
Ebuild name:

www-apps/icingaweb2-module-director-1.11.7

Description

Icinga Web 2 plugin for configuration

Added to portage

2026-04-04

imapsync - 2.314
Ebuild name:

net-mail/imapsync-2.314

Description

Tool for incremental and recursive IMAP transfers between mailboxes

Added to portage

2026-04-04

jj - 0.40.0
Ebuild name:

dev-vcs/jj-0.40.0

Description

Jujutsu - an experimental version control system

Added to portage

2026-04-04

k9scli - 0.50.18
Ebuild name:

sys-cluster/k9scli-0.50.18

Description

terminal based UI to manage kubernetes clusters

Added to portage

2026-04-04

keepassxc - 2.7.11-r2
Ebuild name:

app-admin/keepassxc-2.7.11-r2

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2026-04-04

keepassxc - 2.8.0_pre260316-r1
Ebuild name:

app-admin/keepassxc-2.8.0_pre260316-r1

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2026-04-04

knot - 3.4.10
Ebuild name:

net-dns/knot-3.4.10

Description

High-performance authoritative-only DNS server

Added to portage

2026-04-04

knot - 3.5.4
Ebuild name:

net-dns/knot-3.5.4

Description

High-performance authoritative-only DNS server

Added to portage

2026-04-04

kube-proxy - 1.35.3
Ebuild name:

sys-cluster/kube-proxy-1.35.3

Description

Kubernetes Proxy service

Added to portage

2026-04-04

libqalculate - 5.10.0
Ebuild name:

sci-libs/libqalculate-5.10.0

Description

A modern multi-purpose calculator library

Added to portage

2026-04-04

libsdl2 - 2.32.66
Ebuild name:

media-libs/libsdl2-2.32.66

Description

Simple Direct Media Layer

Added to portage

2026-04-04

libsdl3 - 3.4.4
Ebuild name:

media-libs/libsdl3-3.4.4

Description

Simple Direct Media Layer

Added to portage

2026-04-04

libu2f-server - 1.1.0-r2
Ebuild name:

app-crypt/libu2f-server-1.1.0-r2

Description

Yubico Universal 2nd Factor (U2F) server C Library

Added to portage

2026-04-04

libu2f-server - 1.1.0-r2
Ebuild name:

app-crypt/libu2f-server-1.1.0-r2

Description

Yubico Universal 2nd Factor (U2F) server C Library

Added to portage

2026-04-04

libunistring - 1.4.2
Ebuild name:

dev-libs/libunistring-1.4.2

Description

Library for manipulating Unicode and C strings according to Unicode sta

Added to portage

2026-04-04

loop-aes-losetup - 2.40.2
Ebuild name:

app-crypt/loop-aes-losetup-2.40.2

Description

Loop-AES losetup utility

Added to portage

2026-04-04

loop-aes-losetup - 2.41.1
Ebuild name:

app-crypt/loop-aes-losetup-2.41.1

Description

Loop-AES losetup utility

Added to portage

2026-04-04

man-pages-l10n - 4.30.0
Ebuild name:

app-i18n/man-pages-l10n-4.30.0

Description

A somewhat comprehensive collection of man page translations

Added to portage

2026-04-04

marshmallow - 4.3.0
Ebuild name:

dev-python/marshmallow-4.3.0

Description

A library for converting to and from native Python datatypes

Added to portage

2026-04-04

mediafile - 0.16.0
Ebuild name:

dev-python/mediafile-0.16.0

Description

Read and write audio files' tags in Python

Added to portage

2026-04-04

meson - 1.11.0_rc2
Ebuild name:

dev-build/meson-1.11.0_rc2

Description

Open source build system

Added to portage

2026-04-04

nextcloud-notify_push - 1.3.1
Ebuild name:

www-apps/nextcloud-notify_push-1.3.1

Description

Push daemon for Nextcloud clients

Added to portage

2026-04-04

openpgp-keys-knot - 20260304
Ebuild name:

sec-keys/openpgp-keys-knot-20260304

Description

OpenPGP keys used by the Knot DNS developers

Added to portage

2026-04-04

openrsync - 0.5.0_p20250127
Ebuild name:

net-misc/openrsync-0.5.0_p20250127

Description

BSD-licensed implementation of rsync

Added to portage

2026-04-04

opera-developer - 131.0.5856.0
Ebuild name:

www-client/opera-developer-131.0.5856.0

Description

A fast and secure web browser

Added to portage

2026-04-04

opera-gx - 129.0.5823.64
Ebuild name:

www-client/opera-gx-129.0.5823.64

Description

Opera, but for 'gamers'

Added to portage

2026-04-04

phlex - 1.11.1
Ebuild name:

dev-ruby/phlex-1.11.1

Description

A framework for building object-oriented views in Ruby

Added to portage

2026-04-04

phlex - 2.2.2
Ebuild name:

dev-ruby/phlex-2.2.2

Description

A framework for building object-oriented views in Ruby

Added to portage

2026-04-04

phlex - 2.3.2
Ebuild name:

dev-ruby/phlex-2.3.2

Description

A framework for building object-oriented views in Ruby

Added to portage

2026-04-04

pound - 4.22
Ebuild name:

www-servers/pound-4.22

Description

A http/https reverse-proxy and load-balancer

Added to portage

2026-04-04

pybtex - 0.26.1
Ebuild name:

dev-python/pybtex-0.26.1

Description

BibTeX-compatible bibliography processor

Added to portage

2026-04-04

pydata-sphinx-theme - 0.17.0
Ebuild name:

dev-python/pydata-sphinx-theme-0.17.0

Description

Bootstrap-based Sphinx theme from the PyData community

Added to portage

2026-04-04

python-ly - 0.9.10
Ebuild name:

dev-python/python-ly-0.9.10

Description

Tool and library for manipulating LilyPond files

Added to portage

2026-04-04

qalculate-gtk - 5.10.0
Ebuild name:

sci-calculators/qalculate-gtk-5.10.0

Description

Modern multi-purpose calculator

Added to portage

2026-04-04

qalculate-qt - 5.10.0
Ebuild name:

sci-calculators/qalculate-qt-5.10.0

Description

Qt-based UI for libqalculate

Added to portage

2026-04-04

qdmr - 0.14.0
Ebuild name:

net-wireless/qdmr-0.14.0

Description

GUI application for configuring and programming cheap DMR radios

Added to portage

2026-04-04

qpageview - 1.0.4
Ebuild name:

dev-python/qpageview-1.0.4

Description

Page-based viewer widget for Qt5/PyQt5

Added to portage

2026-04-04

rapidyaml - 0.11.1
Ebuild name:

dev-cpp/rapidyaml-0.11.1

Description

Library to parse and emit YAML, and do it fast

Added to portage

2026-04-04

redis-knot - 3.5.4
Ebuild name:

net-dns/redis-knot-3.5.4

Description

Redis module for Knot DNS

Added to portage

2026-04-04

regex - 2026.4.4
Ebuild name:

dev-python/regex-2026.4.4

Description

Alternative regular expression module to replace re

Added to portage

2026-04-04

ruff - 0.15.9
Ebuild name:

dev-util/ruff-0.15.9

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-04-04

simdjson - 4.6.1
Ebuild name:

dev-libs/simdjson-4.6.1

Description

SIMD accelerated C++ JSON library

Added to portage

2026-04-04

snapraid - 14.1
Ebuild name:

sys-fs/snapraid-14.1

Description

Backup program with disk array for cold data on existing filesystems

Added to portage

2026-04-04

sqlalchemy - 2.0.49
Ebuild name:

dev-python/sqlalchemy-2.0.49

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-04-04

streamlink - 8.2.1
Ebuild name:

net-misc/streamlink-8.2.1

Description

CLI for extracting streams from websites to a video player of your choice

Added to portage

2026-04-04

tailscale - 1.96.5
Ebuild name:

net-vpn/tailscale-1.96.5

Description

Tailscale vpn client

Added to portage

2026-04-04

telegram-desktop-bin - 6.7.2
Ebuild name:

net-im/telegram-desktop-bin-6.7.2

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-04-04

terraform - 1.14.8
Ebuild name:

app-admin/terraform-1.14.8

Description

A tool for building, changing, and combining infrastructure safely

Added to portage

2026-04-04

tibs - 0.6.0
Ebuild name:

dev-python/tibs-0.6.0

Description

A sleek Python library for your binary data

Added to portage

2026-04-04

uvicorn - 0.43.0
Ebuild name:

dev-python/uvicorn-0.43.0

Description

Lightning-fast ASGI server implementation

Added to portage

2026-04-04

vanilla-kernel - 6.12.80
Ebuild name:

sys-kernel/vanilla-kernel-6.12.80

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-04

vanilla-kernel - 6.18.21
Ebuild name:

sys-kernel/vanilla-kernel-6.18.21

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-04

vanilla-kernel - 6.19.11
Ebuild name:

sys-kernel/vanilla-kernel-6.19.11

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-04

vanilla-kernel - 6.6.132
Ebuild name:

sys-kernel/vanilla-kernel-6.6.132

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-04

whenever - 0.10.0_beta4
Ebuild name:

dev-python/whenever-0.10.0_beta4

Description

Modern datetime library for Python

Added to portage

2026-04-04

wine-vanilla - 11.6
Ebuild name:

app-emulation/wine-vanilla-11.6

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2026-04-04

xlsx2csv - 0.8.6
Ebuild name:

app-text/xlsx2csv-0.8.6

Description

Convert MS Office xlsx files to CSV

Added to portage

2026-04-04

xmlsec - 1.3.10-r1
Ebuild name:

dev-libs/xmlsec-1.3.10-r1

Description

Command line tool for signing, verifying, encrypting and decrypting XML

Added to portage

2026-04-04

zen-sources - 6.19.11
Ebuild name:

sys-kernel/zen-sources-6.19.11

Description

The Zen Kernel Live Sources

Added to portage

2026-04-04

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