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:

87452

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-08-05
aurorae - 6.7.4
Ebuild name:

kde-plasma/aurorae-6.7.4

Description

Themeable window decoration for KWin

Added to portage

2026-08-05

bluedevil - 6.7.4
Ebuild name:

kde-plasma/bluedevil-6.7.4

Description

Bluetooth stack for KDE Plasma

Added to portage

2026-08-05

breeze - 6.7.4
Ebuild name:

kde-plasma/breeze-6.7.4

Description

Breeze visual style for the Plasma desktop

Added to portage

2026-08-05

breeze-grub - 6.7.4
Ebuild name:

kde-plasma/breeze-grub-6.7.4

Description

Breeze theme for GRUB

Added to portage

2026-08-05

breeze-gtk - 6.7.4
Ebuild name:

kde-plasma/breeze-gtk-6.7.4

Description

Official GTK+ port of Plasma's Breeze widget style

Added to portage

2026-08-05

breeze-plymouth - 6.7.4
Ebuild name:

kde-plasma/breeze-plymouth-6.7.4

Description

Breeze theme for Plymouth

Added to portage

2026-08-05

discover - 6.7.4
Ebuild name:

kde-plasma/discover-6.7.4

Description

KDE Plasma resources management GUI

Added to portage

2026-08-05

drkonqi - 6.7.4
Ebuild name:

kde-plasma/drkonqi-6.7.4

Description

Plasma crash handler, gives the user feedback if a program crashed

Added to portage

2026-08-05

flatpak-kcm - 6.7.4
Ebuild name:

kde-plasma/flatpak-kcm-6.7.4

Description

Flatpak Permissions Management KCM

Added to portage

2026-08-05

kactivitymanagerd - 6.7.4
Ebuild name:

kde-plasma/kactivitymanagerd-6.7.4

Description

System service to manage user's activities, track the usage patt

Added to portage

2026-08-05

kde-cli-tools - 6.7.4
Ebuild name:

kde-plasma/kde-cli-tools-6.7.4

Description

Tools based on KDE Frameworks 6 to better interact with the system

Added to portage

2026-08-05

kde-cli-tools-common - 6.7.4
Ebuild name:

kde-plasma/kde-cli-tools-common-6.7.4

Description

Common files for

Added to portage

2026-08-05

kde-gtk-config - 6.7.4
Ebuild name:

kde-plasma/kde-gtk-config-6.7.4

Description

Syncs KDE Plasma theme settings to GTK applications

Added to portage

2026-08-05

kdecoration - 6.7.4
Ebuild name:

kde-plasma/kdecoration-6.7.4

Description

Plugin based library to create window decorations

Added to portage

2026-08-05

kdeplasma-addons - 6.7.4
Ebuild name:

kde-plasma/kdeplasma-addons-6.7.4

Description

Extra Plasma applets and engines

Added to portage

2026-08-05

kdesu-gui - 6.7.4
Ebuild name:

kde-plasma/kdesu-gui-6.7.4

Description

Graphical frontend for KDE Frameworks' kdesu

Added to portage

2026-08-05

keditfiletype - 6.7.4
Ebuild name:

kde-plasma/keditfiletype-6.7.4

Description

File Type Editor

Added to portage

2026-08-05

kgamma - 6.7.4
Ebuild name:

kde-plasma/kgamma-6.7.4

Description

Screen gamma values kcontrol module

Added to portage

2026-08-05

kglobalacceld - 6.7.4
Ebuild name:

kde-plasma/kglobalacceld-6.7.4

Description

Daemon providing Global Keyboard Shortcut (Accelerator) functionalit

Added to portage

2026-08-05

kinfocenter - 6.7.4
Ebuild name:

kde-plasma/kinfocenter-6.7.4

Description

Utility providing information about the computer hardware

Added to portage

2026-08-05

kmenuedit - 6.7.4
Ebuild name:

kde-plasma/kmenuedit-6.7.4

Description

KDE Plasma menu editor

Added to portage

2026-08-05

knighttime - 6.7.4
Ebuild name:

kde-plasma/knighttime-6.7.4

