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:

82345

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-08
apprise - 1.9.6
Ebuild name:

dev-python/apprise-1.9.6

Description

Push Notifications that work with just about every platform

Added to portage

2025-12-08

basket - 2.49b_p20251207
Ebuild name:

kde-misc/basket-2.49b_p20251207

Description

Multiple information organizer - a DropDrawers clone

Added to portage

2025-12-08

black - 25.12.0
Ebuild name:

dev-python/black-25.12.0

Description

The uncompromising Python code formatter

Added to portage

2025-12-08

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

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

Description

BLAS/LAPACK wrappers for FlexiBLAS

Added to portage

2025-12-08

blockbuster - 1.5.26
Ebuild name:

dev-python/blockbuster-1.5.26

Description

Utility to detect blocking calls in the async event loop

Added to portage

2025-12-08

cmd2 - 3.0.0
Ebuild name:

dev-python/cmd2-3.0.0

Description

Extra features for standard library's cmd module

Added to portage

2025-12-08

fsautocomplete - 0.82.0
Ebuild name:

dev-dotnet/fsautocomplete-0.82.0

Description

F language server using the Language Server Protocol

Added to portage

2025-12-08

gcc - 16.0.0_p20251207
Ebuild name:

sys-devel/gcc-16.0.0_p20251207

Description

The GNU Compiler Collection

Added to portage

2025-12-08

gmpy2 - 2.3.0_alpha3
Ebuild name:

dev-python/gmpy2-2.3.0_alpha3

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2025-12-08

guildmaster - 0_pre20250712
Ebuild name:

dev-build/guildmaster-0_pre20250712

Description

FIFO-like jobserver node via CUSE

Added to portage

2025-12-08

httpx-socks - 0.11.0
Ebuild name:

dev-python/httpx-socks-0.11.0

Description

Proxy (HTTP, SOCKS) transports for httpx

Added to portage

2025-12-08

incus - 6.19.1
Ebuild name:

app-containers/incus-6.19.1

Description

Modern, secure and powerful system container and virtual machine manage

Added to portage

2025-12-08

koleo-cli - 0.2.137.24.2
Ebuild name:

app-misc/koleo-cli-0.2.137.24.2

Description

A simple CLI for koleo.pl railway planner

Added to portage

2025-12-08

libtmux - 0.52.1
Ebuild name:

dev-python/libtmux-0.52.1

Description

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

Added to portage

2025-12-08

mistletoe - 1.5.1
Ebuild name:

dev-python/mistletoe-1.5.1

Description

A fast, extensible Markdown parser in pure Python

Added to portage

2025-12-08

pymdown-extensions - 10.18
Ebuild name:

dev-python/pymdown-extensions-10.18

Description

Extensions for Python Markdown

Added to portage

2025-12-08

pypdf - 6.4.1
Ebuild name:

dev-python/pypdf-6.4.1

Description

Python library to work with PDF files

Added to portage

2025-12-08

pyzstd - 0.19.0
Ebuild name:

dev-python/pyzstd-0.19.0

Description

Support for Zstandard (zstd) compression

Added to portage

2025-12-08

racket-mode - 1_p20251107
Ebuild name:

app-emacs/racket-mode-1_p20251107

Description

Emacs modes for Racket edit, REPL, check-syntax, debug, profile,

Added to portage

2025-12-08

rsyslog - 8.2512.0
Ebuild name:

app-admin/rsyslog-8.2512.0

Description

An enhanced multi-threaded syslogd with database support and more

Added to portage

2025-12-08

spawn - 25.0.0-r4
Ebuild name:

dev-ada/spawn-25.0.0-r4

Description

Simple API to spawn processes

Added to portage

2025-12-08

xterm - 404
Ebuild name:

x11-terms/xterm-404

Description

Terminal Emulator for X Windows

Added to portage

2025-12-08

xvfbwrapper - 0.2.16
Ebuild name:

dev-python/xvfbwrapper-0.2.16

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2025-12-08

yt-dlp - 2025.12.08
Ebuild name:

net-misc/yt-dlp-2025.12.08

Description

youtube-dl fork with additional features and fixes

Added to portage

2025-12-08

yt-dlp-ejs - 0.3.2
Ebuild name:

dev-python/yt-dlp-ejs-0.3.2

Description

External JavaScript for yt-dlp supporting many runtimes

Added to portage

2025-12-08

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

dist-kernel - 5.10.247
Ebuild name:

virtual/dist-kernel-5.10.247

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 5.15.197
Ebuild name:

virtual/dist-kernel-5.15.197

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.1.159
Ebuild name:

virtual/dist-kernel-6.1.159

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.12.61
Ebuild name:

virtual/dist-kernel-6.12.61

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.17.11
Ebuild name:

virtual/dist-kernel-6.17.11

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.6.119
Ebuild name:

virtual/dist-kernel-6.6.119

Description

Virtual to depend on any Distribution Kernel

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-kernel - 5.15.197
Ebuild name:

sys-kernel/gentoo-kernel-5.15.197

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.1.159
Ebuild name:

sys-kernel/gentoo-kernel-6.1.159

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.12.61
Ebuild name:

sys-kernel/gentoo-kernel-6.12.61

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.17.11
Ebuild name:

sys-kernel/gentoo-kernel-6.17.11

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.6.119
Ebuild name:

sys-kernel/gentoo-kernel-6.6.119

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 5.10.247
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.247

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 5.15.197
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.197

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.1.159
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.159

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.12.61
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.61

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.17.11
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.11

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.6.119
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.119

Description

Pre-built Linux kernel 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-kernel - 5.10.247
Ebuild name:

sys-kernel/vanilla-kernel-5.10.247

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 5.15.197
Ebuild name:

sys-kernel/vanilla-kernel-5.15.197

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.1.159
Ebuild name:

sys-kernel/vanilla-kernel-6.1.159

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.12.61
Ebuild name:

sys-kernel/vanilla-kernel-6.12.61

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.17.11
Ebuild name:

sys-kernel/vanilla-kernel-6.17.11

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.6.119
Ebuild name:

sys-kernel/vanilla-kernel-6.6.119

Description

Linux kernel built from vanilla upstream sources

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

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