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:

42680

userrating:

average rating: 1.5 (4 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 (46 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2018-09-21
android-ndk - 18
Ebuild name:

dev-util/android-ndk-18

Description

Open Handset Alliance's Android NDK (Native Dev Kit)

Added to portage

2018-09-21

gst-plugins-meta - 1.14.3
Ebuild name:

media-plugins/gst-plugins-meta-1.14.3

Description

Meta ebuild to pull in gst plugins for apps

Added to portage

2018-09-21

gtk+ - 3.24.1
Ebuild name:

x11-libs/gtk+-3.24.1

Description

Gimp ToolKit +

Added to portage

2018-09-21

puppetserver - 6.0.0-r1
Ebuild name:

app-admin/puppetserver-6.0.0-r1

Description

Puppet Server is the next-generation application for managing Puppe

Added to portage

2018-09-21

2018-09-20
asciimatics - 1.10.0
Ebuild name:

dev-python/asciimatics-1.10.0

Description

Pythonic library to create text UIs and ASCII art animations

Added to portage

2018-09-20

bitstream-cyberbit - 2.0-r2
Ebuild name:

media-fonts/bitstream-cyberbit-2.0-r2

Description

Cyberbit Unicode (including CJK) font

Added to portage

2018-09-20

ca-bundle - 1.1.2
Ebuild name:

dev-php/ca-bundle-1.1.2

Description

Find the system CA bundle or fall back to the Mozilla one

Added to portage

2018-09-20

chrony - 3.4
Ebuild name:

net-misc/chrony-3.4

Description

NTP client and server programs

Added to portage

2018-09-20

clang - 7.0.0
Ebuild name:

sys-devel/clang-7.0.0

Description

C language family frontend for LLVM

Added to portage

2018-09-20

clang-common - 7.0.0
Ebuild name:

sys-devel/clang-common-7.0.0

Description

Common files shared between multiple slots of clang

Added to portage

2018-09-20

clang-python - 7.0.0
Ebuild name:

dev-python/clang-python-7.0.0

Description

Python bindings for sys-devel/clang

Added to portage

2018-09-20

clang-runtime - 7.0.0
Ebuild name:

sys-devel/clang-runtime-7.0.0

Description

Meta-ebuild for clang runtime libraries

Added to portage

2018-09-20

compiler-rt - 7.0.0
Ebuild name:

sys-libs/compiler-rt-7.0.0

Description

Compiler runtime library for clang (built-in part)

Added to portage

2018-09-20

compiler-rt-sanitizers - 7.0.0
Ebuild name:

sys-libs/compiler-rt-sanitizers-7.0.0

Description

Compiler runtime libraries for clang (sanitizers & xray)

Added to portage

2018-09-20

composer - 1.7.2
Ebuild name:

dev-php/composer-1.7.2

Description

Dependency Manager for PHP

Added to portage

2018-09-20

debugedit - 4.14.2
Ebuild name:

dev-util/debugedit-4.14.2

Description

Stand-alone debugedit from RPM

Added to portage

2018-09-20

displaycal - 3.6.2.0
Ebuild name:

media-gfx/displaycal-3.6.2.0

Description

Display calibration and characterization powered by Argyll CMS

Added to portage

2018-09-20

dracut - 048
Ebuild name:

sys-kernel/dracut-048

Description

Generic initramfs generation tool

Added to portage

2018-09-20

erlang - 20.3.8.9
Ebuild name:

dev-lang/erlang-20.3.8.9

Description

Erlang programming language, runtime environment and libraries (OTP)

Added to portage

2018-09-20

erlang - 21.0.9
Ebuild name:

dev-lang/erlang-21.0.9

Description

Erlang programming language, runtime environment and libraries (OTP)

Added to portage

2018-09-20

f2fs-tools - 1.11.0-r1
Ebuild name:

sys-fs/f2fs-tools-1.11.0-r1

Description

Tools for Flash-Friendly File System (F2FS)

Added to portage

2018-09-20

fugitive - 2.4
Ebuild name:

app-vim/fugitive-2.4

Description

vim plugin a git wrapper for vim

Added to portage

2018-09-20

gentoo-sources - 4.14.71
Ebuild name:

sys-kernel/gentoo-sources-4.14.71

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.18.9
Ebuild name:

sys-kernel/gentoo-sources-4.18.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.4.157
Ebuild name:

sys-kernel/gentoo-sources-4.4.157

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.9.128
Ebuild name:

sys-kernel/gentoo-sources-4.9.128

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gvim - 8.1.0412
Ebuild name:

app-editors/gvim-8.1.0412

Description

GUI version of the Vim text editor

Added to portage

2018-09-20

hylafaxplus - 5.6.1
Ebuild name:

net-misc/hylafaxplus-5.6.1

Description

Enterprise client-server fax package for class 1 and 2 fax modems

Added to portage

2018-09-20

json-schema - 5.2.7
Ebuild name:

dev-php/json-schema-5.2.7

Description

PHP implementation of JSON schema

Added to portage

2018-09-20

jsonlint - 1.7.1
Ebuild name:

dev-php/jsonlint-1.7.1

Description

JSON Lint for PHP

Added to portage

2018-09-20

lazarus - 1.8.4-r1
Ebuild name:

dev-lang/lazarus-1.8.4-r1

Description

Lazarus IDE is a feature rich visual programming environment emulating De

Added to portage

2018-09-20

libcxx - 7.0.0
Ebuild name:

sys-libs/libcxx-7.0.0

Description

New implementation of the C++ standard library, targeting C++11

Added to portage

2018-09-20

libcxxabi - 7.0.0
Ebuild name:

sys-libs/libcxxabi-7.0.0

Description

Low level support for a standard C++ library

Added to portage

2018-09-20

libomp - 7.0.0
Ebuild name:

sys-libs/libomp-7.0.0

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2018-09-20

lit - 7.0.0
Ebuild name:

dev-python/lit-7.0.0

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2018-09-20

lld - 7.0.0
Ebuild name:

sys-devel/lld-7.0.0

Description

The LLVM linker (link editor)

Added to portage

2018-09-20

lldb - 7.0.0
Ebuild name:

dev-util/lldb-7.0.0

Description

The LLVM debugger

Added to portage

2018-09-20

llvm - 7.0.0
Ebuild name:

sys-devel/llvm-7.0.0

Description

Low Level Virtual Machine

Added to portage

2018-09-20

llvm-common - 7.0.0
Ebuild name:

sys-devel/llvm-common-7.0.0

Description

Common files shared between multiple slots of LLVM

Added to portage

2018-09-20

llvm-libunwind - 7.0.0
Ebuild name:

sys-libs/llvm-libunwind-7.0.0

Description

C++ runtime stack unwinder from LLVM

Added to portage

2018-09-20

llvm-ocaml - 7.0.0
Ebuild name:

dev-ml/llvm-ocaml-7.0.0

Description

OCaml bindings for LLVM

Added to portage

2018-09-20

mbpfan - 2.1.0
Ebuild name:

app-laptop/mbpfan-2.1.0

Description

A simple daemon to control fan speed on all Macbook/Macbook Pros

Added to portage

2018-09-20

mgetty - 1.2.1
Ebuild name:

net-dialup/mgetty-1.2.1

Description

fax and voice modem programs

Added to portage

2018-09-20

nix - 2.1.2
Ebuild name:

sys-apps/nix-2.1.2

Description

A purely functional package manager

Added to portage

2018-09-20

numix-icon-theme-circle - 18.09.19
Ebuild name:

x11-themes/numix-icon-theme-circle-18.09.19

Description

An icon theme for Linux from the Numix project

Added to portage

2018-09-20

nvidia-drivers - 410.57
Ebuild name:

x11-drivers/nvidia-drivers-410.57

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2018-09-20

phar-utils - 1.0.1
Ebuild name:

dev-php/phar-utils-1.0.1

Description

PHAR file format utilities, for when PHP phars you up

Added to portage

2018-09-20

pycountry - 18.5.26
Ebuild name:

dev-python/pycountry-18.5.26

Description

Database of countries, subdivisions, languages, currencies and script

Added to portage

2018-09-20

pycryptodome - 3.6.6
Ebuild name:

dev-python/pycryptodome-3.6.6

Description

A self-contained cryptographic library for Python

Added to portage

2018-09-20

pyfiglet - 0.7.5
Ebuild name:

dev-python/pyfiglet-0.7.5

Description

An implementation of figlet written in Python

Added to portage

2018-09-20

pyocr - 0.5.3
Ebuild name:

dev-python/pyocr-0.5.3

Description

An optical character recognition (OCR) tool wrapper for python

Added to portage

2018-09-20

qbittorrent - 4.1.3
Ebuild name:

net-p2p/qbittorrent-4.1.3

Description

BitTorrent client in C++ and Qt

Added to portage

2018-09-20

recommonmark - 0.5.0_pre20180907
Ebuild name:

dev-python/recommonmark-0.5.0_pre20180907

Description

Python docutils-compatibility bridge to CommonMark

Added to portage

2018-09-20

rng-tools - 6.4
Ebuild name:

sys-apps/rng-tools-6.4

Description

Daemon to use hardware random number generators

Added to portage

2018-09-20

signal-desktop-bin - 1.16.1
Ebuild name:

net-im/signal-desktop-bin-1.16.1

Description

Allows you to send and receive messages of Signal Messenger on you

Added to portage

2018-09-20

spdx-licenses - 1.4.0-r1
Ebuild name:

dev-php/spdx-licenses-1.4.0-r1

Description

Tools for working with and validating SPDX licenses

Added to portage

2018-09-20

symbola - 11.00-r1
Ebuild name:

media-fonts/symbola-11.00-r1

Description

Unicode font for Latin, IPA Extensions, Greek, Cyrillic and many Symbo

Added to portage

2018-09-20

symfony-console - 2.8.43
Ebuild name:

dev-php/symfony-console-2.8.43

Description

Subtree split of the Symfony Console Component

Added to portage

2018-09-20

ubuntu-keyring - 2018.09.18.1
Ebuild name:

app-crypt/ubuntu-keyring-2018.09.18.1

Description

GnuPG archive keys of the Ubuntu archive

Added to portage

2018-09-20

vanilla-sources - 4.14.71
Ebuild name:

sys-kernel/vanilla-sources-4.14.71

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.18.9
Ebuild name:

sys-kernel/vanilla-sources-4.18.9

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.4.157
Ebuild name:

sys-kernel/vanilla-sources-4.4.157

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.9.128
Ebuild name:

sys-kernel/vanilla-sources-4.9.128

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vim - 8.1.0412
Ebuild name:

app-editors/vim-8.1.0412

Description

Vim, an improved vi-style text editor

Added to portage

2018-09-20

vim-core - 8.1.0412
Ebuild name:

app-editors/vim-core-8.1.0412

Description

vim and gvim shared files

Added to portage

2018-09-20

vivaldi-snapshot - 2.0.1309.3_p2
Ebuild name:

www-client/vivaldi-snapshot-2.0.1309.3_p2

Description

A browser for our friends

Added to portage

2018-09-20

wmcalc - 0.7
Ebuild name:

x11-plugins/wmcalc-0.7

Description

A WindowMaker DockApp calculator

Added to portage

2018-09-20

x11fonts-jmk - 3.0-r3
Ebuild name:

media-fonts/x11fonts-jmk-3.0-r3

Description

This package contains character-cell fonts for use with X

Added to portage

2018-09-20

xdebug-handler - 1.3.0
Ebuild name:

dev-php/xdebug-handler-1.3.0

Description

Restart a CLI process without loading the xdebug extension

Added to portage

2018-09-20

xflux-gui - 1.1.10_p20180910
Ebuild name:

x11-misc/xflux-gui-1.1.10_p20180910

Description

A GUI for f.lux

Added to portage

2018-09-20

youtube-dl - 2018.09.18
Ebuild name:

net-misc/youtube-dl-2018.09.18

Description

Download videos from YouTube.com (and more sites...)

Added to portage

2018-09-20

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
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: 58.7 ms