Description

Helpers for scheduling the dark-light cycle

Added to portage

2026-08-05

kpipewire - 6.7.4
Ebuild name:

kde-plasma/kpipewire-6.7.4

Description

Components relating to Flatpak pipewire use in Plasma

Added to portage

2026-08-05

krdp - 6.7.4
Ebuild name:

kde-plasma/krdp-6.7.4

Description

Library and examples for creating an RDP server

Added to portage

2026-08-05

kscreen - 6.7.4
Ebuild name:

kde-plasma/kscreen-6.7.4

Description

KDE Plasma screen management

Added to portage

2026-08-05

kscreenlocker - 6.7.4
Ebuild name:

kde-plasma/kscreenlocker-6.7.4

Description

Library and components for secure lock screen architecture

Added to portage

2026-08-05

ksshaskpass - 6.7.4
Ebuild name:

kde-plasma/ksshaskpass-6.7.4

Description

Implementation of ssh-askpass with KDE Wallet integration

Added to portage

2026-08-05

ksystemstats - 6.7.4
Ebuild name:

kde-plasma/ksystemstats-6.7.4

Description

Plugin-based system monitoring daemon

Added to portage

2026-08-05

kwallet-pam - 6.7.4
Ebuild name:

kde-plasma/kwallet-pam-6.7.4

Description

PAM module to not enter KWallet password again after login

Added to portage

2026-08-05

kwayland - 6.7.4
Ebuild name:

kde-plasma/kwayland-6.7.4

Description

Qt-style API to interact with the wayland-client API

Added to portage

2026-08-05

kwin - 6.7.4
Ebuild name:

kde-plasma/kwin-6.7.4

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2026-08-05

kwin-x11 - 6.7.4
Ebuild name:

kde-plasma/kwin-x11-6.7.4

Description

Flexible, composited X window manager

Added to portage

2026-08-05

kwrited - 6.7.4
Ebuild name:

kde-plasma/kwrited-6.7.4

Description

KDE Plasma daemon listening for wall and write messages

Added to portage

2026-08-05

layer-shell-qt - 6.7.4
Ebuild name:

kde-plasma/layer-shell-qt-6.7.4

Description

Qt component to allow applications make use of Wayland wl-layer-she

Added to portage

2026-08-05

libkscreen - 6.7.4
Ebuild name:

kde-plasma/libkscreen-6.7.4

Description

Plasma screen management library

Added to portage

2026-08-05

libksysguard - 6.7.4
Ebuild name:

kde-plasma/libksysguard-6.7.4

Description

Task management and system monitoring library

Added to portage

2026-08-05

libplasma - 6.7.4
Ebuild name:

kde-plasma/libplasma-6.7.4

Description

Plasma library and runtime components based upon KF6 and Qt6

Added to portage

2026-08-05

milou - 6.7.4
Ebuild name:

kde-plasma/milou-6.7.4

Description

Dedicated search application built on top of Baloo

Added to portage

2026-08-05

ocean-sound-theme - 6.7.4
Ebuild name:

kde-plasma/ocean-sound-theme-6.7.4

Description

Ocean Sound Theme for Plasma

Added to portage

2026-08-05

oxygen - 6.7.4
Ebuild name:

kde-plasma/oxygen-6.7.4

Description

Oxygen visual style for the Plasma desktop

Added to portage

2026-08-05

oxygen-sounds - 6.7.4
Ebuild name:

kde-plasma/oxygen-sounds-6.7.4

Description

Oxygen sound theme for the Plasma desktop

Added to portage

2026-08-05

plasma-activities - 6.7.4
Ebuild name:

kde-plasma/plasma-activities-6.7.4

Description

Core components for KDE's Activities System

Added to portage

2026-08-05

plasma-activities-stats - 6.7.4
Ebuild name:

kde-plasma/plasma-activities-stats-6.7.4

Description

Library for accessing usage data collected by the activiti

Added to portage

2026-08-05

plasma-bigscreen - 6.7.4
Ebuild name:

kde-plasma/plasma-bigscreen-6.7.4

Description

Plasma shell for TVs

