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:

83461

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-02-27
aflplusplus - 4.35c
Ebuild name:

app-forensics/aflplusplus-4.35c

Description

Fork of AFL, the popular compile-time instrumentation fuzzer

Added to portage

2026-02-27

array-api-compat - 1.14.0
Ebuild name:

dev-python/array-api-compat-1.14.0

Description

Array API standard compatibility wrapper over NumPy and others

Added to portage

2026-02-27

awscli - 1.44.48
Ebuild name:

app-admin/awscli-1.44.48

Description

Universal Command Line Environment for AWS

Added to portage

2026-02-27

boto3 - 1.42.58
Ebuild name:

dev-python/boto3-1.42.58

Description

The AWS SDK for Python

Added to portage

2026-02-27

botocore - 1.42.58
Ebuild name:

dev-python/botocore-1.42.58

Description

Low-level, data-driven core of boto 3

Added to portage

2026-02-27

castxml - 0.7.0
Ebuild name:

dev-libs/castxml-0.7.0

Description

C-family abstract syntax tree XML output tool

Added to portage

2026-02-27

chrome-binary-plugins - 146.0.7680.31_beta
Ebuild name:

www-plugins/chrome-binary-plugins-146.0.7680.31_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-02-27

chromium - 146.0.7680.31
Ebuild name:

www-client/chromium-146.0.7680.31

Description

Open-source version of Google Chrome web browser

Added to portage

2026-02-27

duckdb - 1.4.4
Ebuild name:

dev-db/duckdb-1.4.4

Description

high-performance analytical database system

Added to portage

2026-02-27

element-desktop-bin - 1.12.11
Ebuild name:

net-im/element-desktop-bin-1.12.11

Description

