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:

87665

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-15
ggml - 0.20.0
Ebuild name:

sci-ml/ggml-0.20.0

Description

Tensor library for machine learning

Added to portage

2026-08-15

jabref - 5.15-r1
Ebuild name:

app-text/jabref-5.15-r1

Description

Graphical Java application for managing BibTeX and biblatex (.bib) database

Added to portage

2026-08-15

openjdk-bin - 11.0.32_p9
Ebuild name:

dev-java/openjdk-bin-11.0.32_p9

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 17.0.20_p8
Ebuild name:

dev-java/openjdk-bin-17.0.20_p8

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 21.0.12_p8
Ebuild name:

dev-java/openjdk-bin-21.0.12_p8

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 25.0.4_p7
Ebuild name:

dev-java/openjdk-bin-25.0.4_p7

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 27_beta34
Ebuild name:

dev-java/openjdk-bin-27_beta34

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 28_alpha11
Ebuild name:

dev-java/openjdk-bin-28_alpha11

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 8.502_p07
Ebuild name:

dev-java/openjdk-bin-8.502_p07

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 11.0.32_p9
Ebuild name:

dev-java/openjdk-jre-bin-11.0.32_p9

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 17.0.20_p8
Ebuild name:

dev-java/openjdk-jre-bin-17.0.20_p8

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 21.0.12_p8
Ebuild name:

dev-java/openjdk-jre-bin-21.0.12_p8

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 25.0.4_p7
Ebuild name:

dev-java/openjdk-jre-bin-25.0.4_p7

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 8.502_p07
Ebuild name:

dev-java/openjdk-jre-bin-8.502_p07

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

simdjson - 4.6.7
Ebuild name:

dev-libs/simdjson-4.6.7

Description

SIMD accelerated C++ JSON library

Added to portage

2026-08-15

2026-08-14
algol68g - 3.13.3
Ebuild name:

dev-lang/algol68g-3.13.3

Description

Algol 68 Genie compiler-interpreter

Added to portage

2026-08-14

audit - 4.2.1
Ebuild name:

sys-process/audit-4.2.1

Description

Userspace utilities for storing and processing auditing records

Added to portage

2026-08-14

aws-sam-translator - 1.112.0
Ebuild name:

dev-python/aws-sam-translator-1.112.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2026-08-14

boto3 - 1.43.71
Ebuild name:

dev-python/boto3-1.43.71

Description

The AWS SDK for Python

Added to portage

2026-08-14

botocore - 1.43.71
Ebuild name:

dev-python/botocore-1.43.71

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-14

cfitsio - 4.7.0
Ebuild name:

sci-libs/cfitsio-4.7.0

Description

C and Fortran library for manipulating FITS files

Added to portage

2026-08-14

cfn-lint - 1.55.1
Ebuild name:

dev-python/cfn-lint-1.55.1

Description

CloudFormation Linter

Added to portage

2026-08-14

claude-code - 2.1.231
Ebuild name:

dev-util/claude-code-2.1.231

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-08-14

courier-imap - 6.0.6
Ebuild name:

net-mail/courier-imap-6.0.6

Description

An IMAP daemon designed specifically for maildirs

Added to portage

2026-08-14

cproc - 0_pre20260527
Ebuild name:

sys-devel/cproc-0_pre20260527

Description

C11 compiler using QBE as backend

Added to portage

2026-08-14

dbeaver-bin - 26.1.4
Ebuild name:

dev-db/dbeaver-bin-26.1.4

Description

Free universal database tool (community edition)

Added to portage

2026-08-14

diffoscope - 327
Ebuild name:

dev-util/diffoscope-327

Description

Will try to get to the bottom of what makes files or directories different

Added to portage

2026-08-14

duplicity - 3.2.0
Ebuild name:

app-backup/duplicity-3.2.0

Description

Secure backup system using GnuPG to encrypt data

Added to portage

2026-08-14

filelock - 3.32.3
Ebuild name:

dev-python/filelock-3.32.3

Description

A platform independent file lock for Python

