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:

82036

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-11-11
aiohttp-socks - 0.10.2
Ebuild name:

dev-python/aiohttp-socks-0.10.2

Description

SOCKS proxy connector for aiohttp

Added to portage

2025-11-11

ansible-compat - 25.11.0
Ebuild name:

dev-python/ansible-compat-25.11.0

Description

Contains functions that facilitate working with various versions

Added to portage

2025-11-11

avidemux - 2.8.1_p20251019
Ebuild name:

media-video/avidemux-2.8.1_p20251019

Description

Video editor designed for simple cutting, filtering and encodi

Added to portage

2025-11-11

avidemux-core - 2.8.1_p20251019
Ebuild name:

media-libs/avidemux-core-2.8.1_p20251019

Description

Core libraries for simple video cutting, filtering and enc

Added to portage

2025-11-11

avidemux-plugins - 2.8.1_p20251019
Ebuild name:

media-libs/avidemux-plugins-2.8.1_p20251019

Description

Plugins for Avidemux video editor

Added to portage

2025-11-11

aws-crt-cpp - 0.35.2
Ebuild name:

dev-cpp/aws-crt-cpp-0.35.2

Description

C++ wrapper around the aws-c-* libraries

Added to portage

2025-11-11

aws-sdk-cpp - 1.11.686
Ebuild name:

dev-cpp/aws-sdk-cpp-1.11.686

Description

AWS SDK for C++

Added to portage

2025-11-11

awscli - 1.42.70
Ebuild name:

app-admin/awscli-1.42.70

Description

Universal Command Line Environment for AWS

Added to portage

2025-11-11

boto3 - 1.40.70
Ebuild name:

dev-python/boto3-1.40.70

Description

The AWS SDK for Python

Added to portage

2025-11-11

botocore - 1.40.70
Ebuild name:

dev-python/botocore-1.40.70

Description

Low-level, data-driven core of boto 3

Added to portage

2025-11-11

courier-authlib - 0.72.6
Ebuild name:

net-libs/courier-authlib-0.72.6

Description

Courier authentication library

Added to portage

2025-11-11

discord - 0.0.114
Ebuild name:

net-im/discord-0.0.114

Description

All-in-one voice and text chat for gamers

Added to portage

2025-11-11

dulwich - 0.24.10
Ebuild name:

dev-python/dulwich-0.24.10

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2025-11-11

endless-sky - 0.10.16
Ebuild name:

games-strategy/endless-sky-0.10.16

Description

Space exploration, trading & combat in the tradition of Term

Added to portage

2025-11-11

firefox-bin - 145.0
Ebuild name:

www-client/firefox-bin-145.0

Description

Firefox Web Browser

Added to portage

2025-11-11

frr - 10.5.0
Ebuild name:

net-misc/frr-10.5.0

Description

The FRRouting Protocol Suite

Added to portage

2025-11-11

glslang - 1.4.328.0-r1
Ebuild name:

dev-util/glslang-1.4.328.0-r1

Description

Khronos reference front-end for GLSL and ESSL, and sample SPIR-V gene

Added to portage

2025-11-11

griffe - 1.15.0
Ebuild name:

dev-python/griffe-1.15.0

Description

Signature generator for Python programs

Added to portage

2025-11-11

griffe-inherited-docstrings - 1.1.2
Ebuild name:

dev-python/griffe-inherited-docstrings-1.1.2

Description

Griffe extension for inheriting docstrings

Added to portage

2025-11-11

guile-dbd-postgresql - 2.1.9-r1
Ebuild name:

dev-scheme/guile-dbd-postgresql-2.1.9-r1

Description

Guile DBI driver for PostgreSQL

Added to portage

2025-11-11

guile-dbd-sqlite3 - 2.1.9-r1
Ebuild name:

dev-scheme/guile-dbd-sqlite3-2.1.9-r1

Description

Guile DBI driver for SQLite

Added to portage

2025-11-11

guile-git - 0.8.0-r1
Ebuild name:

dev-scheme/guile-git-0.8.0-r1

Description

Guile bindings of git

Added to portage

2025-11-11

guile-git - 0.9.0-r1
Ebuild name:

dev-scheme/guile-git-0.9.0-r1

Description

Guile bindings of git

Added to portage

2025-11-11

guile-hall - 0.4.1-r101
Ebuild name:

dev-scheme/guile-hall-0.4.1-r101

Description

Guile tooling to create and publish projects

Added to portage

2025-11-11

guile-nyacc - 1.06.7-r101
Ebuild name:

dev-scheme/guile-nyacc-1.06.7-r101

Description

Guile modules for generating parsers and lexical analyzers

