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:

82360

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-09
alsa-lib - 1.2.15
Ebuild name:

media-libs/alsa-lib-1.2.15

Description

Advanced Linux Sound Architecture Library

Added to portage

2025-12-09

alsa-tools - 1.2.15
Ebuild name:

media-sound/alsa-tools-1.2.15

Description

Advanced Linux Sound Architecture tools

Added to portage

2025-12-09

alsa-ucm-conf - 1.2.15
Ebuild name:

media-libs/alsa-ucm-conf-1.2.15

Description

ALSA ucm configuration files

Added to portage

2025-12-09

alsa-utils - 1.2.15
Ebuild name:

media-sound/alsa-utils-1.2.15

Description

Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)

Added to portage

2025-12-09

caffe2 - 2.8.0-r2
Ebuild name:

sci-ml/caffe2-2.8.0-r2

Description

A deep learning framework

Added to portage

2025-12-09

caffe2 - 2.9.0-r3
Ebuild name:

sci-ml/caffe2-2.9.0-r3

Description

A deep learning framework

Added to portage

2025-12-09

caffe2 - 2.9.1-r1
Ebuild name:

sci-ml/caffe2-2.9.1-r1

Description

A deep learning framework

Added to portage

2025-12-09

discord - 0.0.118
Ebuild name:

net-im/discord-0.0.118

Description

All-in-one voice and text chat for gamers

Added to portage

2025-12-09

discord - 0.0.118-r1
Ebuild name:

net-im/discord-0.0.118-r1

Description

All-in-one voice and text chat for gamers

Added to portage

2025-12-09

firefox - 146.0
Ebuild name:

www-client/firefox-146.0

Description

Firefox Web Browser

Added to portage

2025-12-09

irqbalance - 1.9.5
Ebuild name:

sys-apps/irqbalance-1.9.5

Description

Distribute hardware interrupts across processors on a multiprocessor syst

Added to portage

2025-12-09

libpng - 1.6.53
Ebuild name:

media-libs/libpng-1.6.53

Description

Portable Network Graphics library

Added to portage

2025-12-09

nx - 3.5.99.27-r3
Ebuild name:

net-misc/nx-3.5.99.27-r3

Description

NX compression technology core libraries

Added to portage

2025-12-09

onnx - 1.18.0-r1
Ebuild name:

sci-ml/onnx-1.18.0-r1

Description

Open Neural Network Exchange (ONNX)

Added to portage

2025-12-09

pyqt5-sip - 12.17.2
Ebuild name:

dev-python/pyqt5-sip-12.17.2

Description

sip extension module for PyQt5

Added to portage

2025-12-09

pyqt6-sip - 13.10.3
Ebuild name:

dev-python/pyqt6-sip-13.10.3

Description

sip module support for PyQt6

Added to portage

2025-12-09

qt3d - 6.11.9999
Ebuild name:

dev-qt/qt3d-6.11.9999

Description

3D rendering module for the Qt6 framework

Added to portage

2025-12-09

qt5compat - 6.11.9999
Ebuild name:

dev-qt/qt5compat-6.11.9999

Description

Qt module containing the unsupported Qt 5 APIs

Added to portage

2025-12-09

qtbase - 6.11.9999
Ebuild name:

dev-qt/qtbase-6.11.9999

Description

Cross-platform application development framework

Added to portage

2025-12-09

qtcharts - 6.11.9999
Ebuild name:

dev-qt/qtcharts-6.11.9999

Description

Chart component library for the Qt6 framework

Added to portage

2025-12-09

qtconnectivity - 6.11.9999
Ebuild name:

dev-qt/qtconnectivity-6.11.9999

Description

Bluetooth and NFC support library for the Qt6 framework

Added to portage

2025-12-09

qtdeclarative - 6.11.9999
Ebuild name:

dev-qt/qtdeclarative-6.11.9999

Description

Qt Declarative (Quick 2)

Added to portage

2025-12-09

qtgraphs - 6.11.9999
Ebuild name:

dev-qt/qtgraphs-6.11.9999

Description

Graphs component library for the Qt6 framework

