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:

82486

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-16
bpftune - 0.4_p2
Ebuild name:

app-admin/bpftune-0.4_p2

Description

BPF driven auto-tuning

Added to portage

2025-12-16

deno-bin - 2.6.1
Ebuild name:

dev-lang/deno-bin-2.6.1

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2025-12-16

dotnet-runtime-nugets - 10.0.1
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-10.0.1

Description

.NET runtime nugets

Added to portage

2025-12-16

dotnet-sdk-bin - 10.0.101
Ebuild name:

dev-dotnet/dotnet-sdk-bin-10.0.101

Description

.NET is a free, cross-platform, open-source developer platform

Added to portage

2025-12-16

gnatcoll-core - 26.0.0
Ebuild name:

dev-ada/gnatcoll-core-26.0.0

Description

GNAT Component Collection Core packages

Added to portage

2025-12-16

grub-themes-gentoo - 1.0-r2
Ebuild name:

sys-boot/grub-themes-gentoo-1.0-r2

Description

Grub2 Themes for Gentoo

Added to portage

2025-12-16

jre - 26
Ebuild name:

virtual/jre-26

Description

Virtual for Java Runtime Environment (JRE)

Added to portage

2025-12-16

kirigami - 6.21.0-r1
Ebuild name:

kde-frameworks/kirigami-6.21.0-r1

Description

Lightweight user interface framework for mobile and convergent ap

Added to portage

2025-12-16

kwin - 6.5.4-r1
Ebuild name:

kde-plasma/kwin-6.5.4-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2025-12-16

mailutils - 3.21
Ebuild name:

net-mail/mailutils-3.21

Description

A useful collection of mail servers, clients, and filters

Added to portage

2025-12-16

mediawiki - 1.39.16
Ebuild name:

www-apps/mediawiki-1.39.16

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2025-12-16

mediawiki - 1.43.6
Ebuild name:

www-apps/mediawiki-1.43.6

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2025-12-16

mediawiki - 1.44.3
Ebuild name:

www-apps/mediawiki-1.44.3

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2025-12-16

mediawiki - 1.45.1
Ebuild name:

www-apps/mediawiki-1.45.1

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2025-12-16

openjdk - 25.0.1_p8-r1
Ebuild name:

dev-java/openjdk-25.0.1_p8-r1

Description

Open source implementation of the Java programming language

Added to portage

2025-12-16

openjdk - 26_beta28
Ebuild name:

dev-java/openjdk-26_beta28

Description

Open source implementation of the Java programming language

Added to portage

2025-12-16

osm - 1.10
Ebuild name:

app-emacs/osm-1.10

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-16

protobuf-java - 4.33.2
Ebuild name:

dev-java/protobuf-java-4.33.2

Description

Core Protocol Buffers library

Added to portage

2025-12-16

radarr-bin - 6.1.0.10309
Ebuild name:

www-apps/radarr-bin-6.1.0.10309

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2025-12-16

raspberrypi-firmware - 1.20250915
Ebuild name:

sys-boot/raspberrypi-firmware-1.20250915

Description

Raspberry Pi (all versions) bootloader and GPU firmware

Added to portage

2025-12-16

raspberrypi-image - 6.12.47_p20250915
Ebuild name:

sys-kernel/raspberrypi-image-6.12.47_p20250915

Description

Raspberry Pi (all versions) kernel and modules

Added to portage

2025-12-16

raspberrypi-sources - 6.12.47_p20250916
Ebuild name:

sys-kernel/raspberrypi-sources-6.12.47_p20250916

Description

Raspberry Pi kernel sources

Added to portage

2025-12-16

roundcube - 1.6.12
Ebuild name:

mail-client/roundcube-1.6.12

Description

Browser-based multilingual IMAP client with an application-like user i

Added to portage

2025-12-16

roundcube - 1.7_rc2
Ebuild name:

mail-client/roundcube-1.7_rc2

Description