A glossy Matrix collaboration client for desktop (binary package

Added to portage

2026-02-27

file - 5.47
Ebuild name:

sys-apps/file-5.47

Description

Identify a file's format by scanning binary data for patterns

Added to portage

2026-02-27

framework-tool-tui - 0.8.0
Ebuild name:

app-laptop/framework-tool-tui-0.8.0

Description

TUI for controlling and monitoring Framework Computers hardware

Added to portage

2026-02-27

freerdp - 3.23.0
Ebuild name:

net-misc/freerdp-3.23.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-02-27

gawk - 5.4.0-r1
Ebuild name:

sys-apps/gawk-5.4.0-r1

Description

GNU awk pattern-matching language

Added to portage

2026-02-27

google-chrome-beta - 146.0.7680.31
Ebuild name:

www-client/google-chrome-beta-146.0.7680.31

Description

The web browser from Google

Added to portage

2026-02-27

gopls - 0.21.1
Ebuild name:

dev-go/gopls-0.21.1

Description

Added to portage

2026-02-27

heroic-bin - 2.20.1
Ebuild name:

games-util/heroic-bin-2.20.1

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-02-27

kafka-bin - 4.2.0
Ebuild name:

net-misc/kafka-bin-4.2.0

Description

A high-throughput distributed messaging system

Added to portage

2026-02-27

linux-firmware - 20260221
Ebuild name:

sys-kernel/linux-firmware-20260221

Description

Linux firmware files

Added to portage

2026-02-27

lutris - 0.5.22
Ebuild name:

games-util/lutris-0.5.22

Description

An open source gaming platform for GNU/Linux

Added to portage

2026-02-27

microsoft-edge - 145.0.3800.82
Ebuild name:

www-client/microsoft-edge-145.0.3800.82

Description

The web browser from Microsoft

Added to portage

2026-02-27

mu-cite - 8.1_p202011031127
Ebuild name:

app-emacs/mu-cite-8.1_p202011031127

Description

Message citation utilities for emacsen

Added to portage

2026-02-27

ngtcp2 - 1.21.0
Ebuild name:

net-libs/ngtcp2-1.21.0

Description

Implementation of the IETF QUIC Protocol

Added to portage

2026-02-27

openapi-schema-validator - 0.7.3
Ebuild name:

dev-python/openapi-schema-validator-0.7.3

Description

OpenAPI schema validation for Python

Added to portage

2026-02-27

openapi-schema-validator - 0.8.0
Ebuild name:

dev-python/openapi-schema-validator-0.8.0

Description

OpenAPI schema validation for Python

Added to portage

2026-02-27

opera - 128.0.5807.25
Ebuild name:

www-client/opera-128.0.5807.25

Description

A fast and secure web browser

Added to portage

2026-02-27

phonenumbers - 9.0.25
Ebuild name:

dev-python/phonenumbers-9.0.25

Description

Python port of Google's libphonenumber

Added to portage

2026-02-27

postgresql - 14.22
Ebuild name:

dev-db/postgresql-14.22

Description

PostgreSQL RDBMS

Added to portage

2026-02-27

postgresql - 15.17
Ebuild name:

dev-db/postgresql-15.17

Description

PostgreSQL RDBMS

Added to portage

2026-02-27

postgresql - 16.13
Ebuild name:

dev-db/postgresql-16.13

Description

PostgreSQL RDBMS

Added to portage

2026-02-27

postgresql - 17.9
Ebuild name:

dev-db/postgresql-17.9

Description

PostgreSQL RDBMS

Added to portage

2026-02-27

postgresql - 18.3
Ebuild name:

dev-db/postgresql-18.3

Description

PostgreSQL RDBMS

Added to portage

2026-02-27

protobuf - 7.34.0
Ebuild name:

dev-python/protobuf-7.34.0

Description

Google's Protocol Buffers - Python bindings

Added to portage

2026-02-27

python-discovery - 1.1.0
Ebuild name:

dev-python/python-discovery-1.1.0

Description

Python interpreter discovery

Added to portage

2026-02-27

rssguard - 5.0.0
Ebuild name:

net-news/rssguard-5.0.0

Description

Simple (yet powerful) news feed reader

Added to portage

2026-02-27

ruff - 0.15.4
Ebuild name:

dev-util/ruff-0.15.4

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-02-27

scikit-build-core - 0.12.1
Ebuild name:

dev-python/scikit-build-core-0.12.1

Description

Build backend for CMake based projects

Added to portage

2026-02-27

signal-desktop-bin - 8.0.0
Ebuild name:

net-im/signal-desktop-bin-8.0.0

Description

Allows you to send and receive messages of Signal Messenger on your

Added to portage

2026-02-27

synapse - 1.148.0
Ebuild name:

net-im/synapse-1.148.0

Description

Reference implementation of Matrix homeserver

Added to portage

2026-02-27

tempest - 46.1.1
Ebuild name:

dev-python/tempest-46.1.1

Description

OpenStack Integration Testing

Added to portage

2026-02-27

tkcvs - 9.3.3
Ebuild name:

dev-vcs/tkcvs-9.3.3

Description

Tcl/Tk-based graphical interface to CVS with Subversion support

Added to portage

2026-02-27

tkdiff - 6.0
Ebuild name:

dev-util/tkdiff-6.0

Description

Graphical front end to the diff program

Added to portage

2026-02-27

ttl - 0.19.0
Ebuild name:

net-analyzer/ttl-0.19.0

Description

Modern traceroute/mtr-style TUI with hop stats and optional ASN/geo enrichm

Added to portage

2026-02-27

u-boot-tools - 2024.01-r3
Ebuild name:

dev-embedded/u-boot-tools-2024.01-r3

Description

utilities for working with Das U-Boot

Added to portage

2026-02-27

u-boot-tools - 2025.01-r3
Ebuild name:

dev-embedded/u-boot-tools-2025.01-r3

Description

utilities for working with Das U-Boot

Added to portage

2026-02-27

virtualenv - 21.0.0
Ebuild name:

dev-python/virtualenv-21.0.0

Description

Virtual Python Environment builder

Added to portage

2026-02-27

xvfbwrapper - 0.2.21
Ebuild name:

dev-python/xvfbwrapper-0.2.21

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-02-27

zfs - 2.3.6
Ebuild name:

sys-fs/zfs-2.3.6

Description

Userland utilities for ZFS Linux kernel module

Added to portage

2026-02-27

zfs - 2.4.1
Ebuild name:

sys-fs/zfs-2.4.1

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2026-02-27

zfs-kmod - 2.3.6
Ebuild name:

sys-fs/zfs-kmod-2.3.6

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2026-02-27

2026-02-26
ansible-compat - 25.12.1
Ebuild name:

dev-python/ansible-compat-25.12.1

Description

Contains functions that facilitate working with various versions

Added to portage

2026-02-26

awscli - 1.44.47
Ebuild name:

app-admin/awscli-1.44.47

Description

Universal Command Line Environment for AWS

Added to portage

2026-02-26

bandit - 1.9.4
Ebuild name:

dev-python/bandit-1.9.4

Description

A security linter from OpenStack Security

Added to portage

2026-02-26

boto3 - 1.42.57
Ebuild name:

dev-python/boto3-1.42.57

Description

The AWS SDK for Python

Added to portage

2026-02-26

botocore - 1.42.57
Ebuild name:

dev-python/botocore-1.42.57

Description

Low-level, data-driven core of boto 3

Added to portage

2026-02-26

ckb - 0.6.1-r1
Ebuild name:

app-misc/ckb-0.6.1-r1

Description

Corsair K65/K70/K95 Driver

Added to portage

2026-02-26

ckb - 0.6.2-r1
Ebuild name:

app-misc/ckb-0.6.2-r1

Description

Corsair K65/K70/K95 Driver

Added to portage

2026-02-26

clang - 22.1.0-r2
Ebuild name:

llvm-core/clang-22.1.0-r2

Description

C language family frontend for LLVM

Added to portage

2026-02-26

cli11 - 2.6.2
Ebuild name:

dev-cpp/cli11-2.6.2

Description

Command line parser for C++11

Added to portage

2026-02-26

electrum-ecc - 0.0.7
Ebuild name:

dev-python/electrum-ecc-0.0.7

Description

Pure python ctypes wrapper for libsecp256k1

Added to portage

2026-02-26

fakeredis - 2.34.1
Ebuild name:

dev-python/fakeredis-2.34.1

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-02-26

freeorion - 0.5.1.2
Ebuild name:

games-strategy/freeorion-0.5.1.2

Description

Free turn-based space empire and galactic conquest game

Added to portage

2026-02-26

gfxreconstruct - 1.4.341.0
Ebuild name:

dev-debug/gfxreconstruct-1.4.341.0

Description

Graphics API Capture and Replay Tools

Added to portage

2026-02-26

install-xattr - 0.12
Ebuild name:

sys-apps/install-xattr-0.12

Description

Wrapper to coreutils install to preserve Filesystem Extended Attributes

Added to portage

2026-02-26

leancrypto - 1.6.0-r3
Ebuild name:

dev-libs/leancrypto-1.6.0-r3

Description

Lean cryptographic library usable for bare-metal environments

Added to portage

2026-02-26

libva-intel-media-driver - 26.1.2
Ebuild name:

media-libs/libva-intel-media-driver-26.1.2

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-02-26

llvm - 22.1.0-r2
Ebuild name:

llvm-core/llvm-22.1.0-r2

Description

Low Level Virtual Machine

Added to portage

2026-02-26

mesa - 25.3.6
Ebuild name:

media-libs/mesa-25.3.6

Description

OpenGL-like graphic library for Linux

Added to portage

2026-02-26

mesa - 26.0.1
Ebuild name:

media-libs/mesa-26.0.1

Description

OpenGL-like graphic library for Linux

Added to portage

2026-02-26

mesa_clc - 25.3.6
Ebuild name:

dev-util/mesa_clc-25.3.6

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-02-26

mesa_clc - 26.0.1
Ebuild name:

dev-util/mesa_clc-26.0.1

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-02-26

nanobind - 2.12.0
Ebuild name:

dev-python/nanobind-2.12.0

Description

Tiny and efficient C++/Python bindings

Added to portage

2026-02-26

nbxmpp - 7.1.0
Ebuild name:

dev-python/nbxmpp-7.1.0

Description

Python library to use Jabber/XMPP networks in a non-blocking way

Added to portage

2026-02-26

pallets-sphinx-themes - 2.5.0
Ebuild name:

dev-python/pallets-sphinx-themes-2.5.0

Description

Sphinx themes for Pallets and related projects

Added to portage

2026-02-26

picard - 3.0.0_alpha3
Ebuild name:

media-sound/picard-3.0.0_alpha3

Description

Cross-platform music tagger

Added to portage

2026-02-26

pytest-check - 2.7.0
Ebuild name:

dev-python/pytest-check-2.7.0

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-02-26

python-ironicclient - 6.0.0
Ebuild name:

dev-python/python-ironicclient-6.0.0

Description

Python bindings for the Ironic API

Added to portage

2026-02-26

python-neutronclient - 11.8.0
Ebuild name:

dev-python/python-neutronclient-11.8.0

Description

A client for the OpenStack Quantum API

Added to portage

2026-02-26

python-swiftclient - 4.10.0
Ebuild name:

dev-python/python-swiftclient-4.10.0

Description

Python bindings to the OpenStack Object Storage API

Added to portage

2026-02-26

qtox - 1.18.4
Ebuild name:

net-im/qtox-1.18.4

Description

Instant messaging client using the encrypted p2p Tox protocol

Added to portage

2026-02-26

redis - 7.2.1
Ebuild name:

dev-python/redis-7.2.1

Description

Python client for Redis key-value store

Added to portage

2026-02-26

sphinx-autodoc-typehints - 3.8.0
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.8.0

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-02-26

stripe - 14.4.0
Ebuild name:

dev-python/stripe-14.4.0

Description

Stripe Python bindings

Added to portage

2026-02-26

tempest - 46.1.0
Ebuild name:

dev-python/tempest-46.1.0

Description

OpenStack Integration Testing

Added to portage

2026-02-26

tox - 0.2.22
Ebuild name:

net-libs/tox-0.2.22

Description

Encrypted P2P, messaging, and audio/video calling platform

Added to portage

2026-02-26

tox - 4.46.3
Ebuild name:

dev-python/tox-4.46.3

Description

virtualenv-based automation of test activities

Added to portage

2026-02-26

toxic - 0.16.2
Ebuild name:

net-im/toxic-0.16.2

Description

A curses-based client for Tox

Added to portage

2026-02-26

translate-toolkit - 3.19.2
Ebuild name:

dev-python/translate-toolkit-3.19.2

Description

Toolkit to convert between many translation formats

Added to portage

2026-02-26

virtualenv - 20.39.1
Ebuild name:

dev-python/virtualenv-20.39.1

Description

Virtual Python Environment builder

Added to portage

2026-02-26

xkbcomp - 1.5.0-r2
Ebuild name:

x11-apps/xkbcomp-1.5.0-r2

Description

XKB keyboard description compiler

Added to portage

2026-02-26

xkeyboard-config - 2.47
Ebuild name:

x11-misc/xkeyboard-config-2.47

Description

X keyboard configuration database

Added to portage

2026-02-26

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