Added to portage

2025-12-09

qthttpserver - 6.11.9999
Ebuild name:

dev-qt/qthttpserver-6.11.9999

Description

HTTP server functionality for the Qt6 framework

Added to portage

2025-12-09

qtimageformats - 6.11.9999
Ebuild name:

dev-qt/qtimageformats-6.11.9999

Description

Additional format plugins for the Qt image I/O system

Added to portage

2025-12-09

qtlanguageserver - 6.11.9999
Ebuild name:

dev-qt/qtlanguageserver-6.11.9999

Description

Implementation of the Language Server Protocol for Qt

Added to portage

2025-12-09

qtlocation - 6.11.9999
Ebuild name:

dev-qt/qtlocation-6.11.9999

Description

Location (places, maps, navigation) library for the Qt6 framework

Added to portage

2025-12-09

qtmultimedia - 6.11.9999
Ebuild name:

dev-qt/qtmultimedia-6.11.9999

Description

Multimedia (audio, video, radio, camera) library for the Qt6 framewor

Added to portage

2025-12-09

qtnetworkauth - 6.11.9999
Ebuild name:

dev-qt/qtnetworkauth-6.11.9999

Description

Network authorization library for the Qt6 framework

Added to portage

2025-12-09

qtpositioning - 6.11.9999
Ebuild name:

dev-qt/qtpositioning-6.11.9999

Description

Physical position determination library for the Qt6 framework

Added to portage

2025-12-09

qtquick3d - 6.11.9999
Ebuild name:

dev-qt/qtquick3d-6.11.9999

Description

Qt module and API for defining 3D content in Qt QuickTools

Added to portage

2025-12-09

qtquicktimeline - 6.11.9999
Ebuild name:

dev-qt/qtquicktimeline-6.11.9999

Description

Qt module for keyframe-based timeline construction

Added to portage

2025-12-09

qtremoteobjects - 6.11.9999
Ebuild name:

dev-qt/qtremoteobjects-6.11.9999

Description

Inter-Process Communication (IPC) library for the Qt6 framework

Added to portage

2025-12-09

qtscxml - 6.11.9999
Ebuild name:

dev-qt/qtscxml-6.11.9999

Description

State Chart XML (SCXML) support library for the Qt6 framework

Added to portage

2025-12-09

qtsensors - 6.11.9999
Ebuild name:

dev-qt/qtsensors-6.11.9999

Description

Hardware sensor access library for the Qt6 framework

Added to portage

2025-12-09

qtserialbus - 6.11.9999
Ebuild name:

dev-qt/qtserialbus-6.11.9999

Description

Qt module to access CAN, ModBus, and other industrial serial buses and

Added to portage

2025-12-09

qtserialport - 6.11.9999
Ebuild name:

dev-qt/qtserialport-6.11.9999

Description

Serial port abstraction library for the Qt6 framework

Added to portage

2025-12-09

qtshadertools - 6.11.9999
Ebuild name:

dev-qt/qtshadertools-6.11.9999

Description

Qt APIs and Tools for Graphics Pipelines

Added to portage

2025-12-09

qtspeech - 6.11.9999
Ebuild name:

dev-qt/qtspeech-6.11.9999

Description

Text-to-speech library for the Qt6 framework

Added to portage

2025-12-09

qtsvg - 6.11.9999
Ebuild name:

dev-qt/qtsvg-6.11.9999

Description

SVG rendering library for the Qt6 framework

Added to portage

2025-12-09

qttools - 6.11.9999
Ebuild name:

dev-qt/qttools-6.11.9999

Description

Qt Tools Collection

Added to portage

2025-12-09

qttranslations - 6.11.9999
Ebuild name:

dev-qt/qttranslations-6.11.9999

Description

Translation files for the Qt6 framework

Added to portage

2025-12-09

qtvirtualkeyboard - 6.11.9999
Ebuild name:

dev-qt/qtvirtualkeyboard-6.11.9999

Description

Customizable input framework and virtual keyboard for Qt

Added to portage

2025-12-09

qtwayland - 6.11.9999
Ebuild name:

dev-qt/qtwayland-6.11.9999

Description

Toolbox for making Qt based Wayland compositors

Added to portage

2025-12-09

qtwebchannel - 6.11.9999
Ebuild name:

dev-qt/qtwebchannel-6.11.9999

Description

Qt WebChannel

Added to portage

2025-12-09

qtwebengine - 6.11.9999
Ebuild name:

dev-qt/qtwebengine-6.11.9999

Description

Library for rendering dynamic web content in Qt6 C++ and QML applicati

Added to portage

2025-12-09

qtwebsockets - 6.11.9999
Ebuild name:

dev-qt/qtwebsockets-6.11.9999

Description

Implementation of the WebSocket protocol for the Qt6 framework

Added to portage

2025-12-09

qtwebview - 6.11.9999
Ebuild name:

dev-qt/qtwebview-6.11.9999

Description

Module for displaying web content in a QML application using the Qt6 fra

Added to portage

2025-12-09

sip - 6.15.0
Ebuild name:

dev-python/sip-6.15.0

Description

Python bindings generator for C/C++ libraries

Added to portage

2025-12-09

tmuxp - 1.61.0
Ebuild name:

app-misc/tmuxp-1.61.0

Description

tmux session manager. built on libtmux

Added to portage

2025-12-09

2025-12-08
apprise - 1.9.6
Ebuild name:

dev-python/apprise-1.9.6

Description

Push Notifications that work with just about every platform

Added to portage

2025-12-08

basket - 2.49b_p20251207
Ebuild name:

kde-misc/basket-2.49b_p20251207

Description

Multiple information organizer - a DropDrawers clone

Added to portage

2025-12-08

black - 25.12.0
Ebuild name:

dev-python/black-25.12.0

Description

The uncompromising Python code formatter

Added to portage

2025-12-08

blas-lapack-aux-wrapper - 4
Ebuild name:

sci-libs/blas-lapack-aux-wrapper-4

Description

BLAS/LAPACK wrappers for FlexiBLAS

Added to portage

2025-12-08

blockbuster - 1.5.26
Ebuild name:

dev-python/blockbuster-1.5.26

Description

Utility to detect blocking calls in the async event loop

Added to portage

2025-12-08

cdrdao - 1.2.6
Ebuild name:

app-cdr/cdrdao-1.2.6

Description

Burn CDs in disk-at-once mode with a command line interface

Added to portage

2025-12-08

claude-code - 2.0.61
Ebuild name:

dev-util/claude-code-2.0.61

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2025-12-08

cmd2 - 3.0.0
Ebuild name:

dev-python/cmd2-3.0.0

Description

Extra features for standard library's cmd module

Added to portage

2025-12-08

double-conversion - 3.4.0
Ebuild name:

dev-libs/double-conversion-3.4.0

Description

Binary-decimal and decimal-binary conversion routines for IEEE dou

Added to portage

2025-12-08

e3-core - 22.6.0-r5
Ebuild name:

dev-ada/e3-core-22.6.0-r5

Description

Ease the development of portable automated build systems

Added to portage

2025-12-08

eisl - 5.61
Ebuild name:

dev-lang/eisl-5.61

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2025-12-08

elogviewer - 3.3_pre20251208
Ebuild name:

app-portage/elogviewer-3.3_pre20251208

Description

Elog viewer for Gentoo

Added to portage

2025-12-08

firefox-bin - 146.0-r1
Ebuild name:

www-client/firefox-bin-146.0-r1

Description

Firefox Web Browser

Added to portage

2025-12-08

fsautocomplete - 0.82.0
Ebuild name:

dev-dotnet/fsautocomplete-0.82.0

Description

F language server using the Language Server Protocol

Added to portage

2025-12-08

gcc - 16.0.0_p20251207
Ebuild name:

sys-devel/gcc-16.0.0_p20251207

Description

The GNU Compiler Collection

Added to portage

2025-12-08

gmpy2 - 2.3.0_alpha3
Ebuild name:

dev-python/gmpy2-2.3.0_alpha3

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2025-12-08