Added to portage

2026-08-14

firewalld - 2.5.1
Ebuild name:

net-firewall/firewalld-2.5.1

Description

Firewall daemon with D-Bus interface providing a dynamic firewall

Added to portage

2026-08-14

gawk - 5.4.1-r1
Ebuild name:

sys-apps/gawk-5.4.1-r1

Description

GNU awk pattern-matching language

Added to portage

2026-08-14

graphicsmagick - 1.3.48
Ebuild name:

media-gfx/graphicsmagick-1.3.48

Description

Collection of tools and libraries for many image formats

Added to portage

2026-08-14

hypothesis - 6.165.6
Ebuild name:

dev-python/hypothesis-6.165.6

Description

A library for property based testing

Added to portage

2026-08-14

libgit2 - 1.9.7
Ebuild name:

dev-libs/libgit2-1.9.7

Description

A linkable library for Git

Added to portage

2026-08-14

libtsm - 4.7.0
Ebuild name:

dev-libs/libtsm-4.7.0

Description

Terminal Emulator State Machine

Added to portage

2026-08-14

mcrypt - 2.6.8-r3
Ebuild name:

app-crypt/mcrypt-2.6.8-r3

Description

Replacement of the old unix crypt(1)

Added to portage

2026-08-14

md5deep - 4.4
Ebuild name:

app-crypt/md5deep-4.4

Description

Expanded md5sum program with recursive and comparison options

Added to portage

2026-08-14

md6sum - 1.0-r3
Ebuild name:

app-crypt/md6sum-1.0-r3

Description

A C implementation of MD6

Added to portage

2026-08-14

mhash - 0.9.9.9-r4
Ebuild name:

app-crypt/mhash-0.9.9.9-r4

Description

Library providing a uniform interface to a large number of hash algorith

Added to portage

2026-08-14

minisign - 0.12
Ebuild name:

app-crypt/minisign-0.12

Description

Dead simple tool to sign files and verify signatures

Added to portage

2026-08-14

mit-krb5 - 1.22.2-r2
Ebuild name:

app-crypt/mit-krb5-1.22.2-r2

Description

MIT Kerberos V

Added to portage

2026-08-14

mit-krb5-appl - 1.0.3-r4
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r4

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-08-14

mit-krb5-appl - 1.0.3-r4
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r4

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-08-14

mit-krb5-appl - 1.0.3-r5
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r5

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-08-14

mkp224o - 1.7.0
Ebuild name:

app-crypt/mkp224o-1.7.0

Description

Vanity address generator for v3 Tor hidden service addresses

Added to portage

2026-08-14

ml-dtypes - 0.6.0
Ebuild name:

dev-python/ml-dtypes-0.6.0

Description

A stand-alone implementation of several NumPy dtype extensions

Added to portage

2026-08-14

nvc - 1.22.1
Ebuild name:

sci-electronics/nvc-1.22.1

Description

NVC is a VHDL compiler and simulator

Added to portage

2026-08-14

oorexx - 5.3.0_beta13196
Ebuild name:

dev-lang/oorexx-5.3.0_beta13196

Description

Open source implementation of Object Rexx

Added to portage

2026-08-14

opencl-headers - 2026.05.29
Ebuild name:

dev-util/opencl-headers-2026.05.29

Description

Unified C language headers for the OpenCL API

Added to portage

2026-08-14

opencl-icd-loader - 2025.07.22
Ebuild name:

dev-libs/opencl-icd-loader-2025.07.22

Description

Official Khronos OpenCL ICD Loader

Added to portage

2026-08-14

pandoc-bin - 3.10.2
Ebuild name:

app-text/pandoc-bin-3.10.2

Description

Conversion between markup formats (binary package)

Added to portage

2026-08-14

pbr - 7.1.0
Ebuild name:

dev-python/pbr-7.1.0

Description

Inject some useful and sensible default behaviors into setuptools

Added to portage

2026-08-14

pkgcore - 0.12.39
Ebuild name:

sys-apps/pkgcore-0.12.39