Added to portage

2025-11-11

hcloud - 2.11.0
Ebuild name:

dev-python/hcloud-2.11.0

Description

Official Hetzner Cloud python library

Added to portage

2025-11-11

libtirpc - 1.3.7-r1
Ebuild name:

net-libs/libtirpc-1.3.7-r1

Description

Transport Independent RPC library (SunRPC replacement)

Added to portage

2025-11-11

marble - 25.08.3-r1
Ebuild name:

kde-apps/marble-25.08.3-r1

Description

Virtual Globe and World Atlas to learn more about Earth

Added to portage

2025-11-11

markdown-exec - 1.12.0
Ebuild name:

dev-python/markdown-exec-1.12.0

Description

Utilities to execute code blocks in Markdown files

Added to portage

2025-11-11

mkdocstrings-python - 1.19.0
Ebuild name:

dev-python/mkdocstrings-python-1.19.0

Description

Python handler for dev-python/mkdocstrings

Added to portage

2025-11-11

narwhals - 2.11.0
Ebuild name:

dev-python/narwhals-2.11.0

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2025-11-11

pdm-backend - 2.4.6
Ebuild name:

dev-python/pdm-backend-2.4.6

Description

A PEP 517 backend for PDM that supports PEP 621 metadata

Added to portage

2025-11-11

pikepdf - 10.0.2
Ebuild name:

dev-python/pikepdf-10.0.2

Description

Python library to work with pdf files based on qpdf

Added to portage

2025-11-11

plplot - 5.15.0_p15-r1
Ebuild name:

sci-libs/plplot-5.15.0_p15-r1

Description

Multi-language scientific plotting library

Added to portage

2025-11-11

plz - 0.9.1
Ebuild name:

app-emacs/plz-0.9.1

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-11-11

pynacl - 1.6.1
Ebuild name:

dev-python/pynacl-1.6.1

Description

Python binding to the Networking and Cryptography (NaCl) library

Added to portage

2025-11-11

pytest - 9.0.0-r1
Ebuild name:

dev-python/pytest-9.0.0-r1

Description

Simple powerful testing with Python

Added to portage

2025-11-11

pytest-asyncio - 1.3.0
Ebuild name:

dev-python/pytest-asyncio-1.3.0

Description

Library for testing asyncio code with pytest

Added to portage

2025-11-11

pytest-gitconfig - 0.8.0
Ebuild name:

dev-python/pytest-gitconfig-0.8.0

Description

Provide a Git config sandbox for testing

Added to portage

2025-11-11

python-socks - 2.7.3
Ebuild name:

dev-python/python-socks-2.7.3

Description

SOCKS4, SOCKS5, HTTP tunneling functionality for Python

Added to portage

2025-11-11

python-subunit - 1.4.5
Ebuild name:

dev-python/python-subunit-1.4.5

Description

A streaming protocol for test results

Added to portage

2025-11-11

pyzotero - 1.7.5
Ebuild name:

dev-python/pyzotero-1.7.5

Description

A Python client for the Zotero API

Added to portage

2025-11-11

rocSOLVER - 7.1.0-r1
Ebuild name:

sci-libs/rocSOLVER-7.1.0-r1

Description

Implementation of a subset of LAPACK functionality on the ROCm platform

Added to portage

2025-11-11

rspamd - 3.14.0
Ebuild name:

mail-filter/rspamd-3.14.0

Description

Rapid spam filtering system

Added to portage

2025-11-11

skribilo - 0.10.0-r101
Ebuild name:

dev-scheme/skribilo-0.10.0-r101

Description

Document production tool written in Guile Scheme

Added to portage

2025-11-11

testtools - 2.8.0
Ebuild name:

dev-python/testtools-2.8.0

Description

Extensions to the Python standard library unit testing framework

Added to portage

2025-11-11

types-psutil - 7.0.0.20251111
Ebuild name:

dev-python/types-psutil-7.0.0.20251111

Description

Typing stubs for psutil

Added to portage

2025-11-11

usbprog - 0.3.0_p20140828-r3
Ebuild name:

dev-embedded/usbprog-0.3.0_p20140828-r3

Description

flashtool for the multi purpose programming adapter usbprog

Added to portage

2025-11-11

vivaldi-snapshot - 7.7.3851.30
Ebuild name:

www-client/vivaldi-snapshot-7.7.3851.30

Description

A browser for our friends

Added to portage

2025-11-11

zope-interface - 8.1
Ebuild name:

dev-python/zope-interface-8.1

Description

Interfaces for Python

Added to portage

2025-11-11

2025-11-10
anydesk - 7.1.1
Ebuild name:

net-misc/anydesk-7.1.1

Description

Feature rich multi-platform remote desktop application

Added to portage

2025-11-10

astroid - 4.0.2
Ebuild name:

dev-python/astroid-4.0.2

Description

Abstract Syntax Tree for logilab packages

Added to portage

2025-11-10

black - 25.11.0
Ebuild name:

dev-python/black-25.11.0

Description

The uncompromising Python code formatter

Added to portage

2025-11-10

caffe2 - 2.9.0-r1
Ebuild name:

sci-ml/caffe2-2.9.0-r1

Description

A deep learning framework

Added to portage

2025-11-10

chafa - 1.18.0
Ebuild name:

media-gfx/chafa-1.18.0

Description

versatile and fast Unicode/ASCII/ANSI graphics renderer

Added to portage

2025-11-10

chemex - 2025.10.0
Ebuild name:

sci-chemistry/chemex-2025.10.0

Description

Program to fit chemical exchange induced shift and relaxation data

Added to portage

2025-11-10

cinnamon - 6.4.10-r2
Ebuild name:

gnome-extra/cinnamon-6.4.10-r2

Description

A fork of GNOME Shell with layout similar to GNOME 2

Added to portage

2025-11-10

cinnamon - 6.4.13-r1
Ebuild name:

gnome-extra/cinnamon-6.4.13-r1

Description

A fork of GNOME Shell with layout similar to GNOME 2

Added to portage

2025-11-10

coverage - 7.11.3
Ebuild name:

dev-python/coverage-7.11.3

Description

Code coverage measurement for Python

Added to portage

2025-11-10

cvc4 - 1.8-r7
Ebuild name:

sci-mathematics/cvc4-1.8-r7

Description

Automatic theorem prover for satisfiability modulo theories (SMT) probl

Added to portage

2025-11-10

direwolf - 1.8
Ebuild name:

media-radio/direwolf-1.8

Description

Decoded Information from Radio Emissions for Windows Or Linux Fans

Added to portage

2025-11-10

frei0r-plugins - 2.4.1
Ebuild name:

media-plugins/frei0r-plugins-2.4.1

Description

A minimalistic plugin API for video effects

Added to portage

2025-11-10

gcc - 16.0.0_p20251109
Ebuild name:

sys-devel/gcc-16.0.0_p20251109

Description

The GNU Compiler Collection

Added to portage

2025-11-10

git-sources - 6.18_rc5
Ebuild name:

sys-kernel/git-sources-6.18_rc5

Description

The very latest -git version of the Linux kernel

Added to portage

2025-11-10

gloo - 2025.06.04-r2
Ebuild name:

sci-ml/gloo-2025.06.04-r2

Description

library of floating-point neural network inference operators

Added to portage

2025-11-10

gpxsee - 15.3
Ebuild name:

sci-geosciences/gpxsee-15.3

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2025-11-10

haproxy - 3.1.10
Ebuild name:

net-proxy/haproxy-3.1.10

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2025-11-10

haproxy - 3.2.8
Ebuild name:

net-proxy/haproxy-3.2.8

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2025-11-10

hipBLASLt - 7.1.0-r1
Ebuild name:

sci-libs/hipBLASLt-7.1.0-r1

Description

General matrix-matrix operations library for AMD Instinct accelerators

Added to portage

2025-11-10

iminuit - 2.32.0
Ebuild name:

dev-python/iminuit-2.32.0

Description

Minuit numerical function minimization in Python

Added to portage

2025-11-10

incus - 9999
Ebuild name:

app-containers/incus-9999

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2025-11-10

libcifpp - 9.0.5
Ebuild name:

sci-libs/libcifpp-9.0.5

Description

Code to work with mmCIF and PDB files

Added to portage

2025-11-10

lxqt-archiver - 1.3.0-r1
Ebuild name:

app-arch/lxqt-archiver-1.3.0-r1

Description

Qt GUI File Archiver

Added to portage

2025-11-10

maturin - 1.10.0
Ebuild name:

dev-util/maturin-1.10.0

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2025-11-10

mysqltuner - 2.7.0
Ebuild name:

dev-db/mysqltuner-2.7.0

Description

Makes recommendations for increased performance and stability for MySQL

Added to portage

2025-11-10

nanoc - 4.14.1
Ebuild name:

www-apps/nanoc-4.14.1

Description

nanoc is a simple but very flexible static site generator written in Ruby

Added to portage

2025-11-10

nanoc-cli - 4.14.1
Ebuild name:

www-apps/nanoc-cli-4.14.1

Description

nanoc is a simple but very flexible static site generator written in Ruby

