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:

82275

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
2025-12-02
aws-c-auth - 0.9.2
Ebuild name:

dev-libs/aws-c-auth-0.9.2

Description

AWS C Auth C99 library implementation of AWS client-side authentication.

Added to portage

2025-12-02

aws-c-cal - 0.9.13
Ebuild name:

dev-libs/aws-c-cal-0.9.13

Description

Crypto Abstraction Layer Cross-Platform C99 wrapper for cryptography prim

Added to portage

2025-12-02

aws-c-common - 0.12.6
Ebuild name:

dev-libs/aws-c-common-0.12.6

Description

Core c99 package for AWS SDK for C.

Added to portage

2025-12-02

aws-c-s3 - 0.11.2
Ebuild name:

dev-libs/aws-c-s3-0.11.2

Description

AWS C S3 async library.

Added to portage

2025-12-02

awscli - 1.43.6
Ebuild name:

app-admin/awscli-1.43.6

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-02

boto3 - 1.42.0
Ebuild name:

dev-python/boto3-1.42.0

Description

The AWS SDK for Python

Added to portage

2025-12-02

botocore - 1.41.6
Ebuild name:

dev-python/botocore-1.41.6

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-02

calibre - 8.15.0
Ebuild name:

app-text/calibre-8.15.0

Description

Ebook management application

Added to portage

2025-12-02

clang - 21.1.7
Ebuild name:

dev-python/clang-21.1.7

Description

Python bindings for llvm-core/clang

Added to portage

2025-12-02

clang - 21.1.7
Ebuild name:

llvm-core/clang-21.1.7

Description

C language family frontend for LLVM

Added to portage

2025-12-02

clang-common - 21.1.7
Ebuild name:

llvm-core/clang-common-21.1.7

Description

Common files shared between multiple slots of clang

Added to portage

2025-12-02

claude-code - 2.0.55
Ebuild name:

dev-util/claude-code-2.0.55

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2025-12-02

claude-code - 2.0.56
Ebuild name:

dev-util/claude-code-2.0.56

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2025-12-02

cmdliner - 2.1.0
Ebuild name:

dev-ml/cmdliner-2.1.0

Description

Declarative definition of command line interfaces for OCaml

Added to portage

2025-12-02

dbeaver-bin - 25.3.0
Ebuild name:

dev-db/dbeaver-bin-25.3.0

Description

Free universal database tool (community edition)

Added to portage

2025-12-02

dtrx - 8.7.1
Ebuild name:

app-arch/dtrx-8.7.1

Description

Do The Right eXtraction - extracts archives of different formats

Added to portage

2025-12-02

egl-wayland2 - 1.0.1_pre20251124
Ebuild name:

gui-libs/egl-wayland2-1.0.1_pre20251124

Description

NVIDIA wayland EGL external platform library, version 2

Added to portage

2025-12-02

egl-x11 - 1.0.4_pre20251111
Ebuild name:

gui-libs/egl-x11-1.0.4_pre20251111

Description

NVIDIA X11/XCB EGL external platform library

Added to portage

2025-12-02

flang - 21.1.7
Ebuild name:

llvm-core/flang-21.1.7

Description

LLVM's Fortran frontend

Added to portage

2025-12-02

hypothesis - 6.148.5
Ebuild name:

dev-python/hypothesis-6.148.5

Description

A library for property based testing

Added to portage

2025-12-02

joplin-desktop - 3.5.7
Ebuild name:

app-office/joplin-desktop-3.5.7

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2025-12-02

libarchive - 3.8.4
Ebuild name:

app-arch/libarchive-3.8.4

Description

Multi-format archive and compression library

Added to portage

2025-12-02

libclc - 21.1.7
Ebuild name:

llvm-core/libclc-21.1.7

Description

OpenCL C library

Added to portage

2025-12-02

libevdev - 1.13.6
Ebuild name:

dev-libs/libevdev-1.13.6

Description

Handler library for evdev events

Added to portage

2025-12-02

