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:

87903

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-08-23
bitwarden-cli-bin - 2026.8.0
Ebuild name:

app-admin/bitwarden-cli-bin-2026.8.0

Description

CLI client for Bitwarden compatible servers

Added to portage

2026-08-23

candy - 6.1.11
Ebuild name:

net-vpn/candy-6.1.11

Description

A reliable, low-latency, and anti-censorship virtual private network

Added to portage

2026-08-23

cloudflared - 2026.8.2
Ebuild name:

net-vpn/cloudflared-2026.8.2

Description

A command-line client and tunneling daemon for Cloudflare Tunnel

Added to portage

2026-08-23

cmd2 - 4.2.1
Ebuild name:

dev-python/cmd2-4.2.1

Description

Extra features for standard library's cmd module

Added to portage

2026-08-23

cudd - 3.0.0-r3
Ebuild name:

sci-mathematics/cudd-3.0.0-r3

Description

Colorado University binary Decision Diagram library

Added to portage

2026-08-23

dsfmt - 2.2.5
Ebuild name:

sci-mathematics/dsfmt-2.2.5

Description

Double precision SIMD-oriented Fast Mersenne Twister library

Added to portage

2026-08-23

fig2dev - 3.2.9a-r1
Ebuild name:

media-gfx/fig2dev-3.2.9a-r1

Description

Set of tools for creating TeX documents with graphics

Added to portage

2026-08-23

filezilla - 3.71.0
Ebuild name:

net-ftp/filezilla-3.71.0

Description

FTP client with lots of useful features and an intuitive interface

Added to portage

2026-08-23

fzssh - 1.4.0
Ebuild name:

net-libs/fzssh-1.4.0

Description

A SSH/SFTP library based on libfilezilla

Added to portage

2026-08-23

ggml - 0.21.0-r1
Ebuild name:

sci-ml/ggml-0.21.0-r1

Description

Tensor library for machine learning

Added to portage

2026-08-23

gitea - 1.27.2
Ebuild name:

www-apps/gitea-1.27.2

Description

A painless self-hosted Git service

Added to portage

2026-08-23

h2o - 2.3.0_pre20260804
Ebuild name:

www-servers/h2o-2.3.0_pre20260804

Description

H2O - the optimized HTTP/1, HTTP/2 server

Added to portage

2026-08-23

labwc - 0.20.2
Ebuild name:

gui-wm/labwc-0.20.2

Description

Openbox alternative for wayland

Added to portage

2026-08-23

lego - 5.4.0
Ebuild name:

app-crypt/lego-5.4.0

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-08-23

libfilezilla - 0.57.0
Ebuild name:

dev-libs/libfilezilla-0.57.0

Description

C++ library offering some basic functionality for platform-independent

Added to portage

2026-08-23

lsp-docker - 1.0.0_p20240327
Ebuild name:

app-emacs/lsp-docker-1.0.0_p20240327

Description

Emacs library to leverage lsp-mode in the Docker environment

Added to portage

2026-08-23

lsp-java - 3.1_p20240328-r1
Ebuild name:

app-emacs/lsp-java-3.1_p20240328-r1

Description

Emacs Java IDE using Eclipse JDT Language Server

Added to portage

2026-08-23

moto - 5.2.3
Ebuild name:

dev-python/moto-5.2.3

Description

Mock library for boto

Added to portage

2026-08-23

pymdown-extensions - 11.0.2
Ebuild name:

dev-python/pymdown-extensions-11.0.2

Description

Extensions for Python Markdown

Added to portage

2026-08-23

ryzen_smu - 0.1.5-r1
Ebuild name:

app-admin/ryzen_smu-0.1.5-r1

Description

Kernel driver for AMD Ryzen's System Management Unit

Added to portage

2026-08-23

s2geometry - 0.13.1-r3
Ebuild name:

sci-geosciences/s2geometry-0.13.1-r3

Description

Computational geometry and spatial indexing on the sphere

Added to portage

2026-08-23

shadowsocks-libev - 3.3.6-r1
Ebuild name:

net-proxy/shadowsocks-libev-3.3.6-r1

Description

A lightweight secured SOCKS5 proxy for embedded devices and lo

Added to portage

2026-08-23

slack - 4.51.191
Ebuild name:

net-im/slack-4.51.191

Description

Team collaboration tool

Added to portage

2026-08-23

syrupy - 6.0.0
Ebuild name:

dev-python/syrupy-6.0.0

Description

The sweeter pytest snapshot plugin

Added to portage

2026-08-23

telegram-desktop-bin - 7.1.1
Ebuild name:

net-im/telegram-desktop-bin-7.1.1

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-08-23

