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:

87912

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-24
dist-kernel - 6.1.184
Ebuild name:

virtual/dist-kernel-6.1.184

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.12.105
Ebuild name:

virtual/dist-kernel-6.12.105

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.18.46
Ebuild name:

virtual/dist-kernel-6.18.46

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.6.153
Ebuild name:

virtual/dist-kernel-6.6.153

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 7.1.10
Ebuild name:

virtual/dist-kernel-7.1.10

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

drumstick - 2.11.1
Ebuild name:

media-sound/drumstick-2.11.1

Description

Qt/C++ wrapper for ALSA sequencer

Added to portage

2026-08-24

evdev - 2.0.0
Ebuild name:

dev-python/evdev-2.0.0

Description

Python library for evdev bindings

Added to portage

2026-08-24

filelock - 3.32.4
Ebuild name:

dev-python/filelock-3.32.4

Description

A platform independent file lock for Python

Added to portage

2026-08-24

gentoo-kernel - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-6.1.184

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-6.12.105

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-6.18.46

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-6.6.153

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-7.1.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.184

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.105

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.46

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.153

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.184

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.105

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.46

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.153

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-24

gentoo-kernel-modprep - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.10

Description

Minimal subset of gentoo-kernel-bin for building modules, f

Added to portage

2026-08-24

nh3 - 0.3.7
Ebuild name:

dev-python/nh3-0.3.7

Description

Ammonia HTML sanitizer Python binding

Added to portage

2026-08-24

oct2py - 6.1.1
Ebuild name:

dev-python/oct2py-6.1.1

Description

Python to GNU Octave bridge

Added to portage

2026-08-24

pypdf - 6.16.2
Ebuild name:

dev-python/pypdf-6.16.2

Description

Python library to work with PDF files

Added to portage

2026-08-24

sphinx-autoapi - 3.8.1
Ebuild name:

dev-python/sphinx-autoapi-3.8.1

Description

A new approach to API documentation in Sphinx

Added to portage

2026-08-24

tellico - 4.2.2
Ebuild name:

kde-misc/tellico-4.2.2

Description

Collection manager based on KDE Frameworks

Added to portage

2026-08-24

vanilla-kernel - 6.1.184
Ebuild name:

sys-kernel/vanilla-kernel-6.1.184

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.12.105
Ebuild name:

sys-kernel/vanilla-kernel-6.12.105

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.18.46
Ebuild name:

sys-kernel/vanilla-kernel-6.18.46

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.6.153
Ebuild name:

sys-kernel/vanilla-kernel-6.6.153

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 7.1.10
Ebuild name:

sys-kernel/vanilla-kernel-7.1.10

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

xwaylandvideobridge - 0.5.2
Ebuild name:

gui-apps/xwaylandvideobridge-0.5.2

Description

Screenshare Wayland windows to XWayland apps

Added to portage

2026-08-24

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

gentoo-sources - 6.1.184
Ebuild name:

sys-kernel/gentoo-sources-6.1.184

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 6.12.105
Ebuild name:

sys-kernel/gentoo-sources-6.12.105

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 6.18.46
Ebuild name:

sys-kernel/gentoo-sources-6.18.46

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 6.6.153
Ebuild name:

sys-kernel/gentoo-sources-6.6.153

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-23

gentoo-sources - 7.1.10
Ebuild name:

sys-kernel/gentoo-sources-7.1.10

Description

Full sources including the Gentoo patchset for the . kernel tree

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

smcipmitool - 2.31.0.260727
Ebuild name:

sys-apps/smcipmitool-2.31.0.260727

Description

An out-of-band utility for interfacing with SuperBlade and IPMI

Added to portage

2026-08-23

sqlite - 3.53.4
Ebuild name:

dev-db/sqlite-3.53.4

Description

SQL database engine

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

vanilla-sources - 6.1.184
Ebuild name:

sys-kernel/vanilla-sources-6.1.184

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 6.12.105
Ebuild name:

sys-kernel/vanilla-sources-6.12.105

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 6.18.46
Ebuild name:

sys-kernel/vanilla-sources-6.18.46

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 6.6.153
Ebuild name:

sys-kernel/vanilla-sources-6.6.153

Description

Full sources for the Linux kernel

Added to portage

2026-08-23

vanilla-sources - 7.1.10
Ebuild name:

sys-kernel/vanilla-sources-7.1.10

Description

Full sources for the Linux kernel

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

wayfire-plugins-extra - 0.11.2
Ebuild name:

gui-libs/wayfire-plugins-extra-0.11.2

Description

extra plugins for wayfire

Added to portage

2026-08-23

wcm - 0.11.0
Ebuild name:

gui-apps/wcm-0.11.0

Description

Wayfire Config Manager

Added to portage

2026-08-23

wf-shell - 0.11.0
Ebuild name:

gui-apps/wf-shell-0.11.0

Description

Compiz like 3D wayland compositor

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

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