guildmaster - 0_pre20250712
Ebuild name:

dev-build/guildmaster-0_pre20250712

Description

FIFO-like jobserver node via CUSE

Added to portage

2025-12-08

httpx-socks - 0.11.0
Ebuild name:

dev-python/httpx-socks-0.11.0

Description

Proxy (HTTP, SOCKS) transports for httpx

Added to portage

2025-12-08

incus - 6.19.1
Ebuild name:

app-containers/incus-6.19.1

Description

Modern, secure and powerful system container and virtual machine manage

Added to portage

2025-12-08

jitterentropy - 3.6.3
Ebuild name:

app-crypt/jitterentropy-3.6.3

Description

Hardware RNG based on CPU timing jitter

Added to portage

2025-12-08

koleo-cli - 0.2.137.24.2
Ebuild name:

app-misc/koleo-cli-0.2.137.24.2

Description

A simple CLI for koleo.pl railway planner

Added to portage

2025-12-08

libdrm - 2.4.130
Ebuild name:

x11-libs/libdrm-2.4.130

Description

X.Org libdrm library

Added to portage

2025-12-08

libinput - 1.30.1
Ebuild name:

dev-libs/libinput-1.30.1

Description

Library to handle input devices in Wayland

Added to portage

2025-12-08

libtmux - 0.52.1
Ebuild name:

dev-python/libtmux-0.52.1

Description

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

Added to portage

2025-12-08

mistletoe - 1.5.1
Ebuild name:

dev-python/mistletoe-1.5.1

Description

A fast, extensible Markdown parser in pure Python

Added to portage

2025-12-08

nftables - 1.1.6
Ebuild name:

net-firewall/nftables-1.1.6

Description

Linux kernel firewall, NAT and packet mangling tools

Added to portage

2025-12-08

pdns-recursor - 5.3.3
Ebuild name:

net-dns/pdns-recursor-5.3.3

Description

The PowerDNS Recursor

Added to portage

2025-12-08

pfuture - 1.10.3
Ebuild name:

app-emacs/pfuture-1.10.3

Description

Simple wrapper around asynchronous processes

Added to portage

2025-12-08

php-mode - 1.27.0
Ebuild name:

app-emacs/php-mode-1.27.0

Description

GNU Emacs major mode for editing PHP code

Added to portage

2025-12-08

pymdown-extensions - 10.18
Ebuild name:

dev-python/pymdown-extensions-10.18

Description

Extensions for Python Markdown

Added to portage

2025-12-08

pypdf - 6.4.1
Ebuild name:

dev-python/pypdf-6.4.1

Description

Python library to work with PDF files

Added to portage

2025-12-08

pyzstd - 0.19.0
Ebuild name:

dev-python/pyzstd-0.19.0

Description

Support for Zstandard (zstd) compression

Added to portage

2025-12-08

racket-mode - 1_p20251107
Ebuild name:

app-emacs/racket-mode-1_p20251107

Description

Emacs modes for Racket edit, REPL, check-syntax, debug, profile,

Added to portage

2025-12-08

rsyslog - 8.2512.0
Ebuild name:

app-admin/rsyslog-8.2512.0

Description

An enhanced multi-threaded syslogd with database support and more

Added to portage

2025-12-08

spawn - 25.0.0-r4
Ebuild name:

dev-ada/spawn-25.0.0-r4

Description

Simple API to spawn processes

Added to portage

2025-12-08

xterm - 404
Ebuild name:

x11-terms/xterm-404

Description

Terminal Emulator for X Windows

Added to portage

2025-12-08

xvfbwrapper - 0.2.16
Ebuild name:

dev-python/xvfbwrapper-0.2.16

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2025-12-08

yt-dlp - 2025.12.08
Ebuild name:

net-misc/yt-dlp-2025.12.08

Description

youtube-dl fork with additional features and fixes

Added to portage

2025-12-08

yt-dlp-ejs - 0.3.2
Ebuild name:

dev-python/yt-dlp-ejs-0.3.2

Description

External JavaScript for yt-dlp supporting many runtimes

Added to portage

2025-12-08

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