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:

82689

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-02
eisl - 5.62
Ebuild name:

dev-lang/eisl-5.62

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2026-01-02

nprolog - 4.78
Ebuild name:

dev-lang/nprolog-4.78

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-01-02

2026-01-01
amq-protocol - 2.5.0
Ebuild name:

dev-ruby/amq-protocol-2.5.0

Description

An AMQP 0.9.1 serialization library for Ruby

Added to portage

2026-01-01

arti - 1.8.0
Ebuild name:

net-p2p/arti-1.8.0

Description

Implementation of Tor in Rust

Added to portage

2026-01-01

bcrypt-ruby - 3.1.21
Ebuild name:

dev-ruby/bcrypt-ruby-3.1.21

Description

An easy way to keep your users' passwords secure

Added to portage

2026-01-01

cddlib - 094n
Ebuild name:

sci-libs/cddlib-094n

Description

C library implementing the Double Description Method

Added to portage

2026-01-01

chrome-binary-plugins - 143.0.7499.169
Ebuild name:

www-plugins/chrome-binary-plugins-143.0.7499.169

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-01-01

chrome-binary-plugins - 144.0.7559.31_beta
Ebuild name:

www-plugins/chrome-binary-plugins-144.0.7559.31_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-01-01

chrome-binary-plugins - 145.0.7587.4_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-145.0.7587.4_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-01-01

chromedriver-bin - 143.0.7499.169
Ebuild name:

www-apps/chromedriver-bin-143.0.7499.169

Description

WebDriver for Chrome

Added to portage

2026-01-01

curl - 8.18.0_rc3
Ebuild name:

net-misc/curl-8.18.0_rc3

Description

A Client that groks URLs

Added to portage

2026-01-01

deskflow - 1.25.0
Ebuild name:

gui-apps/deskflow-1.25.0

Description

Share a mouse and keyboard between computers (FOSS version of Synergy)

Added to portage

2026-01-01

fable - 4.28.0
Ebuild name:

dev-dotnet/fable-4.28.0

Description

F to JavaScript, TypeScript, Python, Rust and Dart Compiler

Added to portage

2026-01-01

fonttosfnt - 1.2.5
Ebuild name:

x11-apps/fonttosfnt-1.2.5

Description

X.Org fonttosfnt application

Added to portage

2026-01-01

git-merge-changelog - 1.0
Ebuild name:

dev-vcs/git-merge-changelog-1.0

Description

Git merge driver for GNU style ChangeLog files

Added to portage

2026-01-01

gnatformat - 26.0.0
Ebuild name:

dev-ada/gnatformat-26.0.0

Description

Opinionated code formatter for the Ada language

Added to portage

2026-01-01

google-chrome - 143.0.7499.169
Ebuild name:

www-client/google-chrome-143.0.7499.169

Description

The web browser from Google

Added to portage

2026-01-01

google-chrome-beta - 144.0.7559.31
Ebuild name:

www-client/google-chrome-beta-144.0.7559.31

Description

The web browser from Google

Added to portage

2026-01-01

google-chrome-unstable - 145.0.7587.4
Ebuild name:

www-client/google-chrome-unstable-145.0.7587.4

Description

The web browser from Google

Added to portage

2026-01-01

libsdl2 - 2.32.62
Ebuild name:

media-libs/libsdl2-2.32.62

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.2.30
Ebuild name:

media-libs/libsdl3-3.2.30

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.4.0
Ebuild name:

media-libs/libsdl3-3.4.0

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libva-intel-media-driver - 25.4.6
Ebuild name:

media-libs/libva-intel-media-driver-25.4.6

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-01-01

lidarr-bin - 3.1.1.4900
Ebuild name:

www-apps/lidarr-bin-3.1.1.4900

Description

Looks and smells like Sonarr but made for music

Added to portage

2026-01-01

melonds - 1.1-r1
Ebuild name:

games-emulation/melonds-1.1-r1

Description

Nintendo DS emulator, sorta

Added to portage

2026-01-01

microsoft-edge - 143.0.3650.96
Ebuild name:

