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:

80818

userrating:

average rating: 1.2 (50 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


rate this article:
current rating: average rating: 1.4 (104 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2025-09-15
dealii - 9.7.1
Ebuild name:

sci-libs/dealii-9.7.1

Description

Solving partial differential equations with the finite element method

Added to portage

2025-09-15

dillo - 3.2.0
Ebuild name:

www-client/dillo-3.2.0

Description

Lean FLTK based web browser

Added to portage

2025-09-15

ffmpeg - 7.1.2
Ebuild name:

media-video/ffmpeg-7.1.2

Description

Complete solution to record/convert/stream audio and video

Added to portage

2025-09-15

ffmpeg-compat - 7.1.2
Ebuild name:

media-video/ffmpeg-compat-7.1.2

Description

Complete solution to record/convert/stream audio and video

Added to portage

2025-09-15

gcc - 16.0.0_p20250914
Ebuild name:

sys-devel/gcc-16.0.0_p20250914

Description

The GNU Compiler Collection

Added to portage

2025-09-15

git-sources - 6.17_rc6
Ebuild name:

sys-kernel/git-sources-6.17_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2025-09-15

hw-probe - 1.6.6-r3
Ebuild name:

sys-apps/hw-probe-1.6.6-r3

Description

A tool to probe for hardware, check it's operability and find drivers

Added to portage

2025-09-15

jpegoptim - 1.5.6
Ebuild name:

media-gfx/jpegoptim-1.5.6

Description

Utility to optimize JPEG files

Added to portage

2025-09-15

libopenmpt - 0.8.3
Ebuild name:

media-libs/libopenmpt-0.8.3

Description

Library to decode tracked music files (modules)

Added to portage

2025-09-15

minisig-keys-ccache - 20250914
Ebuild name:

sec-keys/minisig-keys-ccache-20250914

Description

OpenPGP keys used for ccache

Added to portage

2025-09-15

openmpt123 - 0.8.3
Ebuild name:

media-sound/openmpt123-0.8.3

Description

libopenmpt-based command line player for tracked music files (modules)

Added to portage

2025-09-15

postgresql - 13.22-r2
Ebuild name:

dev-db/postgresql-13.22-r2

Description

PostgreSQL RDBMS

Added to portage

2025-09-15

postgresql - 14.19-r2
Ebuild name:

dev-db/postgresql-14.19-r2

Description

PostgreSQL RDBMS

Added to portage

2025-09-15

postgresql - 15.14-r2
Ebuild name:

dev-db/postgresql-15.14-r2

Description

PostgreSQL RDBMS

Added to portage

2025-09-15

postgresql - 16.10-r2
Ebuild name:

dev-db/postgresql-16.10-r2

Description

PostgreSQL RDBMS

Added to portage

2025-09-15

postgresql - 17.6-r1
Ebuild name:

dev-db/postgresql-17.6-r1

Description

PostgreSQL RDBMS

Added to portage

2025-09-15

postgresql - 18_rc1-r2
Ebuild name:

dev-db/postgresql-18_rc1-r2

Description

PostgreSQL RDBMS

Added to portage

2025-09-15

pyenchant - 3.3.0
Ebuild name:

dev-python/pyenchant-3.3.0

Description

Python bindings for the Enchant spellchecking system

Added to portage

2025-09-15

pyopenssl - 25.2.0
Ebuild name:

dev-python/pyopenssl-25.2.0

Description

Python interface to the OpenSSL library

Added to portage

2025-09-15

python-dbusmock - 0.37.0
Ebuild name:

dev-python/python-dbusmock-0.37.0

Description

Easily create mock objects on D-Bus for software testing

Added to portage

2025-09-15

scx - 1.0.16
Ebuild name:

sys-kernel/scx-1.0.16

Description

sched_ext schedulers and tools

Added to portage

2025-09-15

slack - 4.46.96
Ebuild name:

net-im/slack-4.46.96

Description

Team collaboration tool

Added to portage

2025-09-15

syd - 3.38.5
Ebuild name:

sys-apps/syd-3.38.5

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-09-15

thunar - 4.20.5
Ebuild name:

xfce-base/thunar-4.20.5

Description

File manager for the Xfce desktop environment

Added to portage

2025-09-15

types-docutils - 0.22.0.20250914
Ebuild name:

dev-python/types-docutils-0.22.0.20250914

Description

Typing stubs for docutils

Added to portage

2025-09-15

unionfs-fuse - 3.7
Ebuild name:

sys-fs/unionfs-fuse-3.7

Description

Self-syncing tree-merging file system based on FUSE

Added to portage

2025-09-15

xlsxwriter - 3.2.8
Ebuild name:

dev-python/xlsxwriter-3.2.8

Description

Python module for creating Excel XLSX files

Added to portage

2025-09-15

zstandard - 0.25.0
Ebuild name:

dev-python/zstandard-0.25.0

Description

Zstandard Bindings for Python

Added to portage

2025-09-15

2025-09-14
389-ds-base - 3.0.6
Ebuild name:

net-nds/389-ds-base-3.0.6

Description

389 Directory Server (core libraries and daemons)

Added to portage

2025-09-14

asahi-sources - 6.16.4_p2
Ebuild name:

sys-kernel/asahi-sources-6.16.4_p2

Description

Asahi Linux kernel sources

Added to portage

2025-09-14

baselayout - 2.18
Ebuild name:

sys-apps/baselayout-2.18

Description

Filesystem baselayout and init scripts

Added to portage

2025-09-14

cairo-clock - 0.3.4-r4
Ebuild name:

x11-misc/cairo-clock-0.3.4-r4

Description

An analog clock displaying the system-time

Added to portage

2025-09-14

certbot - 5.0.0
Ebuild name:

app-crypt/certbot-5.0.0

Description

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

Added to portage

2025-09-14

cups - 2.4.14
Ebuild name:

net-print/cups-2.4.14

Description

The Common Unix Printing System

Added to portage

2025-09-14

deskflow - 1.24.0
Ebuild name:

gui-apps/deskflow-1.24.0

Description

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

Added to portage

2025-09-14

docutils - 0.22.1_rc1
Ebuild name:

dev-python/docutils-0.22.1_rc1

Description

Python Documentation Utilities (reference reStructuredText impl.)

Added to portage

2025-09-14

dunst - 1.13.0-r1
Ebuild name:

x11-misc/dunst-1.13.0-r1

Description

Lightweight replacement for common notification daemons

Added to portage

2025-09-14

e16-themes - 1.0.2-r2
Ebuild name:

x11-themes/e16-themes-1.0.2-r2

Description

All the official E16 themes

Added to portage

2025-09-14

emlop - 0.8.2
Ebuild name:

app-portage/emlop-0.8.2

Description

A fast, accurate, ergonomic emerge.log parser

Added to portage

2025-09-14

fish - 4.0.6
Ebuild name:

app-shells/fish-4.0.6

Description

Friendly Interactive SHell

Added to portage

2025-09-14

fs-uae - 3.2.35
Ebuild name:

app-emulation/fs-uae-3.2.35

Description

Integrates the most accurate Amiga emulation code available from WinUAE

Added to portage

2025-09-14

fs-uae-launcher - 3.2.20
Ebuild name:

app-emulation/fs-uae-launcher-3.2.20

Description

PyQt-based launcher for FS-UAE

Added to portage

2025-09-14

gcc - 13.4.1_p20250911
Ebuild name:

sys-devel/gcc-13.4.1_p20250911

Description

The GNU Compiler Collection

Added to portage

2025-09-14

gcc - 14.3.1_p20250912
Ebuild name:

sys-devel/gcc-14.3.1_p20250912

Description

The GNU Compiler Collection

Added to portage

2025-09-14

gcc - 15.2.1_p20250913
Ebuild name:

sys-devel/gcc-15.2.1_p20250913

Description

The GNU Compiler Collection

Added to portage

2025-09-14

git-merge-changelog - 0_pre20250729
Ebuild name:

dev-vcs/git-merge-changelog-0_pre20250729

Description

Git merge driver for GNU style ChangeLog files

Added to portage

2025-09-14

gnubiff - 2.2.17-r4
Ebuild name:

net-mail/gnubiff-2.2.17-r4

Description

A mail notification program

Added to portage

2025-09-14

hypothesis - 6.138.16
Ebuild name:

dev-python/hypothesis-6.138.16

Description

A library for property based testing

Added to portage

2025-09-14

inih - 62
Ebuild name:

dev-libs/inih-62

Description

inih (INI not invented here) simple .INI file parser

Added to portage

2025-09-14

josepy - 2.1.0
Ebuild name:

dev-python/josepy-2.1.0

Description

JOSE protocol implementation in Python

Added to portage

2025-09-14

json-glib - 1.10.8
Ebuild name:

dev-libs/json-glib-1.10.8

Description

Library providing GLib serialization and deserialization for the JSON for

Added to portage

2025-09-14

liboggz - 1.1.3
Ebuild name:

media-libs/liboggz-1.1.3

Description

A simple programming interface for reading and writing Ogg files and strea

Added to portage

2025-09-14

libserialport - 0.1.2-r1
Ebuild name:

dev-libs/libserialport-0.1.2-r1

Description

Cross platform serial port access library

Added to portage

2025-09-14

locale-gen - 3.7
Ebuild name:

sys-apps/locale-gen-3.7

Description

Generate locales based upon the config file /etc/locale.gen

Added to portage

2025-09-14

luarocks - 3.12.2-r1
Ebuild name:

dev-lua/luarocks-3.12.2-r1

Description

A package manager for the Lua programming language

Added to portage

2025-09-14

lumberjack - 1.4.2
Ebuild name:

dev-ruby/lumberjack-1.4.2

Description

A simple, powerful, and very fast logging utility

Added to portage

2025-09-14

moor - 1.33.0
Ebuild name:

sys-apps/moor-1.33.0

Description

Pager designed to do the right thing without any configuration

Added to portage

2025-09-14

moor - 2.1.1
Ebuild name:

sys-apps/moor-2.1.1

Description

Pager designed to do the right thing without any configuration

Added to portage

2025-09-14

mupdf - 1.26.3
Ebuild name:

app-text/mupdf-1.26.3

Description

A lightweight PDF viewer and toolkit written in portable C

Added to portage

2025-09-14

nginx-unit - 1.35.0
Ebuild name:

www-servers/nginx-unit-1.35.0

Description

Dynamic web and application server

Added to portage

2025-09-14

nss - 3.116
Ebuild name:

dev-libs/nss-3.116

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2025-09-14

pam_u2f - 1.4.0
Ebuild name:

sys-auth/pam_u2f-1.4.0

Description

PAM module for FIDO2 and U2F keys

Added to portage

2025-09-14

portage - 3.0.69
Ebuild name:

sys-apps/portage-3.0.69

Description

The package management and distribution system for Gentoo

Added to portage

2025-09-14

prism - 1.5.0
Ebuild name:

dev-ruby/prism-1.5.0

Description

Prism Ruby parser

Added to portage

2025-09-14

prism - 1.5.1
Ebuild name:

dev-ruby/prism-1.5.1

Description

Prism Ruby parser

Added to portage

2025-09-14

prng - 3.0.2-r4
Ebuild name:

sci-mathematics/prng-3.0.2-r4

Description

Pseudo-Random Number Generator library

Added to portage

2025-09-14

proftpd - 1.3.9-r3
Ebuild name:

net-ftp/proftpd-1.3.9-r3

Description

An advanced and very configurable FTP server

Added to portage

2025-09-14

prusaslicer - 2.9.3
Ebuild name:

media-gfx/prusaslicer-2.9.3

Description

A mesh slicer to generate G-code for fused-filament-fabrication (3D pri

Added to portage

2025-09-14

pundit - 2.5.1
Ebuild name:

dev-ruby/pundit-2.5.1

Description

Object oriented authorization for Rails applications

Added to portage

2025-09-14

pydantic - 2.11.9
Ebuild name:

dev-python/pydantic-2.11.9

Description

Data parsing and validation using Python type hints

Added to portage

2025-09-14

pyparsing - 3.2.4
Ebuild name:

dev-python/pyparsing-3.2.4

Description

Easy-to-use Python module for text parsing

Added to portage

2025-09-14

safetensors - 0.6.2
Ebuild name:

sci-ml/safetensors-0.6.2

Description

Simple, safe way to store and distribute tensors

Added to portage

2025-09-14

sigil - 2.6.2
Ebuild name:

app-text/sigil-2.6.2

Description

Multi-platform WYSIWYG ebook editor for ePub format

Added to portage

2025-09-14

slang - 2.3.3-r2
Ebuild name:

sys-libs/slang-2.3.3-r2

Description

Multi-platform library designed to allow a developer to create robust softw

Added to portage

2025-09-14

spectrum2 - 2.2.1-r1
Ebuild name:

net-im/spectrum2-2.2.1-r1

Description

An open source instant messaging transport

Added to portage

2025-09-14

starlette - 0.48.0
Ebuild name:

dev-python/starlette-0.48.0

Description

The little ASGI framework that shines

Added to portage

2025-09-14

term-ansicolor - 1.11.3
Ebuild name:

dev-ruby/term-ansicolor-1.11.3

Description

Small Ruby library that colors strings using ANSI escape sequences

Added to portage

2025-09-14

unicode-data - 17.0.0
Ebuild name:

app-i18n/unicode-data-17.0.0

Description

Unicode data from unicode.org

Added to portage

2025-09-14

unicode-emoji - 17.0.0
Ebuild name:

app-i18n/unicode-emoji-17.0.0

Description

UTS 51 Unicode Emoji

Added to portage

2025-09-14

virglrenderer - 1.2.0
Ebuild name:

media-libs/virglrenderer-1.2.0

Description

Library used implement a virtual 3D GPU used by qemu

Added to portage

2025-09-14

vivaldi - 7.5.3735.74
Ebuild name:

www-client/vivaldi-7.5.3735.74

Description

A browser for our friends

Added to portage

2025-09-14

vivaldi-snapshot - 7.6.3797.37
Ebuild name:

www-client/vivaldi-snapshot-7.6.3797.37

Description

A browser for our friends

Added to portage

2025-09-14

vlc - 3.0.22_rc1-r1
Ebuild name:

media-video/vlc-3.0.22_rc1-r1

Description

Media player and framework with support for most multimedia files and

Added to portage

2025-09-14

vopono - 0.10.15
Ebuild name:

net-vpn/vopono-0.10.15

Description

Launch applications via VPN tunnels using temporary network namespaces

Added to portage

2025-09-14

xlsxwriter - 3.2.7
Ebuild name:

dev-python/xlsxwriter-3.2.7

Description

Python module for creating Excel XLSX files

Added to portage

2025-09-14

xor-analyze - 0.5-r1
Ebuild name:

app-crypt/xor-analyze-0.5-r1

Description

Program for cryptanalyzing xor 'encryption' with variable key length

Added to portage

2025-09-14

xsb - 4.0.0-r4
Ebuild name:

dev-lang/xsb-4.0.0-r4

Description

XSB is a logic programming and deductive database system

Added to portage

2025-09-14

yubihsm-connector - 3.0.4
Ebuild name:

app-crypt/yubihsm-connector-3.0.4

Description

Server to expose YubiHSM 2 to network

Added to portage

2025-09-14

yubihsm-shell - 2.6.0
Ebuild name:

app-crypt/yubihsm-shell-2.6.0

Description

Components used to interact with the YubiHSM 2

Added to portage

2025-09-14

yubikey-manager - 5.7.2
Ebuild name:

app-crypt/yubikey-manager-5.7.2

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-09-14

yubikey-manager - 5.8.0
Ebuild name:

app-crypt/yubikey-manager-5.8.0

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-09-14

yubikey-manager-qt - 1.2.5
Ebuild name:

app-crypt/yubikey-manager-qt-1.2.5

Description

Cross-platform application for configuring any YubiKey over all

Added to portage

2025-09-14

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 60.6 ms