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:

82791

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-12
binary-orphans - 1.0.5
Ebuild name:

dev-haskell/binary-orphans-1.0.5

Description

Compatibility package for binary; provides instances

Added to portage

2026-01-12

bitvec - 1.1.5.0
Ebuild name:

dev-haskell/bitvec-1.1.5.0

Description

Space-efficient bit vectors

Added to portage

2026-01-12

calligraplan - 4.0.1
Ebuild name:

app-office/calligraplan-4.0.1

Description

Project management application

Added to portage

2026-01-12

dulwich - 0.25.2
Ebuild name:

dev-python/dulwich-0.25.2

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-01-12

hishel - 1.1.8
Ebuild name:

dev-python/hishel-1.1.8

Description

An elegant HTTP Cache implementation for HTTPX and HTTP Core

Added to portage

2026-01-12

inkscape - 1.4.3
Ebuild name:

media-gfx/inkscape-1.4.3

Description

SVG based generic vector-drawing program

Added to portage

2026-01-12

kdevelop - 25.12.1-r1
Ebuild name:

dev-util/kdevelop-25.12.1-r1

Description

Integrated Development Environment, supporting KF6/Qt, C/C++ and much

Added to portage

2026-01-12

leancheck - 1.0.4
Ebuild name:

dev-haskell/leancheck-1.0.4

Description

Enumerative property-based testing

Added to portage

2026-01-12

onetuple - 0.4.2.1
Ebuild name:

dev-haskell/onetuple-0.4.2.1

Description

Singleton Tuple

Added to portage

2026-01-12

openpgp-keys-gentoo-developers - 20260105
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20260105

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-12

pcsx2 - 2.6.2
Ebuild name:

games-emulation/pcsx2-2.6.2

Description

PlayStation 2 emulator

Added to portage

2026-01-12

regex-base - 0.94.0.3
Ebuild name:

dev-haskell/regex-base-0.94.0.3

Description

Common

Added to portage

2026-01-12

regex-posix - 0.96.0.2
Ebuild name:

dev-haskell/regex-posix-0.96.0.2

Description

POSIX Backend for

Added to portage

2026-01-12

regex-tdfa - 1.3.2.5
Ebuild name:

dev-haskell/regex-tdfa-1.3.2.5

Description

Pure Haskell Tagged DFA Backend for

Added to portage

2026-01-12

ruby-cairo-gobject - 4.3.4
Ebuild name:

dev-ruby/ruby-cairo-gobject-4.3.4

Description

Ruby cairo-gobject bindings

Added to portage

2026-01-12

ruby-gio2 - 4.3.4-r1
Ebuild name:

dev-ruby/ruby-gio2-4.3.4-r1

Description

Ruby binding of gio-2

Added to portage

2026-01-12

ruby-glib2 - 4.3.4-r1
Ebuild name:

dev-ruby/ruby-glib2-4.3.4-r1

Description

Ruby Glib2 bindings

Added to portage

2026-01-12

ruby-gobject-introspection - 4.3.4-r1
Ebuild name:

dev-ruby/ruby-gobject-introspection-4.3.4-r1

Description

Ruby GObjectIntrospection bindings

Added to portage

2026-01-12

ruby-poppler - 4.3.4
Ebuild name:

dev-ruby/ruby-poppler-4.3.4

Description

Ruby poppler-glib bindings

Added to portage

2026-01-12

systemd - 259
Ebuild name:

sys-apps/systemd-259

Description

System and service manager for Linux

Added to portage

2026-01-12

telegram-desktop - 6.4.2
Ebuild name:

net-im/telegram-desktop-6.4.2

Description

Official desktop client for Telegram

Added to portage

2026-01-12

telegram-desktop-bin - 6.4.2
Ebuild name:

net-im/telegram-desktop-bin-6.4.2

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-01-12

test-framework - 0.8.2.3
Ebuild name:

dev-haskell/test-framework-0.8.2.3

Description

Framework for running and organising tests, with HUnit and Quick

Added to portage

2026-01-12

test-framework-hunit - 0.3.0.3
Ebuild name:

dev-haskell/test-framework-hunit-0.3.0.3

Description

HUnit support for the test-framework package

Added to portage

2026-01-12

test-framework-leancheck - 0.0.4
Ebuild name:

dev-haskell/test-framework-leancheck-0.0.4

Description

LeanCheck support for test-framework

Added to portage

2026-01-12

test-framework-quickcheck2 - 0.3.0.7
Ebuild name:

dev-haskell/test-framework-quickcheck2-0.3.0.7