Added to portage

2025-11-10

nanoc-core - 4.14.1
Ebuild name:

www-apps/nanoc-core-4.14.1

Description

nanoc is a simple but very flexible static site generator written in Rub

Added to portage

2025-11-10

nautilus - 47.4-r2
Ebuild name:

gnome-base/nautilus-47.4-r2

Description

Default file manager for the GNOME desktop

Added to portage

2025-11-10

nautilus - 47.5-r2
Ebuild name:

gnome-base/nautilus-47.5-r2

Description

Default file manager for the GNOME desktop

Added to portage

2025-11-10

nautilus - 48.3-r2
Ebuild name:

gnome-base/nautilus-48.3-r2

Description

Default file manager for the GNOME desktop

Added to portage

2025-11-10

nautilus - 48.4.1-r1
Ebuild name:

gnome-base/nautilus-48.4.1-r1

Description

Default file manager for the GNOME desktop

Added to portage

2025-11-10

noto - 20251101
Ebuild name:

media-fonts/noto-20251101

Description

Google's font family that aims to support all the world's languages

Added to portage

2025-11-10

openpgp-keys-gentoo-developers - 20251103
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20251103

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2025-11-10

pikepdf - 10.0.1
Ebuild name:

dev-python/pikepdf-10.0.1

Description

Python library to work with pdf files based on qpdf

Added to portage

2025-11-10

postfix - 3.11_pre20251105
Ebuild name:

mail-mta/postfix-3.11_pre20251105

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-11-10

pypdf - 6.2.0
Ebuild name:

dev-python/pypdf-6.2.0

Description

Python library to work with PDF files

Added to portage

2025-11-10

radicale - 3.5.8
Ebuild name:

www-apps/radicale-3.5.8

Description

A simple CalDAV calendar server

Added to portage

2025-11-10

rocdbgapi - 7.1.0-r1
Ebuild name:

dev-libs/rocdbgapi-7.1.0-r1

Description

AMD Debugger API

Added to portage

2025-11-10

rsync - 3.4.1-r1
Ebuild name:

net-misc/rsync-3.4.1-r1

Description

File transfer program to keep remote files into sync

Added to portage

2025-11-10

squashfs-tools - 4.7.4
Ebuild name:

sys-fs/squashfs-tools-4.7.4

Description

Tools to create and extract Squashfs filesystems

Added to portage

2025-11-10

stoken - 0.92-r3
Ebuild name:

app-crypt/stoken-0.92-r3

Description

Software Token for Linux/UNIX

Added to portage

2025-11-10

sudo-rs - 0.2.10
Ebuild name:

app-admin/sudo-rs-0.2.10

Description

A memory safe implementation of sudo and su.

Added to portage

2025-11-10

swtpm - 0.10.0
Ebuild name:

app-crypt/swtpm-0.10.0

Description

Libtpms-based TPM emulator

Added to portage

2025-11-10

swtpm - 0.10.0-r2
Ebuild name:

app-crypt/swtpm-0.10.0-r2

Description

Libtpms-based TPM emulator

Added to portage

2025-11-10

swtpm - 0.9.0
Ebuild name:

app-crypt/swtpm-0.9.0

Description

Libtpms-based TPM emulator

Added to portage

2025-11-10

syd - 3.44.1
Ebuild name:

sys-apps/syd-3.44.1

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-11-10

tc-play - 3.3
Ebuild name:

app-crypt/tc-play-3.3

Description

A free, pretty much fully featured and stable TrueCrypt implementation

Added to portage

2025-11-10

tigervnc - 1.15.90-r1
Ebuild name:

net-misc/tigervnc-1.15.90-r1

Description

Remote desktop viewer display system

Added to portage

2025-11-10

tpm-tools - 1.3.9.2-r1
Ebuild name:

app-crypt/tpm-tools-1.3.9.2-r1

Description

TrouSerS' support tools for the Trusted Platform Modules

Added to portage

2025-11-10

tpm2-abrmd - 3.0.0-r2
Ebuild name:

app-crypt/tpm2-abrmd-3.0.0-r2

Description

TPM2 Access Broker & Resource Manager

Added to portage

2025-11-10

tpm2-openssl - 1.3.0
Ebuild name:

app-crypt/tpm2-openssl-1.3.0

Description

OpenSSL Provider for TPM2 integration

Added to portage

2025-11-10

tpm2-pkcs11 - 1.9.1
Ebuild name:

app-crypt/tpm2-pkcs11-1.9.1

Description

A PKCS11 interface for TPM2 hardware

Added to portage

2025-11-10

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: 53.8 ms