A browser-based multilingual IMAP client with an application-like use

Added to portage

2025-12-16

rpi-eeprom - 28.10_p1
Ebuild name:

dev-embedded/rpi-eeprom-28.10_p1

Description

Updater for Raspberry Pi 4/5 bootloader and the VL805 USB controll

Added to portage

2025-12-16

simdjson - 3.11.5-r1
Ebuild name:

dev-libs/simdjson-3.11.5-r1

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

simdjson - 3.12.1-r2
Ebuild name:

dev-libs/simdjson-3.12.1-r2

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

simdjson - 3.13.0-r1
Ebuild name:

dev-libs/simdjson-3.13.0-r1

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

simdjson - 4.0.7-r1
Ebuild name:

dev-libs/simdjson-4.0.7-r1

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

simdjson - 4.1.0-r1
Ebuild name:

dev-libs/simdjson-4.1.0-r1

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

simdjson - 4.2.1-r1
Ebuild name:

dev-libs/simdjson-4.2.1-r1

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

simdjson - 4.2.2-r1
Ebuild name:

dev-libs/simdjson-4.2.2-r1

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

simdjson - 4.2.3-r1
Ebuild name:

dev-libs/simdjson-4.2.3-r1

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-16

syncthing - 2.0.12-r2
Ebuild name:

net-p2p/syncthing-2.0.12-r2

Description

Open Source Continuous File Synchronization

Added to portage

2025-12-16

telegram-desktop - 6.3.8
Ebuild name:

net-im/telegram-desktop-6.3.8

Description

Official desktop client for Telegram

Added to portage

2025-12-16

tmuxp - 1.62.0
Ebuild name:

app-misc/tmuxp-1.62.0

Description

tmux session manager. built on libtmux

Added to portage

2025-12-16

uriparser - 1.0.0
Ebuild name:

dev-libs/uriparser-1.0.0

Description

Strictly RFC 3986 compliant URI parsing library in C

Added to portage

2025-12-16

uutils-coreutils - 0.5.0
Ebuild name:

sys-apps/uutils-coreutils-0.5.0

Description

GNU coreutils rewritten in Rust

Added to portage

2025-12-16

2025-12-15
apptainer - 1.4.5
Ebuild name:

app-containers/apptainer-1.4.5

Description

The container system for secure high-performance computing

Added to portage

2025-12-15

ardour - 8.12-r2
Ebuild name:

media-sound/ardour-8.12-r2

Description

Digital Audio Workstation

Added to portage

2025-12-15

asm - 9.9.1
Ebuild name:

dev-java/asm-9.9.1

Description

Bytecode manipulation framework for Java

Added to portage

2025-12-15

asm-jdk-bridge - 0.0.13
Ebuild name:

dev-java/asm-jdk-bridge-0.0.13

Description

A Bridge to Translate ASM From and to The OpenJDK Class File API

Added to portage

2025-12-15

auto-value - 1.11.1
Ebuild name:

dev-java/auto-value-1.11.1

Description

Immutable value-type code generation for Java 1.7+

Added to portage

2025-12-15

bcmail - 1.83
Ebuild name:

dev-java/bcmail-1.83

Description

The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols

Added to portage

2025-12-15

bcpg - 1.83
Ebuild name:

dev-java/bcpg-1.83

Description

Java cryptography APIs

Added to portage

2025-12-15

bcpkix - 1.83
Ebuild name:

dev-java/bcpkix-1.83

Description

Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation

Added to portage

2025-12-15

bcprov - 1.83
Ebuild name:

dev-java/bcprov-1.83

Description

Java cryptography APIs

Added to portage

2025-12-15

bcutil - 1.83
Ebuild name:

dev-java/bcutil-1.83

Description

Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctl

Added to portage

2025-12-15

byte-buddy - 1.18.2
Ebuild name:

dev-java/byte-buddy-1.18.2

Description

Offers convenience for attaching an agent to the local or a remote VM