Description

QuickCheck-2 support for the test-framework package

Added to portage

2026-01-12

whenever - 0.9.5
Ebuild name:

dev-python/whenever-0.9.5

Description

Modern datetime library for Python

Added to portage

2026-01-12

2026-01-11
aiodns - 4.0.0
Ebuild name:

dev-python/aiodns-4.0.0

Description

Simple DNS resolver for asyncio

Added to portage

2026-01-11

alsa-firmware - 1.2.4-r2
Ebuild name:

sys-firmware/alsa-firmware-1.2.4-r2

Description

Advanced Linux Sound Architecture firmware

Added to portage

2026-01-11

alsa-tools - 1.2.15-r1
Ebuild name:

media-sound/alsa-tools-1.2.15-r1

Description

Advanced Linux Sound Architecture tools

Added to portage

2026-01-11

ansi-terminal - 1.1.5
Ebuild name:

dev-haskell/ansi-terminal-1.1.5

Description

Simple ANSI terminal support

Added to portage

2026-01-11

ansi-terminal-types - 1.1.3
Ebuild name:

dev-haskell/ansi-terminal-types-1.1.3

Description

Types and functions used to represent SGR aspects

Added to portage

2026-01-11

assoc - 1.1.1
Ebuild name:

dev-haskell/assoc-1.1.1

Description

swap and assoc Symmetric and Semigroupy Bifunctors

Added to portage

2026-01-11

bcachefs-kmod - 1.34.0
Ebuild name:

sys-fs/bcachefs-kmod-1.34.0

Description

Linux bcachefs kernel module for sys-fs/bcachefs-tools

Added to portage

2026-01-11

bcachefs-kmod - 9999
Ebuild name:

sys-fs/bcachefs-kmod-9999

Description

Linux bcachefs kernel module for sys-fs/bcachefs-tools

Added to portage

2026-01-11

bifunctors - 5.6.3
Ebuild name:

dev-haskell/bifunctors-5.6.3

Description

Haskell 98 bifunctors, bifoldables and bitraversables

Added to portage

2026-01-11

clock - 0.8.4
Ebuild name:

dev-haskell/clock-0.8.4

Description

High-resolution clock functions monotonic, realtime, cputime

Added to portage

2026-01-11

cmake - 4.2.1-r1
Ebuild name:

dev-build/cmake-4.2.1-r1

Description

Cross platform Make

Added to portage

2026-01-11

comonad - 5.0.10
Ebuild name:

dev-haskell/comonad-5.0.10

Description

Provides comonads, the categorical dual of monads

Added to portage

2026-01-11

cstruct - 6.2
Ebuild name:

dev-python/cstruct-6.2

Description

C-style structs for Python

Added to portage

2026-01-11

cyme - 2.2.10
Ebuild name:

sys-apps/cyme-2.2.10

Description

List system USB buses and devices; a modern cross-platform `lsusb`

Added to portage

2026-01-11

data-array-byte - 0.1.0.2
Ebuild name:

dev-haskell/data-array-byte-0.1.0.2

Description

Compatibility layer for Data.Array.Byte

Added to portage

2026-01-11

data-fix - 0.3.4
Ebuild name:

dev-haskell/data-fix-0.3.4

Description

Fixpoint data types

Added to portage

2026-01-11

flexmock - 0.13.0
Ebuild name:

dev-python/flexmock-0.13.0

Description

Testing library to create mocks, stubs and fakes

Added to portage

2026-01-11

foldable1-classes-compat - 0.1.3
Ebuild name:

dev-haskell/foldable1-classes-compat-0.1.3

Description

Compatibility package for the Foldable1 and Bifoldable1

Added to portage

2026-01-11

generically - 0.1.1-r2
Ebuild name:

dev-haskell/generically-0.1.1-r2

Description

Generically newtype to use with DerivingVia

Added to portage

2026-01-11

git - 4.1.2
Ebuild name:

dev-ruby/git-4.1.2

Description

Library for using Git in Ruby

Added to portage

2026-01-11

hashable - 1.4.7.0
Ebuild name:

dev-haskell/hashable-1.4.7.0

Description

A class for types that can be converted to a hash value

Added to portage

2026-01-11

indexed-traversable - 0.1.4
Ebuild name:

dev-haskell/indexed-traversable-0.1.4

Description

FunctorWithIndex, FoldableWithIndex, TraversableWithIndex

Added to portage

2026-01-11

indexed-traversable-instances - 0.1.2
Ebuild name:

dev-haskell/indexed-traversable-instances-0.1.2

Description

