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:

82335

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-07
aruba - 2.3.3
Ebuild name:

dev-util/aruba-2.3.3

Description

Cucumber steps for driving out command line applications

Added to portage

2025-12-07

backports-zstd - 1.2.0
Ebuild name:

dev-python/backports-zstd-1.2.0

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2025-12-07

certbot - 5.2.1
Ebuild name:

app-crypt/certbot-5.2.1

Description

Let's Encrypt client to automate deployment of X.509 certificates

Added to portage

2025-12-07

cvmfs - 2.13.3
Ebuild name:

net-fs/cvmfs-2.13.3

Description

HTTP read-only file system for distributing software

Added to portage

2025-12-07

django-timezone-field - 7.2.1
Ebuild name:

dev-python/django-timezone-field-7.2.1

Description

A Django app providing database and form fields for timezone

Added to portage

2025-12-07

evolution - 3.58.2-r1
Ebuild name:

mail-client/evolution-3.58.2-r1

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2025-12-07

findimports - 2.8.0
Ebuild name:

dev-python/findimports-2.8.0

Description

Python module import analysis tool

Added to portage

2025-12-07

gcc - 15.2.1_p20251206
Ebuild name:

sys-devel/gcc-15.2.1_p20251206

Description

The GNU Compiler Collection

Added to portage

2025-12-07

geant - 4.11.4.0
Ebuild name:

sci-physics/geant-4.11.4.0

Description

Toolkit for simulation of passage of particles through matter

Added to portage

2025-12-07

geant-data - 4.11.4
Ebuild name:

sci-physics/geant-data-4.11.4

Description

Data files for Geant4 physical processes

Added to portage

2025-12-07

gentoo-kernel - 5.10.247
Ebuild name:

sys-kernel/gentoo-kernel-5.10.247

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-sources - 5.10.247
Ebuild name:

sys-kernel/gentoo-sources-5.10.247

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 5.15.197
Ebuild name:

sys-kernel/gentoo-sources-5.15.197

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.1.159
Ebuild name:

sys-kernel/gentoo-sources-6.1.159

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.12.61
Ebuild name:

sys-kernel/gentoo-sources-6.12.61

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.17.11
Ebuild name:

sys-kernel/gentoo-sources-6.17.11

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.6.119
Ebuild name:

sys-kernel/gentoo-sources-6.6.119

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

ibus-typing-booster - 2.28.6
Ebuild name:

app-i18n/ibus-typing-booster-2.28.6

Description

Completion input method for IBus

Added to portage

2025-12-07

kwallet-pam - 6.4.5-r1
Ebuild name:

kde-plasma/kwallet-pam-6.4.5-r1

Description

PAM module to not enter KWallet password again after login

Added to portage

2025-12-07

kwallet-pam - 6.5.3-r1
Ebuild name:

kde-plasma/kwallet-pam-6.5.3-r1

Description

PAM module to not enter KWallet password again after login

Added to portage

2025-12-07

libfilezilla - 0.51.1-r1
Ebuild name:

dev-libs/libfilezilla-0.51.1-r1

Description

C++ library offering some basic functionality for platform-independ

Added to portage

2025-12-07

libfilezilla - 0.52.0-r1
Ebuild name:

dev-libs/libfilezilla-0.52.0-r1

Description

C++ library offering some basic functionality for platform-independ

Added to portage

2025-12-07

librt - 0.7.3
Ebuild name:

dev-python/librt-0.7.3

Description

Mypyc runtime library

Added to portage

2025-12-07

libtmux - 0.51.0
Ebuild name:

dev-python/libtmux-0.51.0

Description

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

Added to portage

2025-12-07

libutf8proc - 2.11.2
Ebuild name:

dev-libs/libutf8proc-2.11.2

Description

A clean C Library for processing UTF-8 Unicode data

Added to portage

2025-12-07

meson - 1.9.2
Ebuild name:

dev-build/meson-1.9.2

Description

Open source build system

Added to portage

2025-12-07

nss - 3.119
Ebuild name:

dev-libs/nss-3.119

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2025-12-07

pacparser - 1.4.6
Ebuild name:

net-libs/pacparser-1.4.6

Description

Library to parse proxy auto-config files

Added to portage

2025-12-07

perf - 6.18
Ebuild name:

dev-util/perf-6.18

Description

Userland tools for Linux Performance Counters

Added to portage

2025-12-07

postfix - 3.10.7
Ebuild name:

mail-mta/postfix-3.10.7

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-12-07

pudb - 2025.1.5
Ebuild name:

dev-python/pudb-2025.1.5

Description

A full-screen, console-based Python debugger

Added to portage

2025-12-07

pytest - 9.0.2
Ebuild name:

dev-python/pytest-9.0.2

Description

Simple powerful testing with Python

Added to portage

2025-12-07

root - 6.38.00
Ebuild name:

sci-physics/root-6.38.00

Description

C++ data analysis framework and interpreter from CERN

Added to portage

2025-12-07

rqrcode - 3.1.1
Ebuild name:

dev-ruby/rqrcode-3.1.1

Description

Library for encoding QR Codes

Added to portage

2025-12-07

rqrcode_core - 2.0.1
Ebuild name:

dev-ruby/rqrcode_core-2.0.1

Description

Library for encoding QR Codes

Added to portage

2025-12-07

selenium - 4.39.0
Ebuild name:

dev-python/selenium-4.39.0

Description

Python language binding for Selenium Remote Control

Added to portage

2025-12-07

selenium-manager - 4.39.0
Ebuild name:

dev-util/selenium-manager-4.39.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2025-12-07

sequel - 5.99.0
Ebuild name:

dev-ruby/sequel-5.99.0

Description

A lightweight database toolkit for Ruby

Added to portage

2025-12-07

sys-filesystem - 1.5.5
Ebuild name:

dev-ruby/sys-filesystem-1.5.5

Description

Cross-platform interface for filesystem information

Added to portage

2025-12-07

trimesh - 4.10.1
Ebuild name:

dev-python/trimesh-4.10.1

Description

Python library for loading and using triangular meshes

Added to portage

2025-12-07

uftrace - 0.18.1
Ebuild name:

dev-util/uftrace-0.18.1

Description

Function (graph) tracer for user-space

Added to portage

2025-12-07

vanilla-sources - 5.10.247
Ebuild name:

sys-kernel/vanilla-sources-5.10.247

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 5.15.197
Ebuild name:

sys-kernel/vanilla-sources-5.15.197

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 5.4.302
Ebuild name:

sys-kernel/vanilla-sources-5.4.302

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.1.159
Ebuild name:

sys-kernel/vanilla-sources-6.1.159

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.12.61
Ebuild name:

sys-kernel/vanilla-sources-6.12.61

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.17.11
Ebuild name:

sys-kernel/vanilla-sources-6.17.11

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.6.119
Ebuild name:

sys-kernel/vanilla-sources-6.6.119

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

webrick - 1.9.2
Ebuild name:

dev-ruby/webrick-1.9.2

Description

An HTTP server toolkit

Added to portage

2025-12-07

yard - 0.9.38
Ebuild name:

dev-ruby/yard-0.9.38

Description

Documentation generation tool for the Ruby programming language

Added to portage

2025-12-07

2025-12-06
aardvark-dns - 1.17.0
Ebuild name:

app-containers/aardvark-dns-1.17.0

Description

A container-focused DNS server

Added to portage

2025-12-06

aiodns - 3.6.0
Ebuild name:

dev-python/aiodns-3.6.0

Description

Simple DNS resolver for asyncio

Added to portage

2025-12-06

awscli - 1.43.10
Ebuild name:

app-admin/awscli-1.43.10

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-06

bcc - 0.35.0-r2
Ebuild name:

dev-util/bcc-0.35.0-r2

Description

Tools for BPF-based Linux IO analysis, networking, monitoring, and more

Added to portage

2025-12-06

bcrypt_pbkdf - 1.1.2
Ebuild name:

dev-ruby/bcrypt_pbkdf-1.1.2

Description

Implements bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)

Added to portage

2025-12-06

blas-lapack-aux-wrapper - 3
Ebuild name:

sci-libs/blas-lapack-aux-wrapper-3

Description

BLAS/LAPACK wrappers for FlexiBLAS

Added to portage

2025-12-06

boto3 - 1.42.4
Ebuild name:

dev-python/boto3-1.42.4

Description

The AWS SDK for Python

Added to portage

2025-12-06

botocore - 1.42.4
Ebuild name:

dev-python/botocore-1.42.4

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-06

fastfetch - 2.56.0
Ebuild name:

app-misc/fastfetch-2.56.0

Description

Fast neofetch-like system information tool

Added to portage

2025-12-06

gcc - 13.4.1_p20251204
Ebuild name:

sys-devel/gcc-13.4.1_p20251204

Description

The GNU Compiler Collection

Added to portage

2025-12-06

gcc - 14.3.1_p20251205
Ebuild name:

sys-devel/gcc-14.3.1_p20251205

Description

The GNU Compiler Collection

Added to portage

2025-12-06

gnatmem - 2021-r6
Ebuild name:

dev-ada/gnatmem-2021-r6

Description

Monitors dynamic allocation and deallocation activity in a program

Added to portage

2025-12-06

go - 1.24.11
Ebuild name:

dev-lang/go-1.24.11

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2025-12-06

go - 1.25.5
Ebuild name:

dev-lang/go-1.25.5

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2025-12-06

hotspot - 1.5.1_p20250907
Ebuild name:

dev-debug/hotspot-1.5.1_p20250907

Description

Linux perf GUI for performance analysis

Added to portage

2025-12-06

hotspot - 9999
Ebuild name:

dev-debug/hotspot-9999

Description

Linux perf GUI for performance analysis

Added to portage

2025-12-06

knot - 3.4.9-r1
Ebuild name:

net-dns/knot-3.4.9-r1

Description

High-performance authoritative-only DNS server

Added to portage

2025-12-06

knot - 3.5.2-r1
Ebuild name:

net-dns/knot-3.5.2-r1

Description

High-performance authoritative-only DNS server

Added to portage

2025-12-06

libgit2 - 1.9.2
Ebuild name:

dev-libs/libgit2-1.9.2

Description

A linkable library for Git

Added to portage

2025-12-06

librt - 0.7.2
Ebuild name:

dev-python/librt-0.7.2

Description

Mypyc runtime library

Added to portage

2025-12-06

libtmux - 0.50.1
Ebuild name:

dev-python/libtmux-0.50.1

Description

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

Added to portage

2025-12-06

marshmallow - 4.1.1
Ebuild name:

dev-python/marshmallow-4.1.1

Description

A library for converting to and from native Python datatypes

Added to portage

2025-12-06

netavark - 1.17.0
Ebuild name:

app-containers/netavark-1.17.0

Description

A container network stack

Added to portage

2025-12-06

openblas - 0.3.30-r4
Ebuild name:

sci-libs/openblas-0.3.30-r4

Description

Optimized BLAS library based on GotoBLAS2

Added to portage

2025-12-06

orjson - 3.11.5
Ebuild name:

dev-python/orjson-3.11.5

Description

Fast, correct Python JSON library supporting dataclasses, datetimes, and n

Added to portage

2025-12-06

pbs-installer - 2025.12.5
Ebuild name:

dev-python/pbs-installer-2025.12.5

Description

Installer for Python Build Standalone

Added to portage

2025-12-06

phonenumbers - 9.0.20
Ebuild name:

dev-python/phonenumbers-9.0.20

Description

Python port of Google's libphonenumber

Added to portage

2025-12-06

platformdirs - 4.5.1
Ebuild name:

dev-python/platformdirs-4.5.1

Description

A small Python module for determining appropriate platform-specific d

Added to portage

2025-12-06

postfix - 3.11_pre20251205
Ebuild name:

mail-mta/postfix-3.11_pre20251205

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-12-06

protobuf - 6.33.2
Ebuild name:

dev-python/protobuf-6.33.2

Description

Google's Protocol Buffers - Python bindings

Added to portage

2025-12-06

psycopg - 3.3.2
Ebuild name:

dev-python/psycopg-3.3.2

Description

PostgreSQL database adapter for Python

Added to portage

2025-12-06

ptools - 1.5.2
Ebuild name:

dev-ruby/ptools-1.5.2

Description

Several handy methods to Ruby's core File class

Added to portage

2025-12-06

pyqt-builder - 1.19.1
Ebuild name:

dev-python/pyqt-builder-1.19.1

Description

The PEP 517 compliant PyQt build system

Added to portage

2025-12-06

pyqt6 - 6.10.1
Ebuild name:

dev-python/pyqt6-6.10.1

Description

Python bindings for the Qt framework

Added to portage

2025-12-06

pytest-jobserver - 1.0.0
Ebuild name:

dev-python/pytest-jobserver-1.0.0

Description

Limit parallel tests with POSIX jobserver

Added to portage

2025-12-06

python - 0.3.13.11
Ebuild name:

dev-lang/python-0.3.13.11

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2025-12-06

python - 0.3.14.2
Ebuild name:

dev-lang/python-0.3.14.2

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2025-12-06

python - 3.13.11
Ebuild name:

dev-lang/python-3.13.11

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-12-06

python - 3.14.2
Ebuild name:

dev-lang/python-3.14.2

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-12-06