Added to portage

2025-12-15

ccid - 1.7.0
Ebuild name:

app-crypt/ccid-1.7.0

Description

CCID free software driver

Added to portage

2025-12-15

checker-framework-qual - 3.52.1
Ebuild name:

dev-java/checker-framework-qual-3.52.1

Description

Annotations for type-checking by the Checker Framework

Added to portage

2025-12-15

compile-testing - 0.23.0-r1
Ebuild name:

dev-java/compile-testing-0.23.0-r1

Description

Testing tools for javac and annotation processors

Added to portage

2025-12-15

consul - 1.22.1
Ebuild name:

app-admin/consul-1.22.1

Description

A tool for service discovery, monitoring and configuration

Added to portage

2025-12-15

cortado - 0.6.0-r4
Ebuild name:

dev-java/cortado-0.6.0-r4

Description

Multimedia framework for Java written by Fluendo

Added to portage

2025-12-15

cppzmq - 4.11.0
Ebuild name:

net-libs/cppzmq-4.11.0

Description

High-level CPP Binding for ZeroMQ

Added to portage

2025-12-15

cython - 3.2.3
Ebuild name:

dev-python/cython-3.2.3

Description

A Python to C compiler

Added to portage

2025-12-15

django-polymorphic - 4.4.0
Ebuild name:

dev-python/django-polymorphic-4.4.0

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2025-12-15

error-prone-annotations - 2.45.0
Ebuild name:

dev-java/error-prone-annotations-2.45.0

Description

Java annotations for the Error Prone static analysis tool

Added to portage

2025-12-15

gcc - 13.4.1_p20251211
Ebuild name:

sys-devel/gcc-13.4.1_p20251211

Description

The GNU Compiler Collection

Added to portage

2025-12-15

gcc - 14.3.1_p20251212
Ebuild name:

sys-devel/gcc-14.3.1_p20251212

Description

The GNU Compiler Collection

Added to portage

2025-12-15

gcc - 15.2.1_p20251213
Ebuild name:

sys-devel/gcc-15.2.1_p20251213

Description

The GNU Compiler Collection

Added to portage

2025-12-15

gcc - 16.0.0_p20251214
Ebuild name:

sys-devel/gcc-16.0.0_p20251214

Description

The GNU Compiler Collection

Added to portage

2025-12-15

gfxreconstruct - 1.4.335.0
Ebuild name:

dev-debug/gfxreconstruct-1.4.335.0

Description

Graphics API Capture and Replay Tools

Added to portage

2025-12-15

glslang - 1.4.335.0
Ebuild name:

dev-util/glslang-1.4.335.0

Description

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

Added to portage

2025-12-15

gmsynth-lv2 - 0.6.3
Ebuild name:

media-plugins/gmsynth-lv2-0.6.3

Description

General MIDI Sample Player Plugin

Added to portage

2025-12-15

gopass - 1.16.1
Ebuild name:

app-admin/gopass-1.16.1

Description

a simple but powerful password manager for the terminal

Added to portage

2025-12-15

gopass-hibp - 1.16.1
Ebuild name:

app-admin/gopass-hibp-1.16.1

Description

Gopass haveibeenpwnd.com integration

Added to portage

2025-12-15

gopass-jsonapi - 1.16.1
Ebuild name:

app-admin/gopass-jsonapi-1.16.1

Description

Gopass Browser Bindings

Added to portage

2025-12-15

grpclib - 0.4.9
Ebuild name:

dev-python/grpclib-0.4.9

Description

Pure-Python gRPC implementation for asyncio

Added to portage

2025-12-15

i3status - 2.15
Ebuild name:

x11-misc/i3status-2.15

Description

Generates a status bar for dzen2, xmobar or similar

Added to portage

2025-12-15

jellyfin-bin - 10.11.5
Ebuild name:

www-apps/jellyfin-bin-10.11.5

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2025-12-15

jmc - 8.3.0-r1
Ebuild name:

