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:

85185

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-05-17
fetchmail - 6.6.4
Ebuild name:

net-mail/fetchmail-6.6.4

Description

the legendary remote-mail retrieval and forwarding utility

Added to portage

2026-05-17

gcc - 16.1.1_p20260516
Ebuild name:

sys-devel/gcc-16.1.1_p20260516

Description

The GNU Compiler Collection

Added to portage

2026-05-17

heroic-bin - 2.22.0
Ebuild name:

games-util/heroic-bin-2.22.0

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-05-17

intellij-idea - 2026.1.2
Ebuild name:

dev-util/intellij-idea-2026.1.2

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-05-17

libei - 1.6.0
Ebuild name:

dev-libs/libei-1.6.0

Description

Library for Emulated Input, primarily aimed at the Wayland stack

Added to portage

2026-05-17

libinput - 1.31.2
Ebuild name:

dev-libs/libinput-1.31.2

Description

Library to handle input devices in Wayland

Added to portage

2026-05-17

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

media-libs/libva-intel-media-driver-26.2.0

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-05-17

mgorny-dev-scripts - 73
Ebuild name:

app-portage/mgorny-dev-scripts-73

Description

Handy scripts for ebuild development and more

Added to portage

2026-05-17

nmap - 7.99
Ebuild name:

net-analyzer/nmap-7.99

Description

Network exploration tool and security / port scanner

Added to portage

2026-05-17

teamspeak-client - 6.0.0_beta4
Ebuild name:

media-sound/teamspeak-client-6.0.0_beta4

Description

A client software for quality voice communication via the

Added to portage

2026-05-17

vanilla-kernel - 6.18.9999
Ebuild name:

sys-kernel/vanilla-kernel-6.18.9999

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-17

vlc - 3.0.23-r1
Ebuild name:

media-video/vlc-3.0.23-r1

Description

Media player and framework with support for most multimedia files and str

Added to portage

2026-05-17

2026-05-16
awscli - 1.45.9
Ebuild name:

app-admin/awscli-1.45.9

Description

Universal Command Line Environment for AWS

Added to portage

2026-05-16

boto3 - 1.43.9
Ebuild name:

dev-python/boto3-1.43.9

Description

The AWS SDK for Python

Added to portage

2026-05-16

botocore - 1.43.9
Ebuild name:

dev-python/botocore-1.43.9

Description

Low-level, data-driven core of boto 3

Added to portage

2026-05-16

c-blosc2 - 3.0.3
Ebuild name:

dev-libs/c-blosc2-3.0.3

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-05-16

chromium - 150.0.7838.0
Ebuild name:

www-client/chromium-150.0.7838.0

Description

Open-source version of Google Chrome web browser

Added to portage

2026-05-16

dbus-fast - 4.2.5
Ebuild name:

dev-python/dbus-fast-4.2.5

Description

A faster version of dbus-next

Added to portage

2026-05-16

displaycal-py3 - 3.9.17-r1
Ebuild name:

media-gfx/displaycal-py3-3.9.17-r1

Description

Modernize the DisplayCAL code including Python 3 support

Added to portage

2026-05-16

dist-kernel - 5.10.256
Ebuild name:

virtual/dist-kernel-5.10.256

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-16

dist-kernel - 5.15.207
Ebuild name:

virtual/dist-kernel-5.15.207

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-16

dist-kernel - 6.1.173
Ebuild name:

virtual/dist-kernel-6.1.173

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-16

dist-kernel - 6.12.89
Ebuild name:

virtual/dist-kernel-6.12.89

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-16

dist-kernel - 6.18.31
Ebuild name:

virtual/dist-kernel-6.18.31

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-16

dist-kernel - 6.6.139
Ebuild name:

virtual/dist-kernel-6.6.139

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-16

dist-kernel - 7.0.8
Ebuild name:

virtual/dist-kernel-7.0.8

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-05-16

dropbox - 252.4.3485
Ebuild name:

net-misc/dropbox-252.4.3485

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2026-05-16

dump1090 - 11.0-r1
Ebuild name:

net-wireless/dump1090-11.0-r1

Description

Simple Mode S decoder for RTLSDR devices

Added to portage

2026-05-16

editres - 1.1.1
Ebuild name:

x11-apps/editres-1.1.1

Description

a dynamic resource editor for X Toolkit applications

Added to portage

2026-05-16

evisum - 2.0.9
Ebuild name:

sys-process/evisum-2.0.9

Description

System and process monitor written with EFL

Added to portage

2026-05-16

fatsort - 1.7.1
Ebuild name:

sys-fs/fatsort-1.7.1

Description

Sorts files on FAT16/32 partitions, ideal for basic audio players

Added to portage

2026-05-16

ffmpeg-chromium - 150
Ebuild name:

media-video/ffmpeg-chromium-150

Description

