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:

81556

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


rate this article:
current rating: average rating: 1.4 (104 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2025-10-16
chrome-binary-plugins - 141.0.7390.107
Ebuild name:

www-plugins/chrome-binary-plugins-141.0.7390.107

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2025-10-16

chrome-binary-plugins - 142.0.7444.34_beta
Ebuild name:

www-plugins/chrome-binary-plugins-142.0.7444.34_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2025-10-16

chromedriver-bin - 141.0.7390.107
Ebuild name:

www-apps/chromedriver-bin-141.0.7390.107

Description

WebDriver for Chrome

Added to portage

2025-10-16

chromium - 141.0.7390.107
Ebuild name:

www-client/chromium-141.0.7390.107

Description

Open-source version of Google Chrome web browser

Added to portage

2025-10-16

coverage - 7.11.0
Ebuild name:

dev-python/coverage-7.11.0

Description

Code coverage measurement for Python

Added to portage

2025-10-16

gentoo-sources - 6.1.156
Ebuild name:

sys-kernel/gentoo-sources-6.1.156

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-10-16

gentoo-sources - 6.12.53
Ebuild name:

sys-kernel/gentoo-sources-6.12.53

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-10-16

gentoo-sources - 6.17.3
Ebuild name:

sys-kernel/gentoo-sources-6.17.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-10-16

gentoo-sources - 6.6.112
Ebuild name:

sys-kernel/gentoo-sources-6.6.112

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-10-16

google-chrome - 141.0.7390.107
Ebuild name:

www-client/google-chrome-141.0.7390.107

Description

The web browser from Google

Added to portage

2025-10-16

google-chrome-beta - 142.0.7444.34
Ebuild name:

www-client/google-chrome-beta-142.0.7444.34

Description

The web browser from Google

Added to portage

2025-10-16

humanize - 4.14.0
Ebuild name:

dev-python/humanize-4.14.0

Description

Common humanization utilities

Added to portage

2025-10-16

inline-snapshot - 0.30.0
Ebuild name:

dev-python/inline-snapshot-0.30.0

Description

Create and update inline snapshots in your Python tests

Added to portage

2025-10-16

kio - 6.19.0-r1
Ebuild name:

kde-frameworks/kio-6.19.0-r1

Description

Framework providing transparent file and data management

Added to portage

2025-10-16

kio-fuse - 5.1.1
Ebuild name:

kde-misc/kio-fuse-5.1.1

Description

FUSE interface for KIO

Added to portage

2025-10-16

microsoft-edge-beta - 142.0.3595.19
Ebuild name:

www-client/microsoft-edge-beta-142.0.3595.19

Description

The web browser from Microsoft

Added to portage

2025-10-16

microsoft-edge-dev - 143.0.3614.1
Ebuild name:

www-client/microsoft-edge-dev-143.0.3614.1

Description

The web browser from Microsoft

Added to portage

2025-10-16

mkdocs-material - 9.6.22
Ebuild name:

dev-python/mkdocs-material-9.6.22

Description

A Material Design theme for MkDocs

Added to portage

2025-10-16

numpy - 2.3.4
Ebuild name:

dev-python/numpy-2.3.4

Description

Fast array and numerical python library

Added to portage

2025-10-16

pyghmi - 1.6.6
Ebuild name:

dev-python/pyghmi-1.6.6

Description

A pure python implementation of IPMI protocol

Added to portage

2025-10-16

pylint - 4.0.1
Ebuild name:

dev-python/pylint-4.0.1

Description

Python code static checker

Added to portage

2025-10-16

pyproject-fmt - 2.11.0
Ebuild name:

dev-python/pyproject-fmt-2.11.0

Description

Format your pyproject.toml file

Added to portage

2025-10-16

unearth - 0.18.1
Ebuild name:

dev-python/unearth-0.18.1

Description

A utility to fetch and download python packages

Added to portage

2025-10-16

uv - 0.9.3
Ebuild name:

dev-python/uv-0.9.3

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-10-16

uv-build - 0.9.3
Ebuild name:

dev-python/uv-build-0.9.3

Description

PEP517 uv build backend

Added to portage

2025-10-16

vanilla-sources - 6.1.156
Ebuild name:

sys-kernel/vanilla-sources-6.1.156

Description

Full sources for the Linux kernel

Added to portage

2025-10-16

vanilla-sources - 6.12.53
Ebuild name:

sys-kernel/vanilla-sources-6.12.53

Description

Full sources for the Linux kernel

Added to portage

2025-10-16

vanilla-sources - 6.17.3
Ebuild name:

sys-kernel/vanilla-sources-6.17.3

Description

Full sources for the Linux kernel

Added to portage

2025-10-16

vanilla-sources - 6.6.112
Ebuild name:

sys-kernel/vanilla-sources-6.6.112

Description

Full sources for the Linux kernel

Added to portage

2025-10-16

zfs - 2.4.0_rc2-r1
Ebuild name:

sys-fs/zfs-2.4.0_rc2-r1

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2025-10-16

zfs-kmod - 2.4.0_rc2-r1
Ebuild name:

sys-fs/zfs-kmod-2.4.0_rc2-r1

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2025-10-16

zsh - 5.9.0.3-r2
Ebuild name:

app-shells/zsh-5.9.0.3-r2

Description

UNIX Shell similar to the Korn shell

Added to portage

2025-10-16

2025-10-15
FBGEMM - 1.3.0.2025.09.05
Ebuild name:

sci-ml/FBGEMM-1.3.0.2025.09.05

Description

Facebook GEneral Matrix Multiplication

Added to portage

2025-10-15

anki - 25.09.2
Ebuild name:

app-misc/anki-25.09.2

Description

Smart spaced repetition flashcard program

Added to portage

2025-10-15

anysqlite - 0.0.5
Ebuild name:

dev-python/anysqlite-0.0.5

Description

sqlite3 for asyncio and trio

Added to portage

2025-10-15

awscli - 1.42.52
Ebuild name:

app-admin/awscli-1.42.52

Description

Universal Command Line Environment for AWS

Added to portage

2025-10-15

bash - 5.4_alpha_pre20251014
Ebuild name:

app-shells/bash-5.4_alpha_pre20251014

Description

The standard GNU Bourne again shell

Added to portage

2025-10-15

black - 25.9.0
Ebuild name:

dev-python/black-25.9.0

Description

The uncompromising Python code formatter

Added to portage

2025-10-15

blake3 - 1.0.8
Ebuild name:

dev-python/blake3-1.0.8

Description

Python bindings for the BLAKE3 cryptographic hash function

Added to portage

2025-10-15

bloaty - 1.1-r2
Ebuild name:

dev-util/bloaty-1.1-r2

Description

A size profiler for binaries

Added to portage

2025-10-15

boto3 - 1.40.52
Ebuild name:

dev-python/boto3-1.40.52

Description

The AWS SDK for Python

Added to portage

2025-10-15

botocore - 1.40.52
Ebuild name:

dev-python/botocore-1.40.52

Description

Low-level, data-driven core of boto 3

Added to portage

2025-10-15

capstone - 6.0.0_alpha4
Ebuild name:

dev-libs/capstone-6.0.0_alpha4

Description

disassembly/disassembler framework + bindings

Added to portage

2025-10-15

ccls - 0.20250815
Ebuild name:

dev-util/ccls-0.20250815

Description

C/C++/ObjC language server

Added to portage

2025-10-15

cfn-lint - 1.40.2
Ebuild name:

dev-python/cfn-lint-1.40.2

Description

CloudFormation Linter

Added to portage

2025-10-15

discord - 0.0.112
Ebuild name:

net-im/discord-0.0.112

Description

All-in-one voice and text chat for gamers

Added to portage

2025-10-15

dist-kernel - 6.1.156
Ebuild name:

virtual/dist-kernel-6.1.156

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-10-15

dist-kernel - 6.12.53
Ebuild name:

virtual/dist-kernel-6.12.53

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-10-15

dist-kernel - 6.17.3
Ebuild name:

virtual/dist-kernel-6.17.3

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-10-15

dist-kernel - 6.6.112
Ebuild name:

virtual/dist-kernel-6.6.112

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-10-15

dulwich - 0.24.4
Ebuild name:

dev-python/dulwich-0.24.4

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2025-10-15

flexiblas - 3.4.84
Ebuild name:

sci-libs/flexiblas-3.4.84

Description

A BLAS and LAPACK wrapper library with runtime exchangable backends

Added to portage

2025-10-15

gentoo-kernel - 6.1.156
Ebuild name:

sys-kernel/gentoo-kernel-6.1.156

Description

Linux kernel built with Gentoo patches

Added to portage

2025-10-15

gentoo-kernel - 6.12.53
Ebuild name:

sys-kernel/gentoo-kernel-6.12.53

Description

Linux kernel built with Gentoo patches

Added to portage

2025-10-15

gentoo-kernel - 6.17.3
Ebuild name:

sys-kernel/gentoo-kernel-6.17.3

Description

Linux kernel built with Gentoo patches

Added to portage

2025-10-15

gentoo-kernel - 6.6.112
Ebuild name:

sys-kernel/gentoo-kernel-6.6.112

Description

Linux kernel built with Gentoo patches

Added to portage

2025-10-15

gentoo-kernel-bin - 6.1.156
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.156

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-10-15

gentoo-kernel-bin - 6.12.53
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.53

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-10-15

gentoo-kernel-bin - 6.17.3
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.3

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-10-15

gentoo-kernel-bin - 6.6.112
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.112

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-10-15

gnome-shell-extension-dash-to-panel - 72
Ebuild name:

gnome-extra/gnome-shell-extension-dash-to-panel-72

Description

An icon taskbar for the Gnome Shell

Added to portage

2025-10-15

godot - 4.5.1
Ebuild name:

dev-games/godot-4.5.1

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2025-10-15

hercules-sdl - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-4.9.0

Description

The SoftDevLabs (SDL) version of the Hercules 4.x Hyperion Emulato

Added to portage

2025-10-15

hercules-sdl-crypto - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-crypto-4.9.0

Description

Simple AES/DES encryption and SHA1/SHA2 hashing library

Added to portage

2025-10-15

hercules-sdl-decnumber - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-decnumber-4.9.0

Description

ANSI C General Decimal Arithmetic Library

Added to portage

2025-10-15

hercules-sdl-softfloat - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-softfloat-4.9.0

Description

Berkeley IEEE Binary Floating-Point Library

Added to portage

2025-10-15

hercules-sdl-telnet - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-telnet-4.9.0

Description

Simple RFC-complient TELNET implementation

Added to portage

2025-10-15

hiredis - 3.3.0
Ebuild name:

dev-python/hiredis-3.3.0

Description

Python extension that wraps hiredis

Added to portage

2025-10-15

hishel - 0.1.4
Ebuild name:

dev-python/hishel-0.1.4

Description

An elegant HTTP Cache implementation for HTTPX and HTTP Core

Added to portage

2025-10-15

hypothesis - 6.141.0
Ebuild name:

dev-python/hypothesis-6.141.0

Description

A library for property based testing

Added to portage

2025-10-15

igt-gpu-tools - 2.2
Ebuild name:

x11-apps/igt-gpu-tools-2.2

Description

Intel GPU userland tools

Added to portage

2025-10-15

ipykernel - 7.0.1
Ebuild name:

dev-python/ipykernel-7.0.1

Description

IPython Kernel for Jupyter

Added to portage

2025-10-15

josepy - 2.2.0
Ebuild name:

dev-python/josepy-2.2.0

Description

JOSE protocol implementation in Python

Added to portage

2025-10-15

lean - 4.23.0
Ebuild name:

sci-mathematics/lean-4.23.0

Description

The Lean Theorem Prover

Added to portage

2025-10-15

less - 685
Ebuild name:

sys-apps/less-685

Description

Excellent text file viewer

Added to portage

2025-10-15

libdrm - 2.4.127
Ebuild name:

x11-libs/libdrm-2.4.127

Description

X.Org libdrm library

Added to portage

2025-10-15

llvm-mingw64 - 13.0.0-r2
Ebuild name:

dev-util/llvm-mingw64-13.0.0-r2

Description

Clang/LLVM based mingw64 toolchain

Added to portage

2025-10-15

lmdb - 1.7.5
Ebuild name:

dev-python/lmdb-1.7.5

Description

Python bindings for the Lightning Database

Added to portage

2025-10-15

merge3 - 0.0.16
Ebuild name:

dev-python/merge3-0.0.16

Description

Python implementation of 3-way merge

Added to portage

2025-10-15

ncspot - 1.3.1-r1
Ebuild name:

media-sound/ncspot-1.3.1-r1

Description

ncurses Spotify client written in Rust using librespot

Added to portage

2025-10-15

nox - 2025.10.14
Ebuild name:

dev-python/nox-2025.10.14

Description

Flexible test automation for Python

Added to portage

2025-10-15

openpgp-keys-glibc - 20251014
Ebuild name:

sec-keys/openpgp-keys-glibc-20251014

Description

OpenPGP keys used to sign glibc releases

Added to portage

2025-10-15

patool - 4.0.2
Ebuild name:

app-arch/patool-4.0.2

Description

Portable archive file manager

Added to portage

2025-10-15

pbs-installer - 2025.10.10-r1
Ebuild name:

dev-python/pbs-installer-2025.10.10-r1

Description

Installer for Python Build Standalone

Added to portage

2025-10-15

pdns - 4.9.11
Ebuild name:

net-dns/pdns-4.9.11

Description

The PowerDNS Daemon

Added to portage

2025-10-15

postgresql - 17.6-r2
Ebuild name:

dev-db/postgresql-17.6-r2

Description

PostgreSQL RDBMS

Added to portage

2025-10-15

pwndbg - 20250530-r1
Ebuild name:

dev-debug/pwndbg-20250530-r1

Description

A GDB plug-in that makes debugging with GDB suck less

Added to portage

2025-10-15

pwndbg - 20251010
Ebuild name:

dev-debug/pwndbg-20251010

Description

A GDB plug-in that makes debugging with GDB suck less

Added to portage

2025-10-15

pydantic - 2.12.2
Ebuild name:

dev-python/pydantic-2.12.2

Description

Data parsing and validation using Python type hints

Added to portage

2025-10-15

python - 0.3.13.9
Ebuild name:

dev-lang/python-0.3.13.9

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2025-10-15

python - 0.3.15.0_alpha1
Ebuild name:

dev-lang/python-0.3.15.0_alpha1

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2025-10-15

python - 3.13.9
Ebuild name:

dev-lang/python-3.13.9

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-10-15

python - 3.15.0_alpha1
Ebuild name:

dev-lang/python-3.15.0_alpha1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-10-15

python-tests - 0.3.13.9
Ebuild name:

dev-python/python-tests-0.3.13.9

Description

Test modules from dev-lang/python

Added to portage

2025-10-15

python-tests - 3.13.9
Ebuild name:

dev-python/python-tests-3.13.9

Description

Test modules from dev-lang/python

Added to portage

2025-10-15

pytokens - 0.2.0
Ebuild name:

dev-python/pytokens-0.2.0

Description

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

Added to portage

2025-10-15

qmmp - 2.3.0
Ebuild name:

media-sound/qmmp-2.3.0

Description

Qt-based audio player with winamp/xmms skins support

Added to portage

2025-10-15

qmmp-plugin-pack - 2.3.0
Ebuild name:

media-plugins/qmmp-plugin-pack-2.3.0

Description

Set of extra plugins for Qmmp

Added to portage

2025-10-15

rack-attack - 6.8.0
Ebuild name:

dev-ruby/rack-attack-6.8.0

Description

A DSL for blocking & throttling abusive clients

Added to portage

2025-10-15

reformatter - 0.6
Ebuild name:

app-emacs/reformatter-0.6

Description

Define commands which run reformatters on the Emacs buffers

Added to portage

2025-10-15

reformatter - 0.7
Ebuild name:

app-emacs/reformatter-0.7

Description

Define commands which run reformatters on the Emacs buffers

Added to portage

2025-10-15

regress - 1.5.1
Ebuild name:

app-emacs/regress-1.5.1

Description

Regression test harness for Emacs Lisp code

Added to portage

2025-10-15

rubyzip - 3.2.0
Ebuild name:

dev-ruby/rubyzip-3.2.0

Description

A ruby library for reading and writing zip files

Added to portage

2025-10-15

spyder-unittest - 0.7.1
Ebuild name:

dev-python/spyder-unittest-0.7.1

Description

Plugin for Spyder to run tests and view the results

Added to portage

2025-10-15

synapse - 1.140.0
Ebuild name:

net-im/synapse-1.140.0

Description

Reference implementation of Matrix homeserver

Added to portage

2025-10-15

telegram-desktop-bin - 6.2.3
Ebuild name:

net-im/telegram-desktop-bin-6.2.3

Description

Official desktop client for Telegram (binary package)

Added to portage

2025-10-15

thunderbird - 144.0
Ebuild name:

mail-client/thunderbird-144.0

Description

Thunderbird Mail Client

Added to portage

2025-10-15

thunderbird-bin - 144.0
Ebuild name:

mail-client/thunderbird-bin-144.0

Description

Thunderbird Mail Client

Added to portage

2025-10-15

translate-toolkit - 3.16.3
Ebuild name:

dev-python/translate-toolkit-3.16.3

Description

Toolkit to convert between many translation formats

Added to portage

2025-10-15

vanilla-kernel - 6.1.156
Ebuild name:

sys-kernel/vanilla-kernel-6.1.156

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-10-15

vanilla-kernel - 6.12.53
Ebuild name:

sys-kernel/vanilla-kernel-6.12.53

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-10-15

vanilla-kernel - 6.17.3
Ebuild name:

sys-kernel/vanilla-kernel-6.17.3

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-10-15

vanilla-kernel - 6.6.112
Ebuild name:

sys-kernel/vanilla-kernel-6.6.112

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-10-15

varnish - 7.7.3
Ebuild name:

www-servers/varnish-7.7.3

Description

Varnish is a state-of-the-art, high-performance HTTP accelerator

Added to portage

2025-10-15

watchfiles - 1.1.1
Ebuild name:

dev-python/watchfiles-1.1.1

Description

Simple, modern file watching and code reload in Python

Added to portage

2025-10-15

xmlschema - 4.2.0
Ebuild name:

dev-python/xmlschema-4.2.0

Description

An XML Schema validator and decoder

Added to portage

2025-10-15

yt-dlp - 2025.10.14
Ebuild name:

net-misc/yt-dlp-2025.10.14

Description

youtube-dl fork with additional features and fixes

Added to portage

2025-10-15

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 85.6 ms