dev-java/jmc-8.3.0-r1

Description

JDK Mission Control

Added to portage

2025-12-15

jmc - 9.1.1
Ebuild name:

dev-java/jmc-9.1.1

Description

JDK Mission Control

Added to portage

2025-12-15

json-path - 2.10.0
Ebuild name:

dev-java/json-path-2.10.0

Description

Java JsonPath implementation

Added to portage

2025-12-15

libtmux - 0.53.0
Ebuild name:

dev-python/libtmux-0.53.0

Description

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

Added to portage

2025-12-15

mixxx - 2.5.4
Ebuild name:

media-sound/mixxx-2.5.4

Description

Advanced Digital DJ tool based on Qt

Added to portage

2025-12-15

mkosi - 25.3
Ebuild name:

app-admin/mkosi-25.3

Description

Build Bespoke OS Images

Added to portage

2025-12-15

mocha - 3.0.0
Ebuild name:

dev-ruby/mocha-3.0.0

Description

Mocking and stubbing using a syntax like that of JMock and SchMock

Added to portage

2025-12-15

mockito - 5.21.0
Ebuild name:

dev-java/mockito-5.21.0

Description

Mockito mock objects library core API and implementation

Added to portage

2025-12-15

net-imap - 0.6.0
Ebuild name:

dev-ruby/net-imap-0.6.0

Description

Ruby client api for Internet Message Access Protocol

Added to portage

2025-12-15

oauth - 1.1.3
Ebuild name:

dev-ruby/oauth-1.1.3

Description

A RubyGem for implementing both OAuth clients and servers

Added to portage

2025-12-15

ocaml-migrate-parsetree - 2.3.0-r1
Ebuild name:

dev-ml/ocaml-migrate-parsetree-2.3.0-r1

Description

Convert OCaml parsetrees between different major versions

Added to portage

2025-12-15

osm - 1.9
Ebuild name:

app-emacs/osm-1.9

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-15

osm - 9999
Ebuild name:

app-emacs/osm-9999

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-15

outline-magic - 0.9
Ebuild name:

app-emacs/outline-magic-0.9

Description

Outline mode extensions for Emacs

Added to portage

2025-12-15

owasp-java-encoder - 1.4.0
Ebuild name:

dev-java/owasp-java-encoder-1.4.0

Description

OWASP Java Encoder

Added to portage

2025-12-15

package-build - 4.0.0
Ebuild name:

app-emacs/package-build-4.0.0

Description

Tools for assembling a package archive

Added to portage

2025-12-15

prefix-toolkit - 12
Ebuild name:

app-portage/prefix-toolkit-12

Description

Utilities for users of Gentoo Prefix

Added to portage

2025-12-15

pymdown-extensions - 10.19.1
Ebuild name:

dev-python/pymdown-extensions-10.19.1

Description

Extensions for Python Markdown

Added to portage

2025-12-15

pypdf - 6.4.2
Ebuild name:

dev-python/pypdf-6.4.2

Description

Python library to work with PDF files

Added to portage

2025-12-15

qdox - 2.2.0-r1
Ebuild name:

dev-java/qdox-2.2.0-r1

Description

Parser for extracting class/interface/method definitions

Added to portage

2025-12-15

qmidiarp - 0.7.1_p20251214
Ebuild name:

media-sound/qmidiarp-0.7.1_p20251214

Description

Arpeggiator, sequencer and MIDI LFO for ALSA

Added to portage

2025-12-15

qtile - 0.34.1
Ebuild name:

x11-wm/qtile-0.34.1

Description

A full-featured, hackable tiling window manager written in Python

Added to portage

2025-12-15

rhino - 1.8.1
Ebuild name:

dev-java/rhino-1.8.1

Description

Rhino JavaScript runtime jar, excludes XML, tools, and ScriptEngine wrapper

Added to portage

2025-12-15

shaderc - 2025.5
Ebuild name:

media-libs/shaderc-2025.5

Description

Collection of tools, libraries and tests for shader compilation

Added to portage

2025-12-15

sonata - 1.7.3
Ebuild name:

media-sound/sonata-1.7.3

Description

Elegant GTK+ music client for the Music Player Daemon (MPD)

Added to portage

2025-12-15

spirv-headers - 1.4.335.0
Ebuild name:

dev-util/spirv-headers-1.4.335.0

Description

Machine-readable files for the SPIR-V Registry

Added to portage

2025-12-15

spirv-tools - 1.4.335.0
Ebuild name:

dev-util/spirv-tools-1.4.335.0

Description

Provides an API and commands for processing SPIR-V modules

Added to portage

2025-12-15

spyder-terminal - 1.3.0
Ebuild name:

dev-python/spyder-terminal-1.3.0

Description

Run system terminals inside Spyder

Added to portage

2025-12-15

swing-layout - 1.0.4-r3
Ebuild name:

dev-java/swing-layout-1.0.4-r3

Description

Professional cross platform layouts with Swing

Added to portage

2025-12-15

swt - 4.38
Ebuild name:

dev-java/swt-4.38

Description

GTK based SWT Library

Added to portage

2025-12-15

systemd - 258.3
Ebuild name:

sys-apps/systemd-258.3

Description

System and service manager for Linux

Added to portage

2025-12-15

tekore - 6.1.0
Ebuild name:

dev-python/tekore-6.1.0

Description

Spotify Web API client

Added to portage

2025-12-15

tex4ht - 20240311_p72882-r3
Ebuild name:

dev-tex/tex4ht-20240311_p72882-r3

Description

Converts (La)TeX to (X)HTML, XML and OO.org

Added to portage

2025-12-15

timezone-data - 2025c
Ebuild name:

sys-libs/timezone-data-2025c

Description

Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)

Added to portage

2025-12-15

visualvm - 2.2-r2
Ebuild name:

dev-util/visualvm-2.2-r2

Description

Integrates commandline JDK tools and profiling capabilities

Added to portage

2025-12-15

vulkan-headers - 1.4.335.0
Ebuild name:

dev-util/vulkan-headers-1.4.335.0

Description

Vulkan Header files and API registry

Added to portage

2025-12-15

vulkan-layers - 1.4.335.0
Ebuild name:

media-libs/vulkan-layers-1.4.335.0

Description

Vulkan Validation Layers

Added to portage

2025-12-15

vulkan-loader - 1.4.335.0
Ebuild name:

media-libs/vulkan-loader-1.4.335.0

Description

Vulkan Installable Client Driver (ICD) Loader

Added to portage

2025-12-15

vulkan-tools - 1.4.335.0
Ebuild name:

dev-util/vulkan-tools-1.4.335.0

Description

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

Added to portage

2025-12-15

vulkan-utility-libraries - 1.4.335.0
Ebuild name:

dev-util/vulkan-utility-libraries-1.4.335.0

Description

Share code across various Vulkan repositories

Added to portage

2025-12-15

wf-recorder - 0.6.0
Ebuild name:

gui-apps/wf-recorder-0.6.0

Description

Screen recorder for wlroots-based compositors

Added to portage

2025-12-15

xcffib - 1.12.0
Ebuild name:

dev-python/xcffib-1.12.0

Description

A drop in replacement for xpyb, an XCB python binding

Added to portage

2025-12-15

xz-java - 1.11
Ebuild name:

dev-java/xz-java-1.11

Description

Implementation of xz data compression in pure java

Added to portage

2025-12-15

zathura - 0.5.14
Ebuild name:

app-text/zathura-0.5.14

Description

Highly customizable & functional document viewer

Added to portage

2025-12-15

zstd-jni - 1.5.7.6
Ebuild name:

dev-java/zstd-jni-1.5.7.6

Description

JNI bindings for Zstd native library

Added to portage

2025-12-15

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