FFmpeg built specifically for codec support in Chromium-based brows

Added to portage

2026-05-16

filezilla - 3.70.5
Ebuild name:

net-ftp/filezilla-3.70.5

Description

FTP client with lots of useful features and an intuitive interface

Added to portage

2026-05-16

flatpak-builder - 1.4.8
Ebuild name:

dev-util/flatpak-builder-1.4.8

Description

Tool to build flatpaks from source

Added to portage

2026-05-16

freepg - 2.5.20
Ebuild name:

app-crypt/freepg-2.5.20

Description

Cross-distro GnuPG fork focused on OpenPGP compliance

Added to portage

2026-05-16

gcc - 13.4.1_p20260513
Ebuild name:

sys-devel/gcc-13.4.1_p20260513

Description

The GNU Compiler Collection

Added to portage

2026-05-16

gcc - 14.3.1_p20260514
Ebuild name:

sys-devel/gcc-14.3.1_p20260514

Description

The GNU Compiler Collection

Added to portage

2026-05-16

gcc - 15.2.1_p20260515
Ebuild name:

sys-devel/gcc-15.2.1_p20260515

Description

The GNU Compiler Collection

Added to portage

2026-05-16

gentoo-kernel - 5.10.256
Ebuild name:

sys-kernel/gentoo-kernel-5.10.256

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel - 5.15.207
Ebuild name:

sys-kernel/gentoo-kernel-5.15.207

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel - 6.1.173
Ebuild name:

sys-kernel/gentoo-kernel-6.1.173

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel - 6.12.89
Ebuild name:

sys-kernel/gentoo-kernel-6.12.89

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel - 6.18.31
Ebuild name:

sys-kernel/gentoo-kernel-6.18.31

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel - 6.6.139
Ebuild name:

sys-kernel/gentoo-kernel-6.6.139

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel - 7.0.8
Ebuild name:

sys-kernel/gentoo-kernel-7.0.8

Description

Linux kernel built with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel-bin - 5.10.256
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.256

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel-bin - 5.15.207
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.207

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel-bin - 6.1.173
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.173

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel-bin - 6.12.89
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.89

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel-bin - 6.18.31
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.31

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel-bin - 6.6.139
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.139

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-16

gentoo-kernel-bin - 7.0.8
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.0.8

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-05-16

glslang - 1.4.350.0
Ebuild name:

dev-util/glslang-1.4.350.0

Description

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

Added to portage

2026-05-16

google-auth - 2.53.0
Ebuild name:

dev-python/google-auth-2.53.0

Description

Google Authentication Library

Added to portage

2026-05-16

grilo-plugins - 0.3.18-r2
Ebuild name:

media-plugins/grilo-plugins-0.3.18-r2

Description

A collection of plugins for the Grilo framework

Added to portage

2026-05-16

iterable-io - 1.0.2
Ebuild name:

dev-python/iterable-io-1.0.2

Description

Adapt generators and other iterables to a file-like interface

Added to portage

2026-05-16

jaraco-functools - 4.5.0
Ebuild name:

dev-python/jaraco-functools-4.5.0

Description

Additional functions used by other projects by developer jaraco

Added to portage

2026-05-16

libiio - 0.26-r5
Ebuild name:

net-libs/libiio-0.26-r5

Description

Library for interfacing with IIO devices

Added to portage

2026-05-16

mac - 12.93
Ebuild name:

media-sound/mac-12.93

Description

Monkey's Audio Codecs

Added to portage

2026-05-16

magic-wormhole-mailbox-server - 0.8.0
Ebuild name:

dev-python/magic-wormhole-mailbox-server-0.8.0

Description

Mailbox server for magic-wormhole

Added to portage

2026-05-16

mesa - 26.0.7
Ebuild name:

media-libs/mesa-26.0.7

Description

OpenGL-like graphic library for Linux

Added to portage

2026-05-16

mesa_clc - 26.0.7
Ebuild name:

dev-util/mesa_clc-26.0.7

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-05-16

microsoft-edge - 148.0.3967.70
Ebuild name:

www-client/microsoft-edge-148.0.3967.70

Description

The web browser from Microsoft

Added to portage

2026-05-16

multiple-cursors - 1.5.0
Ebuild name:

app-emacs/multiple-cursors-1.5.0

Description

Multiple cursors for Emacs

Added to portage

2026-05-16

nanovna-saver - 0.6.8-r2
Ebuild name:

net-wireless/nanovna-saver-0.6.8-r2

Description

tool for reading, displaying and saving data from the NanoVNA

Added to portage

2026-05-16

nanovna-saver - 0.7.3-r1
Ebuild name:

net-wireless/nanovna-saver-0.7.3-r1

Description

tool for reading, displaying and saving data from the NanoVNA

Added to portage

2026-05-16

nss - 3.124
Ebuild name:

dev-libs/nss-3.124

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-05-16

numpy - 2.4.5
Ebuild name:

dev-python/numpy-2.4.5

Description

Fast array and numerical python library

Added to portage

2026-05-16

pf-sources - 7.0_p4
Ebuild name:

sys-kernel/pf-sources-7.0_p4

Description

Added to portage

2026-05-16

postfix-logwatch - 1.40.07
Ebuild name:

net-mail/postfix-logwatch-1.40.07

Description

A log analyzer for postfix

Added to portage

2026-05-16

qt5-sqlcipher - 1.1.0-r1
Ebuild name:

dev-db/qt5-sqlcipher-1.1.0-r1

Description

Qt SQL driver plugin for SQLCipher

Added to portage

2026-05-16

samba - 4.24.2
Ebuild name:

net-fs/samba-4.24.2

Description

Samba Suite Version 4

Added to portage

2026-05-16

shaderc - 2026.2
Ebuild name:

media-libs/shaderc-2026.2

Description

Collection of tools, libraries and tests for shader compilation

Added to portage

2026-05-16

slack - 4.50.121
Ebuild name:

net-im/slack-4.50.121

Description

Team collaboration tool

Added to portage

2026-05-16

soapysdr - 0.8.1-r3
Ebuild name:

net-wireless/soapysdr-0.8.1-r3

Description

vendor and platform neutral SDR support library

Added to portage

2026-05-16

spirv-headers - 1.4.350.0
Ebuild name:

dev-util/spirv-headers-1.4.350.0

Description

Machine-readable files for the SPIR-V Registry

Added to portage

2026-05-16

spirv-tools - 1.4.350.0
Ebuild name:

dev-util/spirv-tools-1.4.350.0

Description

Provides an API and commands for processing SPIR-V modules

Added to portage

2026-05-16

tifffile - 2026.5.15
Ebuild name:

dev-python/tifffile-2026.5.15

Description

Read and write TIFF files

Added to portage

2026-05-16

vanilla-kernel - 5.10.256
Ebuild name:

sys-kernel/vanilla-kernel-5.10.256

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-16

vanilla-kernel - 5.15.207
Ebuild name:

sys-kernel/vanilla-kernel-5.15.207

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-16

vanilla-kernel - 6.1.173
Ebuild name:

sys-kernel/vanilla-kernel-6.1.173

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-16

vanilla-kernel - 6.12.89
Ebuild name:

sys-kernel/vanilla-kernel-6.12.89

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-16

vanilla-kernel - 6.18.31
Ebuild name:

sys-kernel/vanilla-kernel-6.18.31

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-16

vanilla-kernel - 6.6.139
Ebuild name:

sys-kernel/vanilla-kernel-6.6.139

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-16

vanilla-kernel - 7.0.8
Ebuild name:

sys-kernel/vanilla-kernel-7.0.8

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-05-16

vivaldi - 7.9.3970.67
Ebuild name:

www-client/vivaldi-7.9.3970.67

Description

A browser for our friends

Added to portage

2026-05-16

vivaldi-snapshot - 8.0.4033.9
Ebuild name:

www-client/vivaldi-snapshot-8.0.4033.9

Description

A browser for our friends

Added to portage

2026-05-16

vulkan-headers - 1.4.350.0
Ebuild name:

dev-util/vulkan-headers-1.4.350.0

Description

Vulkan Header files and API registry

Added to portage

2026-05-16

vulkan-layers - 1.4.350.0
Ebuild name:

media-libs/vulkan-layers-1.4.350.0

Description

Vulkan Validation Layers

Added to portage

2026-05-16

vulkan-loader - 1.4.350.0
Ebuild name:

media-libs/vulkan-loader-1.4.350.0

Description

Vulkan Installable Client Driver (ICD) Loader

Added to portage

2026-05-16

vulkan-tools - 1.4.350.0
Ebuild name:

dev-util/vulkan-tools-1.4.350.0

Description

Official Vulkan Tools and Utilities for Windows, Linux, Android, an

Added to portage

2026-05-16

vulkan-utility-libraries - 1.4.350.0
Ebuild name:

dev-util/vulkan-utility-libraries-1.4.350.0

Description

Share code across various Vulkan repositories

Added to portage

2026-05-16

wine-staging - 11.9
Ebuild name:

app-emulation/wine-staging-11.9

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patch

Added to portage

2026-05-16

wine-vanilla - 11.9
Ebuild name:

app-emulation/wine-vanilla-11.9

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2026-05-16

zellij - 0.44.3
Ebuild name:

app-misc/zellij-0.44.3

Description

A terminal workspace with batteries included

Added to portage

2026-05-16

zen-sources - 7.0.8
Ebuild name:

sys-kernel/zen-sources-7.0.8

Description

The Zen Kernel Live Sources

Added to portage

2026-05-16

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