Added to portage

2026-08-05

plasma-browser-integration - 6.7.4
Ebuild name:

kde-plasma/plasma-browser-integration-6.7.4

Description

Integrate Chrome/Firefox better into Plasma through bro

Added to portage

2026-08-05

plasma-desktop - 6.7.4
Ebuild name:

kde-plasma/plasma-desktop-6.7.4

Description

KDE Plasma desktop

Added to portage

2026-08-05

python - 0.3.15.0_rc1
Ebuild name:

dev-lang/python-0.3.15.0_rc1

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-08-05

python - 3.15.0_rc1
Ebuild name:

dev-lang/python-3.15.0_rc1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-08-05

python-tests - 0.3.15.0_rc1
Ebuild name:

dev-python/python-tests-0.3.15.0_rc1

Description

Test modules from dev-lang/python

Added to portage

2026-08-05

python-tests - 3.15.0_rc1
Ebuild name:

dev-python/python-tests-3.15.0_rc1

Description

Test modules from dev-lang/python

Added to portage

2026-08-05

2026-08-04
FBGEMM - 1.7.0-r1
Ebuild name:

sci-ml/FBGEMM-1.7.0-r1

Description

Facebook GEneral Matrix Multiplication

Added to portage

2026-08-04

alsa-scarlett-gui - 1.0_beta9
Ebuild name:

media-sound/alsa-scarlett-gui-1.0_beta9

Description

A UI for Focusrite Scarlett and Clarett audio interfaces

Added to portage

2026-08-04

awscli - 1.45.63
Ebuild name:

app-admin/awscli-1.45.63

Description

Universal Command Line Environment for AWS

Added to portage

2026-08-04

boto3 - 1.43.63
Ebuild name:

dev-python/boto3-1.43.63

Description

The AWS SDK for Python

Added to portage

2026-08-04

botocore - 1.43.63
Ebuild name:

dev-python/botocore-1.43.63

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-04

cffi - 2.1.1
Ebuild name:

dev-python/cffi-2.1.1

Description

Foreign Function Interface for Python calling C code

Added to portage

2026-08-04

etcd - 3.6.14
Ebuild name:

dev-db/etcd-3.6.14

Description

Highly-available key value store for shared configuration and service discovery

Added to portage

2026-08-04

ffmpeg - 9.0
Ebuild name:

media-video/ffmpeg-9.0

Description

Complete solution to record/convert/stream audio and video

Added to portage

2026-08-04

ffmpeg-compat - 8.1.2
Ebuild name:

media-video/ffmpeg-compat-8.1.2

Description

Complete solution to record/convert/stream audio and video

Added to portage

2026-08-04

firefox-bin - 153.0.3
Ebuild name:

www-client/firefox-bin-153.0.3

Description

Firefox Web Browser

Added to portage

2026-08-04

flux - 2.8.3-r2
Ebuild name:

sys-cluster/flux-2.8.3-r2

Description

Flux is a tool for keeping Kubernetes clusters in sync

Added to portage

2026-08-04

flux - 2.9.3
Ebuild name:

sys-cluster/flux-2.9.3

Description

Flux is a tool for keeping Kubernetes clusters in sync

Added to portage

2026-08-04

fotocx - 26.7
Ebuild name:

media-gfx/fotocx-26.7

Description

Program for improving image files made with a digital camera

Added to portage

2026-08-04

framework-tool-tui - 0.8.5
Ebuild name:

app-laptop/framework-tool-tui-0.8.5

Description

TUI for controlling and monitoring Framework Computers hardware

Added to portage

2026-08-04

gagit - 1
Ebuild name:

dev-vcs/gagit-1

Description

Gentoo AGit workflow tool

Added to portage

2026-08-04

gitolite-gentoo - 3.6.14.1
Ebuild name:

dev-vcs/gitolite-gentoo-3.6.14.1

Description

Highly flexible server for git directory version tracker, Gentoo f

Added to portage

2026-08-04

h2 - 4.4.1
Ebuild name:

dev-python/h2-4.4.1

Description

HTTP/2 State-Machine based protocol implementation