turbovnc - 3.3.1
Ebuild name:

net-misc/turbovnc-3.3.1

Description

A fast replacement for TigerVNC

Added to portage

2026-08-23

vaultwarden - 1.37.2
Ebuild name:

app-admin/vaultwarden-1.37.2

Description

Unofficial Bitwarden compatible password manager

Added to portage

2026-08-23

vaultwarden-web - 2026.7.0
Ebuild name:

www-apps/vaultwarden-web-2026.7.0

Description

Prebuilt web vault frontend for Vaultwarden

Added to portage

2026-08-23

vopono - 0.10.21
Ebuild name:

net-vpn/vopono-0.10.21

Description

Launch applications via VPN tunnels using temporary network namespaces

Added to portage

2026-08-23

wine-staging - 11.16
Ebuild name:

app-emulation/wine-staging-11.16

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patc

Added to portage

2026-08-23

zellij - 0.45.0
Ebuild name:

app-misc/zellij-0.45.0

Description

A terminal workspace with batteries included

Added to portage

2026-08-23

zfs - 2.2.11
Ebuild name:

sys-fs/zfs-2.2.11

Description

Userland utilities for ZFS Linux kernel module

Added to portage

2026-08-23

zfs - 2.3.9
Ebuild name:

sys-fs/zfs-2.3.9

Description

Userland utilities for ZFS Linux kernel module

Added to portage

2026-08-23

zfs - 2.4.4
Ebuild name:

sys-fs/zfs-2.4.4

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2026-08-23

zfs-kmod - 2.2.11
Ebuild name:

sys-fs/zfs-kmod-2.2.11

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2026-08-23

zfs-kmod - 2.3.9
Ebuild name:

sys-fs/zfs-kmod-2.3.9

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2026-08-23

2026-08-22
asteval - 1.0.10
Ebuild name:

dev-python/asteval-1.0.10

Description

Evaluator of Python expression using ast module

Added to portage

2026-08-22

boto3 - 1.43.78
Ebuild name:

dev-python/boto3-1.43.78

Description

The AWS SDK for Python

Added to portage

2026-08-22

botocore - 1.43.78
Ebuild name:

dev-python/botocore-1.43.78

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-22

brotlicffi - 1.2.0.2
Ebuild name:

dev-python/brotlicffi-1.2.0.2

Description

Python binding to the Brotli library

Added to portage

2026-08-22

cachelib - 0.16.1
Ebuild name:

dev-python/cachelib-0.16.1

Description

Collection of cache libraries in the same API interface. Extracted from

Added to portage

2026-08-22

cfg-update - 1.11.0
Ebuild name:

app-portage/cfg-update-1.11.0

Description

Easy to use GUI & CLI alternative for etc-update

Added to portage

2026-08-22

cgreen - 1.7.0
Ebuild name:

dev-libs/cgreen-1.7.0

Description

Unit test and mocking framework for C and C++

Added to portage

2026-08-22

charm - 6.10.2
Ebuild name:

sys-cluster/charm-6.10.2

Description

Message-passing parallel language and runtime system

Added to portage

2026-08-22

cjose - 0.6.2.8
Ebuild name:

dev-libs/cjose-0.6.2.8

Description

C library implementing the Javascript Object Signing and Encryption (JOSE)

Added to portage

2026-08-22

confuse - 3.4
Ebuild name:

dev-libs/confuse-3.4

Description

a configuration file parser library

Added to portage

2026-08-22

cramjam - 2.12.0
Ebuild name:

dev-python/cramjam-2.12.0

Description

Thin Python bindings to de/compression algorithms in Rust

Added to portage

2026-08-22

cython - 3.3.0
Ebuild name:

dev-python/cython-3.3.0

Description

A Python to C compiler

Added to portage

2026-08-22

dbutils - 3.2.0
Ebuild name:

dev-python/dbutils-3.2.0

Description

Database connections for multi-threaded environments

Added to portage

2026-08-22

dealii - 9.8.0
Ebuild name:

sci-libs/dealii-9.8.0

Description

Solving partial differential equations with the finite element method

Added to portage

2026-08-22

dependency-groups - 1.3.2
Ebuild name:

dev-python/dependency-groups-1.3.2

Description

A tool for resolving PEP 735 Dependency Group data

Added to portage

2026-08-22

faker - 40.37.0
Ebuild name:

dev-python/faker-40.37.0

Description

A Python package that generates fake data for you

Added to portage

2026-08-22

fwupd - 2.1.7
Ebuild name:

sys-apps/fwupd-2.1.7

Description

Aims to make updating firmware on Linux automatic, safe and reliable

Added to portage

2026-08-22