More instances of FunctorWithIndex, FoldableWithInd

Added to portage

2026-01-11

inspection-testing - 0.6
Ebuild name:

dev-haskell/inspection-testing-0.6

Description

GHC plugin to do inspection testing

Added to portage

2026-01-11

libmateweather - 1.28.1-r2
Ebuild name:

dev-libs/libmateweather-1.28.1-r2

Description

MATE library to access weather information from online services

Added to portage

2026-01-11

linux-firmware - 20251125_p20251229
Ebuild name:

sys-kernel/linux-firmware-20251125_p20251229

Description

Linux firmware files

Added to portage

2026-01-11

mtl - 2.2.2-r2
Ebuild name:

dev-haskell/mtl-2.2.2-r2

Description

Monad classes, using functional dependencies

Added to portage

2026-01-11

mutter - 48.6-r1
Ebuild name:

x11-wm/mutter-48.6-r1

Description

GNOME compositing window manager based on Clutter

Added to portage

2026-01-11

onnx - 1.20.1
Ebuild name:

sci-ml/onnx-1.20.1

Description

Open Neural Network Exchange (ONNX)

Added to portage

2026-01-11

os-string - 2.0.7
Ebuild name:

dev-haskell/os-string-2.0.7

Description

Library for manipulating Operating system strings

Added to portage

2026-01-11

os-string - 2.0.8
Ebuild name:

dev-haskell/os-string-2.0.8

Description

Library for manipulating Operating system strings

Added to portage

2026-01-11

pcre-light - 0.4.1.3
Ebuild name:

dev-haskell/pcre-light-0.4.1.3

Description

Portable regex library for Perl 5 compatible regular expressions

Added to portage

2026-01-11

postfix - 3.12_pre20260110
Ebuild name:

mail-mta/postfix-3.12_pre20260110

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-01-11

qpdf - 12.3.0
Ebuild name:

app-text/qpdf-12.3.0

Description

Command-line tool for structural, content-preserving transformation of PDF fil

Added to portage

2026-01-11

quickcheck - 2.14.3-r1
Ebuild name:

dev-haskell/quickcheck-2.14.3-r1

Description

Automatic testing of Haskell programs

Added to portage

2026-01-11

quickcheck-classes-base - 0.6.2.0-r1
Ebuild name:

dev-haskell/quickcheck-classes-base-0.6.2.0-r1

Description

QuickCheck common typeclasses from 'base'

Added to portage

2026-01-11

random - 1.2.1.3
Ebuild name:

dev-haskell/random-1.2.1.3

Description

Pseudo-random number generation

Added to portage

2026-01-11

rb_sys - 0.9.124
Ebuild name:

dev-ruby/rb_sys-0.9.124

Description

Easily build Ruby native extensions in Rust

Added to portage

2026-01-11

scipy - 1.17.0
Ebuild name:

dev-python/scipy-1.17.0

Description

Scientific algorithms library for Python

Added to portage

2026-01-11

starlette - 0.51.0
Ebuild name:

dev-python/starlette-0.51.0

Description

The little ASGI framework that shines

Added to portage

2026-01-11

statevar - 1.2.2-r1
Ebuild name:

dev-haskell/statevar-1.2.2-r1

Description

State variables

Added to portage

2026-01-11

syd - 3.48.4
Ebuild name:

sys-apps/syd-3.48.4

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2026-01-11

tagged - 0.8.10
Ebuild name:

dev-haskell/tagged-0.8.10

Description

Haskell 98 phantom types to avoid unsafely passing dummy arguments

Added to portage

2026-01-11

tasty-inspection-testing - 0.2.1-r1
Ebuild name:

dev-haskell/tasty-inspection-testing-0.2.1-r1

Description

Inspection testing support for tasty

Added to portage

2026-01-11

tavern - 3.1.0
Ebuild name:

dev-python/tavern-3.1.0

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-01-11

th-abstraction - 0.7.2.0
Ebuild name:

dev-haskell/th-abstraction-0.7.2.0

Description

Nicer interface for reified information about data types

Added to portage

2026-01-11

tomli - 2.4.0
Ebuild name:

dev-python/tomli-2.4.0

Description

A lil' TOML parser

Added to portage

2026-01-11

vector - 0.13.2.0
Ebuild name:

dev-haskell/vector-0.13.2.0

Description

Efficient Arrays

Added to portage

2026-01-11

vector-stream - 0.1.0.1
Ebuild name:

dev-haskell/vector-stream-0.1.0.1

Description

Efficient Streams

Added to portage

2026-01-11

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