lit - 21.1.7
Ebuild name:

dev-python/lit-21.1.7

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2025-12-02

lld - 21.1.7
Ebuild name:

llvm-core/lld-21.1.7

Description

The LLVM linker (link editor)

Added to portage

2025-12-02

lldb - 21.1.7
Ebuild name:

llvm-core/lldb-21.1.7

Description

The LLVM debugger

Added to portage

2025-12-02

llvm - 21.1.7
Ebuild name:

dev-ml/llvm-21.1.7

Description

OCaml bindings for LLVM

Added to portage

2025-12-02

llvm - 21.1.7
Ebuild name:

llvm-core/llvm-21.1.7

Description

Low Level Virtual Machine

Added to portage

2025-12-02

mariadb-connector-odbc - 3.2.7-r1
Ebuild name:

dev-db/mariadb-connector-odbc-3.2.7-r1

Description

MariaDB Connector/ODBC

Added to portage

2025-12-02

meson - 1.10.0_rc2
Ebuild name:

dev-build/meson-1.10.0_rc2

Description

Open source build system

Added to portage

2025-12-02

mozc - 2.32.5994.102
Ebuild name:

app-i18n/mozc-2.32.5994.102

Description

Mozc - Japanese input method editor.

Added to portage

2025-12-02

narwhals - 2.13.0
Ebuild name:

dev-python/narwhals-2.13.0

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2025-12-02

pandoc-bin - 3.8.3
Ebuild name:

app-text/pandoc-bin-3.8.3

Description

Conversion between markup formats (binary package)

Added to portage

2025-12-02

psycopg - 3.3.0
Ebuild name:

dev-python/psycopg-3.3.0

Description

PostgreSQL database adapter for Python

Added to portage

2025-12-02

pyclipper - 1.4.0
Ebuild name:

dev-python/pyclipper-1.4.0

Description

Cython wrapper for the C++ translation of the Angus Johnson's Clipper li

Added to portage

2025-12-02

reason - 3.17.2
Ebuild name:

dev-ml/reason-3.17.2

Description

Simple, fast & type safe language that leverages JavaScript and OCaml

Added to portage

2025-12-02

rpl - 2.0.4
Ebuild name:

app-text/rpl-2.0.4

Description

Intelligent recursive search/replace utility

Added to portage

2025-12-02

s3transfer - 0.16.0
Ebuild name:

dev-python/s3transfer-0.16.0

Description

An Amazon S3 Transfer Manager

Added to portage

2025-12-02

sigil - 2.7.0
Ebuild name:

app-text/sigil-2.7.0

Description

Multi-platform WYSIWYG ebook editor for ePub format

Added to portage

2025-12-02

sphinx - 9.0.1
Ebuild name:

dev-python/sphinx-9.0.1

Description

Python documentation generator

Added to portage

2025-12-02

swtpm - 0.10.0
Ebuild name:

app-crypt/swtpm-0.10.0

Description

Libtpms-based TPM emulator

Added to portage

2025-12-02

swtpm - 0.10.0-r2
Ebuild name:

app-crypt/swtpm-0.10.0-r2

Description

Libtpms-based TPM emulator

Added to portage

2025-12-02

topkg - 1.1.1
Ebuild name:

dev-ml/topkg-1.1.1

Description

The transitory OCaml software packager

Added to portage

2025-12-02

trove-classifiers - 2025.12.1.14
Ebuild name:

dev-python/trove-classifiers-2025.12.1.14

Description

Canonical source for classifiers on PyPI (pypi.org)

Added to portage

2025-12-02

types-psutil - 7.1.3.20251202
Ebuild name:

dev-python/types-psutil-7.1.3.20251202

Description

Typing stubs for psutil

Added to portage

2025-12-02

uv - 0.9.14
Ebuild name:

dev-python/uv-0.9.14

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-12-02

uv-build - 0.9.14
Ebuild name:

dev-python/uv-build-0.9.14

Description

PEP517 uv build backend

Added to portage

