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:

82983

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-01-28
2026-01-27
actionpack - 8.1.2
Ebuild name:

dev-ruby/actionpack-8.1.2

Description

Eases web-request routing, handling, and response

Added to portage

2026-01-27

actionview - 8.1.2
Ebuild name:

dev-ruby/actionview-8.1.2

Description

Simple, battle-tested conventions and helpers for building web pages

Added to portage

2026-01-27

activejob - 8.1.2
Ebuild name:

dev-ruby/activejob-8.1.2

Description

Job framework with pluggable queues

Added to portage

2026-01-27

activemodel - 8.1.2
Ebuild name:

dev-ruby/activemodel-8.1.2

Description

Toolkit for building modeling frameworks like Active Record and Active R

Added to portage

2026-01-27

activerecord - 8.1.2
Ebuild name:

dev-ruby/activerecord-8.1.2

Description

Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM

Added to portage

2026-01-27

awscli - 1.44.25
Ebuild name:

app-admin/awscli-1.44.25

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-27

blessed - 1.28.0
Ebuild name:

dev-python/blessed-1.28.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2026-01-27

boto3 - 1.42.35
Ebuild name:

dev-python/boto3-1.42.35

Description

The AWS SDK for Python

Added to portage

2026-01-27

botocore - 1.42.35
Ebuild name:

dev-python/botocore-1.42.35

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-27

cadabra - 2.5.14_p1
Ebuild name:

sci-mathematics/cadabra-2.5.14_p1

Description

Field-theory motivated approach to computer algebra

Added to portage

2026-01-27

caffe2 - 2.10.0
Ebuild name:

sci-ml/caffe2-2.10.0

Description

A deep learning framework

Added to portage

2026-01-27

clang - 22.1.0_rc2
Ebuild name:

dev-python/clang-22.1.0_rc2

Description

Python bindings for llvm-core/clang

Added to portage

2026-01-27

clang - 22.1.0_rc2
Ebuild name:

llvm-core/clang-22.1.0_rc2

Description

C language family frontend for LLVM

Added to portage

2026-01-27

clang-common - 22.1.0_rc2
Ebuild name:

llvm-core/clang-common-22.1.0_rc2

Description

Common files shared between multiple slots of clang

Added to portage

2026-01-27

claude-code - 2.1.20
Ebuild name:

dev-util/claude-code-2.1.20

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-01-27

cli-helpers - 2.9.0
Ebuild name:

dev-python/cli-helpers-2.9.0

Description

Python helpers for common CLI tasks

Added to portage

2026-01-27

cloudflare-warp - 2025.10.186.0
Ebuild name:

net-vpn/cloudflare-warp-2025.10.186.0

Description

Cloudflare Warp Client

Added to portage

2026-01-27

commons-cli - 1.11.0
Ebuild name:

dev-java/commons-cli-1.11.0

Description

A Java library for working with the command line arguments and options

Added to portage

2026-01-27

commons-digester - 3.2-r5
Ebuild name:

dev-java/commons-digester-3.2-r5

Description

Reads XML configuration files to provide initialization of various

Added to portage

2026-01-27

commons-exec - 1.6.0
Ebuild name:

dev-java/commons-exec-1.6.0

Description

Utility classes, stream implementations, file filters, and much more

Added to portage

2026-01-27

commons-io - 2.21.0
Ebuild name:

dev-java/commons-io-2.21.0

Description

Utility classes, stream implementations, file filters, and much more

Added to portage

2026-01-27

commons-lang - 3.20.0
Ebuild name:

dev-java/commons-lang-3.20.0

Description

Commons components to manipulate core java classes

Added to portage

2026-01-27

compiler-rt - 22.1.0_rc2
Ebuild name:

llvm-runtimes/compiler-rt-22.1.0_rc2

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-01-27

compiler-rt-sanitizers - 22.1.0_rc2
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-22.1.0_rc2

Description