www-client/microsoft-edge-143.0.3650.96

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-beta - 144.0.3719.23
Ebuild name:

www-client/microsoft-edge-beta-144.0.3719.23

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-beta - 144.0.3719.35
Ebuild name:

www-client/microsoft-edge-beta-144.0.3719.35

Description

The web browser from Microsoft

Added to portage

2026-01-01

microsoft-edge-dev - 145.0.3734.1
Ebuild name:

www-client/microsoft-edge-dev-145.0.3734.1

Description

The web browser from Microsoft

Added to portage

2026-01-01

moonlight - 6.1.0-r3
Ebuild name:

net-misc/moonlight-6.1.0-r3

Description

NVIDIA GameStream (and Sunshine) client

Added to portage

2026-01-01

obs-vkcapture - 1.5.3-r1
Ebuild name:

media-plugins/obs-vkcapture-1.5.3-r1

Description

OBS Linux Vulkan/OpenGL game capture

Added to portage

2026-01-01

opera - 125.0.5729.49
Ebuild name:

www-client/opera-125.0.5729.49

Description

A fast and secure web browser

Added to portage

2026-01-01

opera-beta - 126.0.5750.11
Ebuild name:

www-client/opera-beta-126.0.5750.11

Description

A fast and secure web browser

Added to portage

2026-01-01

opera-developer - 126.0.5748.0
Ebuild name:

www-client/opera-developer-126.0.5748.0

Description

A fast and secure web browser

Added to portage

2026-01-01

outline-magic - 0.9
Ebuild name:

app-emacs/outline-magic-0.9

Description

Outline mode extensions for Emacs

Added to portage

2026-01-01

package-build - 4.0.0
Ebuild name:

app-emacs/package-build-4.0.0

Description

Tools for assembling a package archive

Added to portage

2026-01-01

pauker - 1.8-r5
Ebuild name:

games-puzzle/pauker-1.8-r5

Description

A java based flashcard program

Added to portage

2026-01-01

pymdown-extensions - 10.20
Ebuild name:

dev-python/pymdown-extensions-10.20

Description

Extensions for Python Markdown

Added to portage

2026-01-01

python-gnupg - 0.5.6
Ebuild name:

dev-python/python-gnupg-0.5.6

Description

A Python wrapper for GnuPG

Added to portage

2026-01-01

radarr-bin - 6.1.0.10316
Ebuild name:

www-apps/radarr-bin-6.1.0.10316

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2026-01-01

rgb - 1.1.1
Ebuild name:

x11-apps/rgb-1.1.1

Description

uncompile an rgb color-name database

Added to portage

2026-01-01

rouge - 4.7.0
Ebuild name:

dev-ruby/rouge-4.7.0

Description

Yet-another-markdown-parser using a strict syntax definition in pure Ruby

Added to portage

2026-01-01

socket-burst-dampener - 1.3.4
Ebuild name:

net-misc/socket-burst-dampener-1.3.4

Description

A daemon that spawns one command per connection, and dampens c

Added to portage

2026-01-01

sourcegit - 2025.41
Ebuild name:

dev-vcs/sourcegit-2025.41

Description

Open Source Git GUI client using .NET AvaloniaUI

Added to portage

2026-01-01

sphinx - 9.1.0
Ebuild name:

dev-python/sphinx-9.1.0

Description

Python documentation generator

Added to portage

2026-01-01

tlfloat - 1.17.1_p20250711
Ebuild name:

dev-cpp/tlfloat-1.17.1_p20250711

Description

C++ template library for floating point operations

Added to portage

2026-01-01

tt-rss - 20251216
Ebuild name:

www-apps/tt-rss-20251216

Description

Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX

Added to portage

2026-01-01

ty - 0.0.7
Ebuild name:

dev-util/ty-0.0.7

Description

An extremely fast Python type checker and language server, written in Rust

Added to portage

2026-01-01

xauth - 1.1.5
Ebuild name:

x11-apps/xauth-1.1.5

Description

X authority file utility

Added to portage

2026-01-01

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