2025-12-02

wine-mono - 10.4.0
Ebuild name:

app-emulation/wine-mono-10.4.0

Description

Replacement for the .NET runtime and class libraries in Wine

Added to portage

2025-12-02

ytmusicapi - 1.11.3
Ebuild name:

dev-python/ytmusicapi-1.11.3

Description

Unofficial API for YouTube Music

Added to portage

2025-12-02

2025-12-01
amdsmi - 7.1.0
Ebuild name:

dev-util/amdsmi-7.1.0

Description

AMD System Management Interface for managing and monitoring GPUs

Added to portage

2025-12-01

apispec - 6.9.0
Ebuild name:

dev-python/apispec-6.9.0

Description

A pluggable API specification generator

Added to portage

2025-12-01

asterisk - 20.17.0
Ebuild name:

net-misc/asterisk-20.17.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

asterisk - 21.12.0
Ebuild name:

net-misc/asterisk-21.12.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

asterisk - 22.7.0
Ebuild name:

net-misc/asterisk-22.7.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

aws-sam-translator - 1.104.0
Ebuild name:

dev-python/aws-sam-translator-1.104.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2025-12-01

beautifulsoup4 - 4.14.3
Ebuild name:

dev-python/beautifulsoup4-4.14.3

Description

Pythonic idioms for iterating, searching, and modifying an HTML/XM

Added to portage

2025-12-01

beniget - 0.5.0
Ebuild name:

dev-python/beniget-0.5.0

Description

Extract semantic information about static Python code

Added to portage

2025-12-01

buffer - 1.19-r5
Ebuild name:

sys-block/buffer-1.19-r5

Description

A tapedrive tool for speeding up reading from and writing to tape

Added to portage

2025-12-01

cfn-lint - 1.42.0
Ebuild name:

dev-python/cfn-lint-1.42.0

Description

CloudFormation Linter

Added to portage

2025-12-01

cgit - 1.2.3_p20240802-r2
Ebuild name:

www-apps/cgit-1.2.3_p20240802-r2

Description

A fast web-interface for Git repositories

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.0-r2
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.0-r2

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.1-r1
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.1-r1

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

coverage - 7.12.1_beta1
Ebuild name:

dev-python/coverage-7.12.1_beta1

Description

Code coverage measurement for Python

Added to portage

2025-12-01

cryptodev - 1.14
Ebuild name:

sys-kernel/cryptodev-1.14

Description

device that allows access to Linux kernel cryptographic drivers

Added to portage

2025-12-01

cython - 3.2.2
Ebuild name:

dev-python/cython-3.2.2

Description

A Python to C compiler

Added to portage

2025-12-01

gcc - 16.0.0_p20251130
Ebuild name:

sys-devel/gcc-16.0.0_p20251130

Description

The GNU Compiler Collection

Added to portage

2025-12-01

genshi - 0.7.10
Ebuild name:

dev-python/genshi-0.7.10

Description

Python toolkit for stream-based generation of output for the web

Added to portage

2025-12-01

gpa - 0.11.0-r2
Ebuild name:

app-crypt/gpa-0.11.0-r2

Description

GNU Privacy Assistant (GPA) a graphical user interface for GnuPG

Added to portage

2025-12-01

gpxsee - 15.5
Ebuild name:

sci-geosciences/gpxsee-15.5

Description

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

Added to portage

2025-12-01

grass - 8.4.1-r2
Ebuild name:

sci-geosciences/grass-8.4.1-r2

Description

Free GIS with raster and vector functionality, as well as 3D vizuali

Added to portage

2025-12-01

ig - 0.47.0
Ebuild name:

app-admin/ig-0.47.0

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2025-12-01

inspectrum - 0.3.1_p20251130
Ebuild name:

net-wireless/inspectrum-0.3.1_p20251130

Description

Tool for analysing captured signals from software-defined r

Added to portage

2025-12-01

irqbalance - 1.9.4-r3
Ebuild name:

sys-apps/irqbalance-1.9.4-r3