Description

a framework for package management

Added to portage

2026-08-14

pkgdev - 0.2.17
Ebuild name:

dev-util/pkgdev-0.2.17

Description

Collection of tools for Gentoo development

Added to portage

2026-08-14

platformdirs - 4.11.3
Ebuild name:

dev-python/platformdirs-4.11.3

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-08-14

postfix - 3.12_pre20260812
Ebuild name:

mail-mta/postfix-3.12_pre20260812

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-08-14

progressbar2 - 4.6.0
Ebuild name:

dev-python/progressbar2-4.6.0

Description

Text progressbar library for python

Added to portage

2026-08-14

pypdf - 6.16.0
Ebuild name:

dev-python/pypdf-6.16.0

Description

Python library to work with PDF files

Added to portage

2026-08-14

pyphen - 0.18.1
Ebuild name:

dev-python/pyphen-0.18.1

Description

Python module for hyphenation using hunspell dictionaries

Added to portage

2026-08-14

pytest-rerunfailures - 16.5
Ebuild name:

dev-python/pytest-rerunfailures-16.5

Description

pytest plugin to re-run tests to eliminate flaky failures

Added to portage

2026-08-14

pyzotero - 1.13.6
Ebuild name:

dev-python/pyzotero-1.13.6

Description

A Python client for the Zotero API

Added to portage

2026-08-14

racket - 9.3
Ebuild name:

dev-scheme/racket-9.3

Description

General purpose, multi-paradigm Lisp-Scheme programming language

Added to portage

2026-08-14

ruff - 0.16.3
Ebuild name:

dev-util/ruff-0.16.3

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-08-14

samba - 4.24.6
Ebuild name:

net-fs/samba-4.24.6

Description

Samba Suite Version 4

Added to portage

2026-08-14

scap-driver - 0.21.0
Ebuild name:

dev-debug/scap-driver-0.21.0

Description

Kernel module for dev-debug/sysdig

Added to portage

2026-08-14

sqlparse - 0.6.0
Ebuild name:

dev-python/sqlparse-0.6.0

Description

A non-validating SQL parser module for Python

Added to portage

2026-08-14

suscan - 0.3.0_p20251029-r1
Ebuild name:

net-wireless/suscan-0.3.0_p20251029-r1

Description

a realtime DSP processing library

Added to portage

2026-08-14

sysdig - 0.41.4
Ebuild name:

dev-debug/sysdig-0.41.4

Description

A system exploration and troubleshooting tool

Added to portage

2026-08-14

system-monitoring-center - 3.4.1-r1
Ebuild name:

sys-apps/system-monitoring-center-3.4.1-r1

Description

Multi-featured system monitor GUI written in Python

Added to portage

2026-08-14

tox - 4.60.0
Ebuild name:

dev-python/tox-4.60.0

Description

virtualenv-based automation of test activities

Added to portage

2026-08-14

uutils-coreutils - 0.10.0
Ebuild name:

sys-apps/uutils-coreutils-0.10.0

Description

GNU coreutils rewritten in Rust

Added to portage

2026-08-14

uvicorn - 0.52.3
Ebuild name:

dev-python/uvicorn-0.52.3

Description

Lightning-fast ASGI server implementation

Added to portage

2026-08-14

wireshark - 4.6.8
Ebuild name:

net-analyzer/wireshark-4.6.8

Description

Network protocol analyzer (sniffer)

Added to portage

2026-08-14

wrapt - 2.4.0_rc2
Ebuild name:

dev-python/wrapt-2.4.0_rc2

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-08-14

xdg-dbus-proxy - 0.1.8
Ebuild name:

sys-apps/xdg-dbus-proxy-0.1.8

Description

Filtering proxy for D-Bus connections

Added to portage

2026-08-14

xdg-utils - 1.2.1-r10
Ebuild name:

x11-misc/xdg-utils-1.2.1-r10

Description

Portland utils for cross-platform/cross-toolkit/cross-desktop interope

Added to portage

2026-08-14

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