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:

86582

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-07-06
dbus-python - 1.4.0-r1
Ebuild name:

dev-python/dbus-python-1.4.0-r1

Description

Python bindings for the D-Bus messagebus

Added to portage

2026-07-06

getmail - 6.20.00
Ebuild name:

net-mail/getmail-6.20.00

Description

A mail retriever with reliable Maildir and mbox delivery

Added to portage

2026-07-06

gst-plugins-sndio - 1.24.0
Ebuild name:

media-plugins/gst-plugins-sndio-1.24.0

Description

Sndio audio sink and source for GStreamer

Added to portage

2026-07-06

munt-mt32emu - 2.8.3
Ebuild name:

media-libs/munt-mt32emu-2.8.3

Description

Library for emulating the Roland MT-32, CM-32L, CM-64 and LAPC-I

Added to portage

2026-07-06

portage - 3.0.81.1
Ebuild name:

sys-apps/portage-3.0.81.1

Description

The package management and distribution system for Gentoo

Added to portage

2026-07-06

2026-07-05
Feature-Compat-Class - 0.80.0
Ebuild name:

dev-perl/Feature-Compat-Class-0.80.0

Description

Make class syntax available

Added to portage

2026-07-05

Object-Pad - 0.825.0
Ebuild name:

dev-perl/Object-Pad-0.825.0

Description

Simple syntax for lexical field-based objects

Added to portage

2026-07-05

XS-Parse-Sublike - 0.410.0
Ebuild name:

dev-perl/XS-Parse-Sublike-0.410.0

Description

XS functions to assist in parsing sub-like syntax

Added to portage

2026-07-05

apprise - 1.12.0
Ebuild name:

dev-python/apprise-1.12.0

Description

Push Notifications that work with just about every platform

Added to portage

2026-07-05

audit - 4.1.4-r4
Ebuild name:

sys-process/audit-4.1.4-r4

Description

Userspace utilities for storing and processing auditing records

Added to portage

2026-07-05

bitwarden-cli-bin - 2026.6.0
Ebuild name:

app-admin/bitwarden-cli-bin-2026.6.0

Description

CLI client for Bitwarden compatible servers

Added to portage

2026-07-05

bitwarden-desktop-bin - 2026.6.1
Ebuild name:

app-admin/bitwarden-desktop-bin-2026.6.1

Description

Bitwarden password manager desktop client

Added to portage

2026-07-05

c3p0 - 0.9.5.5-r3
Ebuild name:

dev-java/c3p0-0.9.5.5-r3

Description

JDBC drivers with JNDI-bindable DataSources

Added to portage

2026-07-05

cbor2 - 6.1.3
Ebuild name:

dev-python/cbor2-6.1.3

Description

CBOR (de)serializer with extensive tag support

Added to portage

2026-07-05

checkpolicy - 3.11
Ebuild name:

sys-apps/checkpolicy-3.11

Description

SELinux policy compiler

Added to portage

2026-07-05

commons-beanutils - 1.11.0-r1
Ebuild name:

dev-java/commons-beanutils-1.11.0-r1

Description

Provides easy-to-use wrappers around Reflection and Introspect

Added to portage

2026-07-05

commons-digester - 2.1-r4
Ebuild name:

dev-java/commons-digester-2.1-r4

Description

Reads XML configuration files to provide initialization of various

Added to portage

2026-07-05

commons-validator - 1.10.1
Ebuild name:

dev-java/commons-validator-1.10.1

Description

Commons component to validate user input, or data input

Added to portage

2026-07-05

darktable - 5.6.0
Ebuild name:

media-gfx/darktable-5.6.0

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-07-05

dist-kernel - 6.1.177
Ebuild name:

virtual/dist-kernel-6.1.177

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 6.12.95
Ebuild name:

virtual/dist-kernel-6.12.95

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 6.18.38
Ebuild name:

virtual/dist-kernel-6.18.38

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 6.6.144
Ebuild name:

virtual/dist-kernel-6.6.144

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 7.1.3
Ebuild name:

virtual/dist-kernel-7.1.3

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

element-desktop-bin - 1.12.22
Ebuild name:

net-im/element-desktop-bin-1.12.22

Description