Description

Distribute hardware interrupts across processors on a multiprocessor s

Added to portage

2025-12-01

jellyfin-bin - 10.11.4
Ebuild name:

www-apps/jellyfin-bin-10.11.4

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2025-12-01

libtmux - 0.50.0
Ebuild name:

dev-python/libtmux-0.50.0

Description

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

Added to portage

2025-12-01

libvirt - 11.9.0
Ebuild name:

app-emulation/libvirt-11.9.0

Description

C toolkit to manipulate virtual machines

Added to portage

2025-12-01

libvirt-python - 11.9.0
Ebuild name:

dev-python/libvirt-python-11.9.0

Description

libvirt Python bindings

Added to portage

2025-12-01

libxslt - 1.1.45
Ebuild name:

dev-libs/libxslt-1.1.45

Description

XSLT libraries and tools

Added to portage

2025-12-01

limine - 10.4.0
Ebuild name:

sys-boot/limine-10.4.0

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2025-12-01

moto - 5.1.18
Ebuild name:

dev-python/moto-5.1.18

Description

Mock library for boto

Added to portage

2025-12-01

mtx - 1.3.12-r1
Ebuild name:

sys-block/mtx-1.3.12-r1

Description

Utilities for controlling SCSI media changers and tape drives

Added to portage

2025-12-01

plz - 0.7.2
Ebuild name:

app-emacs/plz-0.7.2

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-12-01

pygraphviz - 1.14-r1
Ebuild name:

dev-python/pygraphviz-1.14-r1

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pygraphviz - 1.14-r2
Ebuild name:

dev-python/pygraphviz-1.14-r2

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pylint - 4.0.4
Ebuild name:

dev-python/pylint-4.0.4

Description

Python code static checker

Added to portage

2025-12-01

pythontex - 0.18_p20251112
Ebuild name:

dev-tex/pythontex-0.18_p20251112

Description

Fast Access to Python from within LaTeX

Added to portage

2025-12-01

qmapshack - 1.19.0
Ebuild name:

sci-geosciences/qmapshack-1.19.0

Description

GPS mapping utility

Added to portage

2025-12-01

radicale - 3.5.9
Ebuild name:

www-apps/radicale-3.5.9

Description

A simple CalDAV calendar server

Added to portage

2025-12-01

remind - 06.02.01
Ebuild name:

app-misc/remind-06.02.01

Description

Ridiculously functional reminder program

Added to portage

2025-12-01

rpds-py - 0.30.0
Ebuild name:

dev-python/rpds-py-0.30.0

Description

Python bindings to Rust's persistent data structures (rpds)

Added to portage

2025-12-01

sbcl - 2.5.11
Ebuild name:

dev-lisp/sbcl-2.5.11

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2025-12-01

socklog - 2.1.2
Ebuild name:

app-admin/socklog-2.1.2

Description

Small secure replacement for syslogd with automatic log rotation

Added to portage

2025-12-01

sphinx - 9.0.0
Ebuild name:

dev-python/sphinx-9.0.0

Description

Python documentation generator

Added to portage

2025-12-01

supercollider - 3.14.1
Ebuild name:

media-sound/supercollider-3.14.1

Description

Environment and programming language for real time audio synthesis

Added to portage

2025-12-01

wild - 0.7.0
Ebuild name:

sys-devel/wild-0.7.0

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 0.7.0-r1
Ebuild name:

sys-devel/wild-0.7.0-r1

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 9999
Ebuild name:

sys-devel/wild-9999

Description

A very fast linker for Linux

Added to portage

2025-12-01

xdotool - 4.20251130.1
Ebuild name:

x11-misc/xdotool-4.20251130.1

Description

Simulate keyboard input and mouse activity, move and resize windows

Added to portage

2025-12-01

zerotier - 1.16.0-r2
Ebuild name:

net-misc/zerotier-1.16.0-r2

Description

A software-based managed Ethernet switch for planet Earth

Added to portage

2025-12-01

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