Added to portage

2026-08-04

ipython - 9.16.1
Ebuild name:

dev-python/ipython-9.16.1

Description

Advanced interactive shell for Python

Added to portage

2026-08-04

kubelogin - 1.36.0-r2
Ebuild name:

sys-cluster/kubelogin-1.36.0-r2

Description

kubectl plugin for Kubernetes OpenID Connect authentication

Added to portage

2026-08-04

kubelogin - 1.36.3
Ebuild name:

sys-cluster/kubelogin-1.36.3

Description

kubectl plugin for Kubernetes OpenID Connect authentication

Added to portage

2026-08-04

kubeseal - 0.38.4
Ebuild name:

sys-cluster/kubeseal-0.38.4

Description

Client-side utility for one-way encrypted secrets in kubernetes

Added to portage

2026-08-04

libsdl3 - 3.4.14
Ebuild name:

media-libs/libsdl3-3.4.14

Description

Simple Direct Media Layer

Added to portage

2026-08-04

libtorrent - 0.16.19
Ebuild name:

net-libs/libtorrent-0.16.19

Description

BitTorrent library written in C++ for *nix

Added to portage

2026-08-04

mirrorselect - 9998
Ebuild name:

app-portage/mirrorselect-9998

Description

Tool to help select distfiles mirrors for Gentoo

Added to portage

2026-08-04

nvidia-drivers - 595.44.13
Ebuild name:

x11-drivers/nvidia-drivers-595.44.13

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-08-04

nvidia-drivers - 595.91.07
Ebuild name:

x11-drivers/nvidia-drivers-595.91.07

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-08-04

openstacksdk - 4.18.0
Ebuild name:

dev-python/openstacksdk-4.18.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-08-04

os-prober - 1.85
Ebuild name:

sys-boot/os-prober-1.85

Description

Utility to detect other OSs on a set of drives

Added to portage

2026-08-04

pyproject-fmt - 2.27.0
Ebuild name:

dev-python/pyproject-fmt-2.27.0

Description

Format your pyproject.toml file

Added to portage

2026-08-04

rtorrent - 0.16.19
Ebuild name:

net-p2p/rtorrent-0.16.19

Description

BitTorrent Client using libtorrent

Added to portage

2026-08-04

rutorrent - 5.3.11
Ebuild name:

www-apps/rutorrent-5.3.11

Description

ruTorrent is a front-end for the popular Bittorrent client rTorrent

Added to portage

2026-08-04

sabctools - 9.6.3
Ebuild name:

dev-python/sabctools-9.6.3

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-08-04

shtab - 1.9.3
Ebuild name:

dev-python/shtab-1.9.3

Description

Automagic shell tab completion for Python CLI applications

Added to portage

2026-08-04

sphinx-autodoc-typehints - 3.13.2
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.2

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-08-04

traitlets - 5.16.1
Ebuild name:

dev-python/traitlets-5.16.1

Description

A configuration system for Python applications

Added to portage

2026-08-04

typer - 0.27.1
Ebuild name:

dev-python/typer-0.27.1

Description

Build great CLIs. Easy to code. Based on Python type hints

Added to portage

2026-08-04

unreal-tournament - 469e
Ebuild name:

games-fps/unreal-tournament-469e

Description

Modern build of the Unreal Tournament (99) engine

Added to portage

2026-08-04

unreal-tournament-data - 436_p4
Ebuild name:

games-fps/unreal-tournament-data-436_p4

Description

Data files for Unreal Tournament (99)

Added to portage

2026-08-04

uwsm - 0.26.6
Ebuild name:

gui-apps/uwsm-0.26.6

Description

Universal Wayland Session Manager

Added to portage

2026-08-04

virtctl - 1.9.0
Ebuild name:

sys-cluster/virtctl-1.9.0

Description

Control virtual machine related operations on your kubernetes cluster

Added to portage

2026-08-04

xfce4-settings - 4.21.3
Ebuild name:

xfce-base/xfce4-settings-4.21.3

Description

Configuration system for the Xfce desktop environment

Added to portage

2026-08-04

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