libcap-ng - 0.9.5-r1
Ebuild name:

sys-libs/libcap-ng-0.9.5-r1

Description

POSIX 1003.1e capabilities

Added to portage

2026-08-22

libplatform - 2.2.0
Ebuild name:

dev-libs/libplatform-2.2.0

Description

Platform support library used by libCEC and binary add-ons for Kodi

Added to portage

2026-08-22

libsecret - 0.21.7
Ebuild name:

app-crypt/libsecret-0.21.7

Description

GObject library for accessing the freedesktop.org Secret Service API

Added to portage

2026-08-22

libxmlb - 0.3.29
Ebuild name:

dev-libs/libxmlb-0.3.29

Description

Library to help create and query binary XML blobs

Added to portage

2026-08-22

mac - 13.26
Ebuild name:

media-sound/mac-13.26

Description

Monkey's Audio Codecs

Added to portage

2026-08-22

mesa - 26.2.1
Ebuild name:

media-libs/mesa-26.2.1

Description

OpenGL-like graphic library for Linux

Added to portage

2026-08-22

mesa_clc - 26.2.1
Ebuild name:

dev-util/mesa_clc-26.2.1

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-08-22

nanobind - 3.0.0
Ebuild name:

dev-python/nanobind-3.0.0

Description

Tiny and efficient C++/Python bindings

Added to portage

2026-08-22

ncspot - 1.4.0
Ebuild name:

media-sound/ncspot-1.4.0

Description

ncurses Spotify client written in Rust using librespot

Added to portage

2026-08-22

nss - 3.127
Ebuild name:

dev-libs/nss-3.127

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-08-22

openpgp-keys-zsh - 2026.07.12
Ebuild name:

sec-keys/openpgp-keys-zsh-2026.07.12

Description

PGP keys used to sign ZSH releases

Added to portage

2026-08-22

portage - 3.0.82
Ebuild name:

sys-apps/portage-3.0.82

Description

The package management and distribution system for Gentoo

Added to portage

2026-08-22

portalocker - 4.2.0
Ebuild name:

dev-python/portalocker-4.2.0

Description

A library for Python file locking

Added to portage

2026-08-22

powercap-utils - 0.6.0
Ebuild name:

sys-power/powercap-utils-0.6.0

Description

C bindings to the Linux Power Capping Framework in sysfs

Added to portage

2026-08-22

rss2email - 3.14-r4
Ebuild name:

net-mail/rss2email-3.14-r4

Description

A python script that converts RSS/Atom newsfeeds to email

Added to portage

2026-08-22

sabctools - 9.7.0
Ebuild name:

dev-python/sabctools-9.7.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-08-22

scipy - 1.18.1
Ebuild name:

dev-python/scipy-1.18.1

Description

Scientific algorithms library for Python

Added to portage

2026-08-22

sphinx-argparse - 0.6.1
Ebuild name:

dev-python/sphinx-argparse-0.6.1

Description

Sphinx extension that automatically documents argparse commands an

Added to portage

2026-08-22

spidermonkey - 140.14.0
Ebuild name:

dev-lang/spidermonkey-140.14.0

Description

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

Added to portage

2026-08-22

spidermonkey - 153.1.0
Ebuild name:

dev-lang/spidermonkey-153.1.0

Description

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

Added to portage

2026-08-22

spirv-llvm-translator - 24.0.0_pre20260820
Ebuild name:

dev-util/spirv-llvm-translator-24.0.0_pre20260820

Description

Bi-directional translator between SPIR-V and LLVM

Added to portage

2026-08-22

symbols-nerd-font - 3.5.1
Ebuild name:

media-fonts/symbols-nerd-font-3.5.1

Description

Symbols-only font containing the Nerd Font icons

Added to portage

2026-08-22

tree-sitter-cmake - 0.7.4
Ebuild name:

dev-libs/tree-sitter-cmake-0.7.4

Description

CMake grammar for tree-sitter

Added to portage

2026-08-22

tree-sitter-ocaml - 0.25.0
Ebuild name:

dev-libs/tree-sitter-ocaml-0.25.0

Description

OCaml grammar for Tree-sitter

Added to portage

2026-08-22

tree-sitter-scala - 0.26.2
Ebuild name:

dev-libs/tree-sitter-scala-0.26.2

Description

Scala grammar for Tree-sitter

Added to portage

2026-08-22

wine-proton - 11.0.2
Ebuild name:

app-emulation/wine-proton-11.0.2

Description

Valve Software's fork of Wine

Added to portage

2026-08-22

wine-vanilla - 11.16
Ebuild name:

app-emulation/wine-vanilla-11.16

Description

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

Added to portage

2026-08-22

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