A glossy Matrix collaboration client for desktop (binary package

Added to portage

2026-07-05

ensurepip-setuptools - 83.0.0
Ebuild name:

dev-python/ensurepip-setuptools-83.0.0

Description

Shared setuptools wheel for ensurepip Python module

Added to portage

2026-07-05

exim - 4.99.4-r1
Ebuild name:

mail-mta/exim-4.99.4-r1

Description

A highly configurable, drop-in replacement for sendmail

Added to portage

2026-07-05

gcc - 13.4.1_p20260701
Ebuild name:

sys-devel/gcc-13.4.1_p20260701

Description

The GNU Compiler Collection

Added to portage

2026-07-05

gcc - 15.3.1_p20260703
Ebuild name:

sys-devel/gcc-15.3.1_p20260703

Description

The GNU Compiler Collection

Added to portage

2026-07-05

gcc - 16.1.1_p20260704
Ebuild name:

sys-devel/gcc-16.1.1_p20260704

Description

The GNU Compiler Collection

Added to portage

2026-07-05

gentoo-kernel - 6.1.177
Ebuild name:

sys-kernel/gentoo-kernel-6.1.177

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 6.12.95
Ebuild name:

sys-kernel/gentoo-kernel-6.12.95

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 6.18.38
Ebuild name:

sys-kernel/gentoo-kernel-6.18.38

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 6.6.144
Ebuild name:

sys-kernel/gentoo-kernel-6.6.144

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 7.1.3
Ebuild name:

sys-kernel/gentoo-kernel-7.1.3

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.1.177
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.177

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.12.95
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.95

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.18.38
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.38

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.6.144
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.144

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 7.1.3
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.3

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.1.177
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.177

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.12.95
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.95

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.18.38
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.38

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.6.144
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.144

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 7.1.3
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.3

Description

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

Added to portage

2026-07-05

gentoo-sources - 6.1.177
Ebuild name:

sys-kernel/gentoo-sources-6.1.177

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 6.12.95
Ebuild name:

sys-kernel/gentoo-sources-6.12.95

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 6.18.38
Ebuild name:

sys-kernel/gentoo-sources-6.18.38

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 6.6.144
Ebuild name:

sys-kernel/gentoo-sources-6.6.144

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 7.1.3
Ebuild name:

sys-kernel/gentoo-sources-7.1.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoolkit - 0.7.6
Ebuild name:

app-portage/gentoolkit-0.7.6

Description

Collection of administration scripts for Gentoo

Added to portage

2026-07-05

gitea - 1.26.4
Ebuild name:

www-apps/gitea-1.26.4

Description

A painless self-hosted Git service

Added to portage

2026-07-05

leancrypto - 1.8.0
Ebuild name:

dev-libs/leancrypto-1.8.0

Description

Lean cryptographic library usable for bare-metal environments

Added to portage

2026-07-05

libselinux - 3.10-r2
Ebuild name:

sys-libs/libselinux-3.10-r2

Description

SELinux userland library

Added to portage

2026-07-05

libselinux - 3.11
Ebuild name:

sys-libs/libselinux-3.11

Description

SELinux userland library

Added to portage

2026-07-05

libsemanage - 3.11
Ebuild name:

sys-libs/libsemanage-3.11

Description

SELinux kernel and policy management library

Added to portage

2026-07-05

libsepol - 3.11
Ebuild name:

sys-libs/libsepol-3.11

Description

SELinux binary policy representation library

Added to portage

2026-07-05

libtmux - 0.61.0
Ebuild name:

dev-python/libtmux-0.61.0

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2026-07-05

llvm-mingw64 - 13.0.0-r5
Ebuild name:

dev-util/llvm-mingw64-13.0.0-r5

Description

Clang/LLVM based mingw64 toolchain

Added to portage

2026-07-05

mchange-commons - 0.2.20-r1
Ebuild name:

dev-java/mchange-commons-0.2.20-r1

Description

a library of arguably useful Java utilities

Added to portage

2026-07-05

mcstrans - 3.11
Ebuild name:

sys-apps/mcstrans-3.11

Description

SELinux context translation to human readable names

Added to portage

2026-07-05

md5deep - 4.4
Ebuild name:

app-crypt/md5deep-4.4

Description

Expanded md5sum program with recursive and comparison options

Added to portage

2026-07-05

md6sum - 1.0-r3
Ebuild name:

app-crypt/md6sum-1.0-r3

Description

A C implementation of MD6

Added to portage

2026-07-05

mhash - 0.9.9.9-r4
Ebuild name:

app-crypt/mhash-0.9.9.9-r4

Description

Library providing a uniform interface to a large number of hash algorith

Added to portage

2026-07-05

mutt - 2.4.1
Ebuild name:

mail-client/mutt-2.4.1

Description

A small but very powerful text-based mail client

Added to portage

2026-07-05

numpy - 2.5.1
Ebuild name:

dev-python/numpy-2.5.1

Description

Fast array and numerical python library

Added to portage

2026-07-05

ollama - 0.31.1
Ebuild name:

sci-ml/ollama-0.31.1

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models.

Added to portage

2026-07-05

policycoreutils - 3.11
Ebuild name:

sys-apps/policycoreutils-3.11

Description

SELinux core utilities

Added to portage

2026-07-05

restorecond - 3.11
Ebuild name:

sys-apps/restorecond-3.11

Description

Daemon to watch for creation and set default SELinux fcontexts

Added to portage

2026-07-05

secilc - 3.11
Ebuild name:

sys-apps/secilc-3.11

Description

SELinux Common Intermediate Language (CIL) Compiler

Added to portage

2026-07-05

selinux-python - 3.10-r1
Ebuild name:

sys-apps/selinux-python-3.10-r1

Description

SELinux core utilities

Added to portage

2026-07-05

selinux-python - 3.11-r1
Ebuild name:

sys-apps/selinux-python-3.11-r1

Description

SELinux core utilities

Added to portage

2026-07-05

semodule-utils - 3.11
Ebuild name:

sys-apps/semodule-utils-3.11

Description

SELinux policy module utilities

Added to portage

2026-07-05

setproctitle - 1.3.7-r1
Ebuild name:

dev-python/setproctitle-1.3.7-r1

Description

Allow customization of the process title

Added to portage

2026-07-05

setuptools - 83.0.0
Ebuild name:

dev-python/setuptools-83.0.0

Description

Collection of extensions to Distutils

Added to portage

2026-07-05

sleuthkit - 4.12.1-r3
Ebuild name:

app-forensics/sleuthkit-4.12.1-r3

Description

A collection of file system and media management forensic analysi

Added to portage

2026-07-05

sphinxcontrib-jsmath - 1.0.1-r5
Ebuild name:

dev-python/sphinxcontrib-jsmath-1.0.1-r5

Description

Sphinx extension which renders display math in HTML via Ja

Added to portage

2026-07-05

spirv-llvm-translator - 16.0.26
Ebuild name:

dev-util/spirv-llvm-translator-16.0.26

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 17.0.25
Ebuild name:

dev-util/spirv-llvm-translator-17.0.25

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 18.1.25
Ebuild name:

dev-util/spirv-llvm-translator-18.1.25

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 19.1.20
Ebuild name:

dev-util/spirv-llvm-translator-19.1.20

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 20.1.15
Ebuild name:

dev-util/spirv-llvm-translator-20.1.15

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 21.1.9
Ebuild name:

dev-util/spirv-llvm-translator-21.1.9

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 22.1.4
Ebuild name:

dev-util/spirv-llvm-translator-22.1.4

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spsdeclib - 5.2
Ebuild name:

dev-libs/spsdeclib-5.2

Description

Kryoflux SPS Decoder Library

Added to portage

2026-07-05

stormlib - 9.40
Ebuild name:

app-arch/stormlib-9.40

Description

Library to read and write MPQ archives (Diablo, StarCraft)

Added to portage

2026-07-05

tellico - 4.2.1
Ebuild name:

kde-misc/tellico-4.2.1

Description

Collection manager based on KDE Frameworks

Added to portage

2026-07-05

uvicorn - 0.50.0
Ebuild name:

dev-python/uvicorn-0.50.0

Description

Lightning-fast ASGI server implementation

Added to portage

2026-07-05

vanilla-kernel - 6.1.177
Ebuild name:

sys-kernel/vanilla-kernel-6.1.177

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 6.12.95
Ebuild name:

sys-kernel/vanilla-kernel-6.12.95

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 6.18.38
Ebuild name:

sys-kernel/vanilla-kernel-6.18.38

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 6.6.144
Ebuild name:

sys-kernel/vanilla-kernel-6.6.144

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 7.1.3
Ebuild name:

sys-kernel/vanilla-kernel-7.1.3

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-sources - 5.10.260
Ebuild name:

sys-kernel/vanilla-sources-5.10.260

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 5.15.211
Ebuild name:

sys-kernel/vanilla-sources-5.15.211

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.1.177
Ebuild name:

sys-kernel/vanilla-sources-6.1.177

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.12.94
Ebuild name:

sys-kernel/vanilla-sources-6.12.94

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.18.38
Ebuild name:

sys-kernel/vanilla-sources-6.18.38

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.6.144
Ebuild name:

sys-kernel/vanilla-sources-6.6.144

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 7.1.3
Ebuild name:

sys-kernel/vanilla-sources-7.1.3

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vcrpy - 8.3.0
Ebuild name:

dev-python/vcrpy-8.3.0

Description

Automatically mock your HTTP interactions to simplify and speed up testing

Added to portage

2026-07-05

winbox - 4.2_rc1
Ebuild name:

app-admin/winbox-4.2_rc1

Description

Management Software for MikroTik RouterOS

Added to portage

2026-07-05

yt-dlp - 2026.07.04
Ebuild name:

net-misc/yt-dlp-2026.07.04

Description

youtube-dl fork with additional features and fixes

Added to portage

2026-07-05

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