Compiler runtime libraries for clang (sanitizers &

Added to portage

2026-01-27

cursor-agent - 2026.01.23
Ebuild name:

dev-util/cursor-agent-2026.01.23

Description

Cursor CLI - interact with AI agents directly from your terminal

Added to portage

2026-01-27

dar - 2.8.3
Ebuild name:

app-backup/dar-2.8.3

Description

A full featured backup tool, aimed for disks

Added to portage

2026-01-27

django-polymorphic - 4.10.5
Ebuild name:

dev-python/django-polymorphic-4.10.5

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2026-01-27

dnscap - 2.5.1
Ebuild name:

net-dns/dnscap-2.5.1

Description

Network capture utility designed specifically for DNS traffic

Added to portage

2026-01-27

flang - 22.1.0_rc2
Ebuild name:

llvm-core/flang-22.1.0_rc2

Description

LLVM's Fortran frontend

Added to portage

2026-01-27

flang-rt - 22.1.0_rc2
Ebuild name:

llvm-runtimes/flang-rt-22.1.0_rc2

Description

LLVM's Fortran runtime

Added to portage

2026-01-27

fritzconnection - 1.15.1
Ebuild name:

dev-python/fritzconnection-1.15.1

Description

Lib/tool to communicate with AVM FRITZ devices using TR-064 proto

Added to portage

2026-01-27

gentoo-functions - 1.7.5
Ebuild name:

sys-apps/gentoo-functions-1.7.5

Description

Base functions required by all Gentoo systems

Added to portage

2026-01-27

gns3-gui - 2.2.56
Ebuild name:

net-misc/gns3-gui-2.2.56

Description

Graphical Network Simulator

Added to portage

2026-01-27

gns3-server - 2.2.56
Ebuild name:

net-misc/gns3-server-2.2.56

Description

GNS3 server to asynchronously manage emulators

Added to portage

2026-01-27

gnupg - 2.5.17
Ebuild name:

app-crypt/gnupg-2.5.17

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2026-01-27

godot - 4.6
Ebuild name:

dev-games/godot-4.6

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2026-01-27

google-auth - 2.48.0
Ebuild name:

dev-python/google-auth-2.48.0

Description

Google Authentication Library

Added to portage

2026-01-27

gssapi - 1.11.1
Ebuild name:

dev-python/gssapi-1.11.1

Description

Low and high level wrappers around the GSSAPI C libraries

Added to portage

2026-01-27

hypothesis - 6.151.2
Ebuild name:

dev-python/hypothesis-6.151.2

Description

A library for property based testing

Added to portage

2026-01-27

libclc - 22.1.0_rc2
Ebuild name:

llvm-core/libclc-22.1.0_rc2

Description

OpenCL C library

Added to portage

2026-01-27

libcxx - 22.1.0_rc2
Ebuild name:

llvm-runtimes/libcxx-22.1.0_rc2

Description

New implementation of the C++ standard library, targeting C++11

Added to portage

2026-01-27

libcxxabi - 22.1.0_rc2
Ebuild name:

llvm-runtimes/libcxxabi-22.1.0_rc2

Description

Low level support for a standard C++ library

Added to portage

2026-01-27

libgcc - 22.1.0_rc2
Ebuild name:

llvm-runtimes/libgcc-22.1.0_rc2

Description

Compiler runtime library for clang, compatible with libgcc_s

Added to portage

2026-01-27

libgssglue - 0.9-r1
Ebuild name:

net-libs/libgssglue-0.9-r1

Description

Exports a gssapi interface which calls other random gssapi libraries

Added to portage

2026-01-27

libunwind - 22.1.0_rc2
Ebuild name:

llvm-runtimes/libunwind-22.1.0_rc2

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-01-27

lit - 22.1.0_rc2
Ebuild name:

dev-python/lit-22.1.0_rc2

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-01-27

lld - 22.1.0_rc2
Ebuild name:

llvm-core/lld-22.1.0_rc2

Description

The LLVM linker (link editor)

Added to portage

2026-01-27

lldb - 22.1.0_rc2
Ebuild name:

llvm-core/lldb-22.1.0_rc2

Description

The LLVM debugger

Added to portage

2026-01-27

llvm - 22.1.0_rc2
Ebuild name:

dev-ml/llvm-22.1.0_rc2

Description

OCaml bindings for LLVM

Added to portage

2026-01-27

llvm - 22.1.0_rc2
Ebuild name:

llvm-core/llvm-22.1.0_rc2

Description

Low Level Virtual Machine

Added to portage

2026-01-27

llvm-common - 22.1.0_rc2
Ebuild name:

llvm-core/llvm-common-22.1.0_rc2

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-01-27

mkdocs-git-revision-date-localized-plugin - 1.5.1
Ebuild name:

dev-python/mkdocs-git-revision-date-localized-plugin-1.5.1

Description

Display the localized date of the last g

Added to portage

2026-01-27

mlir - 22.1.0_rc2
Ebuild name:

llvm-core/mlir-22.1.0_rc2

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-01-27

notebook - 7.5.3
Ebuild name:

dev-python/notebook-7.5.3

Description

Jupyter Interactive Notebook

Added to portage

2026-01-27

oath-toolkit - 2.6.14
Ebuild name:

sys-auth/oath-toolkit-2.6.14

Description

Toolkit for using one-time password authentication with HOTP/TOTP algo

Added to portage

2026-01-27

offload - 22.1.0_rc2
Ebuild name:

llvm-runtimes/offload-22.1.0_rc2

Description

OpenMP offloading support

Added to portage

2026-01-27

openmp - 22.1.0_rc2
Ebuild name:

llvm-runtimes/openmp-22.1.0_rc2

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2026-01-27

openpgp-keys-gsasl - 20260127
Ebuild name:

sec-keys/openpgp-keys-gsasl-20260127

Description

OpenPGP keys used by the GNU SASL Library

Added to portage

2026-01-27

openpgp-keys-libgssglue - 20260127
Ebuild name:

sec-keys/openpgp-keys-libgssglue-20260127

Description

OpenPGP keys used by net-libs/libgssglue

Added to portage

2026-01-27

openpgp-keys-libntlm - 20260127
Ebuild name:

sec-keys/openpgp-keys-libntlm-20260127

Description

OpenPGP keys used by net-libs/libntlm

Added to portage

2026-01-27

openpgp-keys-pam - 20260122
Ebuild name:

sec-keys/openpgp-keys-pam-20260122

Description

OpenPGP keys used by the linux-pam project

Added to portage

2026-01-27

openpgp-keys-tarsnap - 20260123
Ebuild name:

sec-keys/openpgp-keys-tarsnap-20260123

Description

OpenPGP key used by app-backup/tarsnap

Added to portage

2026-01-27

openssl - 3.0.19
Ebuild name:

dev-libs/openssl-3.0.19

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security

Added to portage

2026-01-27

openssl - 3.3.6
Ebuild name:

dev-libs/openssl-3.3.6

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-01-27

openssl - 3.4.4
Ebuild name:

dev-libs/openssl-3.4.4

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-01-27

openssl - 3.5.5
Ebuild name:

dev-libs/openssl-3.5.5

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-01-27

openssl - 3.6.1
Ebuild name:

dev-libs/openssl-3.6.1

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-01-27

opus - 1.6.1
Ebuild name:

media-libs/opus-1.6.1

Description

Open codec for interactive speech and music transmission over the Internet

Added to portage

2026-01-27

osm - 2.0
Ebuild name:

app-emacs/osm-2.0

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-27

osm - 2.1
Ebuild name:

app-emacs/osm-2.1

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-27

osm - 2.1
Ebuild name:

app-emacs/osm-2.1

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-27

osm - 2.2
Ebuild name:

app-emacs/osm-2.2

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-27

osm - 9999
Ebuild name:

app-emacs/osm-9999

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-27

pam - 1.7.2
Ebuild name:

sys-libs/pam-1.7.2

Description

Linux-PAM (Pluggable Authentication Modules)

Added to portage

2026-01-27

pathspec - 1.0.4
Ebuild name:

dev-python/pathspec-1.0.4

Description

Utility library for gitignore style pattern matching of file paths

Added to portage

2026-01-27

picard - 3.0_pre20260126
Ebuild name:

media-sound/picard-3.0_pre20260126

Description

Cross-platform music tagger

Added to portage

2026-01-27

polly - 22.1.0_rc2
Ebuild name:

llvm-core/polly-22.1.0_rc2

Description

Polyhedral optimizations for LLVM

Added to portage

2026-01-27

posframe - 1.5.1
Ebuild name:

app-emacs/posframe-1.5.1

Description

Pop up a frame at point

Added to portage

2026-01-27

pypdf - 6.6.2
Ebuild name:

dev-python/pypdf-6.6.2

Description

Python library to work with PDF files

Added to portage

2026-01-27

python-ironicclient - 5.15.0
Ebuild name:

dev-python/python-ironicclient-5.15.0

Description

Python bindings for the Ironic API

Added to portage

2026-01-27

pytorch - 2.10.0
Ebuild name:

sci-ml/pytorch-2.10.0

Description

Tensors and Dynamic neural networks in Python

Added to portage

2026-01-27

qdevicemonitor - 1.0.1-r4
Ebuild name:

dev-util/qdevicemonitor-1.0.1-r4

Description

Crossplatform log viewer for Android, iOS and text files

Added to portage

2026-01-27

qtawesome - 1.4.1
Ebuild name:

dev-python/qtawesome-1.4.1

Description

Enables iconic fonts such as Font Awesome in PyQt

Added to portage

2026-01-27

railties - 8.1.2
Ebuild name:

dev-ruby/railties-8.1.2

Description

Tools for creating, working with, and running Rails applications

Added to portage

2026-01-27

sigstore - 4.2.0
Ebuild name:

dev-python/sigstore-4.2.0

Description

A tool for signing Python package distributions

Added to portage

2026-01-27

smplayer-skins - 20.11.0
Ebuild name:

x11-themes/smplayer-skins-20.11.0

Description

Skins for SMPlayer

Added to portage

2026-01-27

smplayer-themes - 20.11.0
Ebuild name:

x11-themes/smplayer-themes-20.11.0

Description

Icon themes for smplayer

Added to portage

2026-01-27

syd - 3.48.7-r1
Ebuild name:

sys-apps/syd-3.48.7-r1

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2026-01-27

tempel - 1.11
Ebuild name:

app-emacs/tempel-1.11

Description

Templates with in-buffer field editing for GNU Emacs

Added to portage

2026-01-27

uv - 0.9.27
Ebuild name:

dev-python/uv-0.9.27

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-01-27

uv-build - 0.9.27
Ebuild name:

dev-python/uv-build-0.9.27

Description

PEP517 uv build backend

Added to portage

2026-01-27

wcwidth - 0.5.0
Ebuild name:

dev-python/wcwidth-0.5.0

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-01-27

weechat - 4.7.2-r1
Ebuild name:

net-irc/weechat-4.7.2-r1

Description

Portable and multi-interface IRC client

Added to portage

2026-01-27

wine-proton - 10.0.4
Ebuild name:

app-emulation/wine-proton-10.0.4

Description

Valve Software's fork of Wine

Added to portage

2026-01-27

winetricks - 20260125
Ebuild name:

app-emulation/winetricks-20260125

Description

Easy way to install DLLs needed to work around problems in Wine

Added to portage

2026-01-27

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