python-lsp-server - 1.14.0
Ebuild name:

dev-python/python-lsp-server-1.14.0

Description

Python Language Server for the Language Server Protocol

Added to portage

2025-12-06

python-tests - 0.3.13.11
Ebuild name:

dev-python/python-tests-0.3.13.11

Description

Test modules from dev-lang/python

Added to portage

2025-12-06

python-tests - 0.3.14.2
Ebuild name:

dev-python/python-tests-0.3.14.2

Description

Test modules from dev-lang/python

Added to portage

2025-12-06

python-tests - 3.13.11
Ebuild name:

dev-python/python-tests-3.13.11

Description

Test modules from dev-lang/python

Added to portage

2025-12-06

python-tests - 3.14.2
Ebuild name:

dev-python/python-tests-3.14.2

Description

Test modules from dev-lang/python

Added to portage

2025-12-06

rackup - 2.3.1
Ebuild name:

dev-ruby/rackup-2.3.1

Description

A general server command for Rack applications

Added to portage

2025-12-06

rdoc - 6.16.1
Ebuild name:

dev-ruby/rdoc-6.16.1

Description

An extended version of the RDoc library from Ruby 1.8

Added to portage

2025-12-06

recog - 3.1.24
Ebuild name:

dev-ruby/recog-3.1.24

Description

Pattern recognition for hosts, services, and content

Added to portage

2025-12-06

ssss - 0.5.7-r3
Ebuild name:

app-crypt/ssss-0.5.7-r3

Description

Shamir's Secret Sharing Scheme

Added to portage

2025-12-06

stan - 0.4.1-r1
Ebuild name:

app-crypt/stan-0.4.1-r1

Description

Stan analyzes binary streams and calculates statistical information

Added to portage

2025-12-06

statsmodels - 0.14.6
Ebuild name:

dev-python/statsmodels-0.14.6

Description

Statistical computations and models for use with SciPy

Added to portage

2025-12-06

stoken - 0.92-r3
Ebuild name:

app-crypt/stoken-0.92-r3

Description

Software Token for Linux/UNIX

Added to portage

2025-12-06

stringio - 3.1.9
Ebuild name:

dev-ruby/stringio-3.1.9

Description

Pseudo IO class from/to String.

Added to portage

2025-12-06

swtpm - 0.10.0
Ebuild name:

app-crypt/swtpm-0.10.0

Description

Libtpms-based TPM emulator

Added to portage

2025-12-06

test-unit - 3.7.3
Ebuild name:

dev-ruby/test-unit-3.7.3

Description

An xUnit family unit testing framework for Ruby

Added to portage

2025-12-06

test-unit-ruby-core - 1.0.14
Ebuild name:

dev-ruby/test-unit-ruby-core-1.0.14

Description

Additional test assertions for Ruby standard libraries

Added to portage

2025-12-06

transformers - 4.57.3
Ebuild name:

sci-ml/transformers-4.57.3

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2025-12-06

tree-sitter-bash - 0.25.1
Ebuild name:

dev-libs/tree-sitter-bash-0.25.1

Description

Bash grammar for Tree-sitter

Added to portage

2025-12-06

tree-sitter-cmake - 0.7.2
Ebuild name:

dev-libs/tree-sitter-cmake-0.7.2

Description

CMake grammar for tree-sitter

Added to portage

2025-12-06

tree-sitter-query - 0.8.0
Ebuild name:

dev-libs/tree-sitter-query-0.8.0

Description

Tree-sitter query grammar for Tree-sitter

Added to portage

2025-12-06

urllib3 - 2.6.0
Ebuild name:

dev-python/urllib3-2.6.0

Description

HTTP library with thread-safe connection pooling, file post, and more

Added to portage

2025-12-06

uv - 0.9.16
Ebuild name:

dev-python/uv-0.9.16

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-12-06

uv-build - 0.9.16
Ebuild name:

dev-python/uv-build-0.9.16

Description

PEP517 uv build backend

Added to portage

2025-12-06

vivaldi - 7.7.3851.58
Ebuild name:

www-client/vivaldi-7.7.3851.58

Description

A browser for our friends

Added to portage

2025-12-06

vivaldi-snapshot - 7.8.3885.4
Ebuild name:

www-client/vivaldi-snapshot-7.8.3885.4

Description

A browser for our friends

Added to portage

2025-12-06

xarray - 2025.12.0
Ebuild name:

dev-python/xarray-2025.12.0

Description

N-D labeled arrays and datasets in Python

Added to portage

2025-12-06

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