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:

67325

userrating:

average rating: 1.2 (8 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 (80 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
2024-05-09
Path-Tiny - 0.146.0
Ebuild name:

dev-perl/Path-Tiny-0.146.0

Description

File path utility

Added to portage

2024-05-09

QNNPACK - 2019.08.28-r1
Ebuild name:

sci-libs/QNNPACK-2019.08.28-r1

Description

Quantized Neural Networks PACKage

Added to portage

2024-05-09

afew - 3.0.1-r1
Ebuild name:

mail-filter/afew-3.0.1-r1

Description

Initial tagging script for Notmuch

Added to portage

2024-05-09

below - 0.8.1
Ebuild name:

sys-process/below-0.8.1

Description

An interactive tool to view and record historical system data

Added to portage

2024-05-09

channeleditor - 1.9.2.1-r4
Ebuild name:

media-tv/channeleditor-1.9.2.1-r4

Description

Editor for VDR channels.conf

Added to portage

2024-05-09

dolphin-plugins-subversion - 23.08.5-r1
Ebuild name:

kde-apps/dolphin-plugins-subversion-23.08.5-r1

Description

Dolphin plugin for Subversion integration

Added to portage

2024-05-09

dolphin-plugins-subversion - 24.02.2-r1
Ebuild name:

kde-apps/dolphin-plugins-subversion-24.02.2-r1

Description

Dolphin plugin for Subversion integration

Added to portage

2024-05-09

gcc - 14.1.0-r1
Ebuild name:

sys-devel/gcc-14.1.0-r1

Description

The GNU Compiler Collection

Added to portage

2024-05-09

hercules-sdl - 4.7.0
Ebuild name:

app-emulation/hercules-sdl-4.7.0

Description

The SoftDevLabs (SDL) version of the Hercules 4.x Hyperion Emulato

Added to portage

2024-05-09

hercules-sdl-crypto - 4.7.0
Ebuild name:

app-emulation/hercules-sdl-crypto-4.7.0

Description

Simple AES/DES encryption and SHA1/SHA2 hashing library

Added to portage

2024-05-09

hercules-sdl-crypto - 9999
Ebuild name:

app-emulation/hercules-sdl-crypto-9999

Description

Simple AES/DES encryption and SHA1/SHA2 hashing library

Added to portage

2024-05-09

hercules-sdl-decnumber - 4.7.0
Ebuild name:

app-emulation/hercules-sdl-decnumber-4.7.0

Description

ANSI C General Decimal Arithmetic Library

Added to portage

2024-05-09

hercules-sdl-decnumber - 9999
Ebuild name:

app-emulation/hercules-sdl-decnumber-9999

Description

ANSI C General Decimal Arithmetic Library

Added to portage

2024-05-09

hercules-sdl-softfloat - 4.7.0
Ebuild name:

app-emulation/hercules-sdl-softfloat-4.7.0

Description

Berkeley IEEE Binary Floating-Point Library

Added to portage

2024-05-09

hercules-sdl-softfloat - 9999
Ebuild name:

app-emulation/hercules-sdl-softfloat-9999

Description

Berkeley IEEE Binary Floating-Point Library

Added to portage

2024-05-09

hercules-sdl-telnet - 4.7.0
Ebuild name:

app-emulation/hercules-sdl-telnet-4.7.0

Description

Simple RFC-complient TELNET implementation

Added to portage

2024-05-09

hercules-sdl-telnet - 9999
Ebuild name:

app-emulation/hercules-sdl-telnet-9999

Description

Simple RFC-complient TELNET implementation

Added to portage

2024-05-09

intel_clc - 24.0.7
Ebuild name:

dev-util/intel_clc-24.0.7

Description

intel_clc tool used for building OpenCL C to SPIR-V

Added to portage

2024-05-09

intel_clc - 24.1.0_rc3
Ebuild name:

dev-util/intel_clc-24.1.0_rc3

Description

intel_clc tool used for building OpenCL C to SPIR-V

Added to portage

2024-05-09

isapnptools - 1.27-r1
Ebuild name:

sys-apps/isapnptools-1.27-r1

Description

Tools for configuring ISA PnP devices

Added to portage

2024-05-09

libsecp256k1 - 0.5.0
Ebuild name:

dev-libs/libsecp256k1-0.5.0

Description

Optimized C library for EC operations on curve secp256k1

Added to portage

2024-05-09

mesa - 24.0.7
Ebuild name:

media-libs/mesa-24.0.7

Description

OpenGL-like graphic library for Linux

Added to portage

2024-05-09

mesa - 24.1.0_rc3
Ebuild name:

media-libs/mesa-24.1.0_rc3

Description

OpenGL-like graphic library for Linux

Added to portage

2024-05-09

mpdecimal - 4.0.0
Ebuild name:

dev-libs/mpdecimal-4.0.0

Description

Correctly-rounded arbitrary precision decimal floating point arithmetic

Added to portage

2024-05-09

node_exporter - 1.8.0
Ebuild name:

app-metrics/node_exporter-1.8.0

Description

Prometheus exporter for machine metrics

Added to portage

2024-05-09

notmuch - 0.37-r2
Ebuild name:

net-mail/notmuch-0.37-r2

Description

Thread-based e-mail indexer, supporting quick search and tagging

Added to portage

2024-05-09

os-prober - 1.81-r2
Ebuild name:

sys-boot/os-prober-1.81-r2

Description

Utility to detect other OSs on a set of drives

Added to portage

2024-05-09

paml - 4.10.7
Ebuild name:

sci-biology/paml-4.10.7

Description

Phylogenetic Analysis by Maximum Likelihood

Added to portage

2024-05-09

projectx - 0.91.0.10-r5
Ebuild name:

media-video/projectx-0.91.0.10-r5

Description

Converts, splits and demuxes DVB and other MPEG recordings

Added to portage

2024-05-09

pspg - 5.8.5
Ebuild name:

dev-db/pspg-5.8.5

Description

A better pager for CLI database clients and can be used in place of psql

Added to portage

2024-05-09

python - 3.13.0_beta1
Ebuild name:

dev-lang/python-3.13.0_beta1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2024-05-09

regina-rexx - 3.9.5
Ebuild name:

dev-lang/regina-rexx-3.9.5

Description

Portable Rexx interpreter

Added to portage

2024-05-09

signal-desktop-bin - 7.8.0
Ebuild name:

net-im/signal-desktop-bin-7.8.0

Description

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

Added to portage

2024-05-09

sitecopy - 0.16.6-r3
Ebuild name:

net-misc/sitecopy-0.16.6-r3

Description

Maintain remote web sites with ease

Added to portage

2024-05-09

veracrypt - 1.25.9
Ebuild name:

app-crypt/veracrypt-1.25.9

Description

Disk encryption with strong security based on TrueCrypt

Added to portage

2024-05-09

waybar - 0.10.3
Ebuild name:

gui-apps/waybar-0.10.3

Description

Highly customizable Wayland bar for Sway and Wlroots based compositors

Added to portage

2024-05-09

whipper - 0.10.0-r2
Ebuild name:

media-sound/whipper-0.10.0-r2

Description

A Python CD-DA ripper preferring accuracy over speed (forked from mor

Added to portage

2024-05-09

wmenu - 0.1.8
Ebuild name:

gui-apps/wmenu-0.1.8

Description

dynamic menu for wlroots compositors, maintains the look and feel of dmenu

Added to portage

2024-05-09

2024-05-08
astroid - 3.2.0
Ebuild name:

dev-python/astroid-3.2.0

Description

Abstract Syntax Tree for logilab packages

Added to portage

2024-05-08

awscli - 1.32.100
Ebuild name:

app-admin/awscli-1.32.100

Description

Universal Command Line Environment for AWS

Added to portage

2024-05-08

bacula - 15.0.2
Ebuild name:

app-backup/bacula-15.0.2

Description

Featureful client/server network backup suite

Added to portage

2024-05-08

bigdecimal - 3.1.8
Ebuild name:

dev-ruby/bigdecimal-3.1.8

Description

Arbitrary-precision decimal floating-point number library for Ruby

Added to portage

2024-05-08

bitstring - 4.2.1-r1
Ebuild name:

dev-python/bitstring-4.2.1-r1

Description

A pure Python module for creation and analysis of binary data

Added to portage

2024-05-08

blobwars - 2.00-r2
Ebuild name:

games-arcade/blobwars-2.00-r2

Description

Platform game about a blob and his quest to rescue MIAs from an alien

Added to portage

2024-05-08

boto3 - 1.34.100
Ebuild name:

dev-python/boto3-1.34.100

Description

The AWS SDK for Python

Added to portage

2024-05-08

botocore - 1.34.100
Ebuild name:

dev-python/botocore-1.34.100

Description

Low-level, data-driven core of boto 3

Added to portage

2024-05-08

caffe2 - 2.3.0-r2
Ebuild name:

sci-libs/caffe2-2.3.0-r2

Description

A deep learning framework

Added to portage

2024-05-08

castxml - 0.6.6
Ebuild name:

dev-libs/castxml-0.6.6

Description

C-family abstract syntax tree XML output tool

Added to portage

2024-05-08

cgit - 9999
Ebuild name:

www-apps/cgit-9999

Description

a fast web-interface for git repositories

Added to portage

2024-05-08

cgit - 9999-r1
Ebuild name:

www-apps/cgit-9999-r1

Description

a fast web-interface for git repositories

Added to portage

2024-05-08

chrome-binary-plugins - 124.0.6367.155
Ebuild name:

www-plugins/chrome-binary-plugins-124.0.6367.155

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2024-05-08

chrome-binary-plugins - 125.0.6422.26_beta
Ebuild name:

www-plugins/chrome-binary-plugins-125.0.6422.26_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2024-05-08

chrome-binary-plugins - 126.0.6452.3_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-126.0.6452.3_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2024-05-08

chromedriver-bin - 124.0.6367.155
Ebuild name:

www-apps/chromedriver-bin-124.0.6367.155

Description

WebDriver for Chrome

Added to portage

2024-05-08

chromium - 124.0.6367.155
Ebuild name:

www-client/chromium-124.0.6367.155

Description

Open-source version of Google Chrome web browser

Added to portage

2024-05-08

clog - 2023.11.04
Ebuild name:

dev-libs/clog-2023.11.04

Description

C-style (a-la printf) logging library

Added to portage

2024-05-08

cmake - 3.28.5
Ebuild name:

dev-build/cmake-3.28.5

Description

Cross platform Make

Added to portage

2024-05-08

cmake - 3.29.3
Ebuild name:

dev-build/cmake-3.29.3

Description

Cross platform Make

Added to portage

2024-05-08

conway-polynomials - 0.10
Ebuild name:

dev-python/conway-polynomials-0.10

Description

Python interface to Frank Lübeck's Conway polynomial database

Added to portage

2024-05-08

crossdev - 20240507
Ebuild name:

sys-devel/crossdev-20240507

Description

Gentoo Cross-toolchain generator

Added to portage

2024-05-08

csharp-language-server - 0.13.0
Ebuild name:

dev-dotnet/csharp-language-server-0.13.0

Description

Roslyn-based LSP language server for C

Added to portage

2024-05-08

devcontainer - 0.60.0
Ebuild name:

app-containers/devcontainer-0.60.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2024-05-08

django - 4.2.13
Ebuild name:

dev-python/django-4.2.13

Description

High-level Python web framework

Added to portage

2024-05-08

django - 5.0.6
Ebuild name:

dev-python/django-5.0.6

Description

High-level Python web framework

Added to portage

2024-05-08

dropbox - 198.4.7615
Ebuild name:

net-misc/dropbox-198.4.7615

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2024-05-08

eclean-kernel - 2.99.8
Ebuild name:

app-admin/eclean-kernel-2.99.8

Description

Remove outdated built kernels

Added to portage

2024-05-08

evdev - 1.7.1
Ebuild name:

dev-python/evdev-1.7.1

Description

Python library for evdev bindings

Added to portage

2024-05-08

fakeredis - 2.23.0
Ebuild name:

dev-python/fakeredis-2.23.0

Description

Fake implementation of redis API for testing purposes

Added to portage

2024-05-08

fotocx - 24.30
Ebuild name:

media-gfx/fotocx-24.30

Description

Program for improving image files made with a digital camera

Added to portage

2024-05-08

google-api-python-client - 2.128.0
Ebuild name:

dev-python/google-api-python-client-2.128.0

Description

Google API Client for Python

Added to portage

2024-05-08

google-chrome - 124.0.6367.155
Ebuild name:

www-client/google-chrome-124.0.6367.155

Description

The web browser from Google

Added to portage

2024-05-08

google-chrome-beta - 125.0.6422.26
Ebuild name:

www-client/google-chrome-beta-125.0.6422.26

Description

The web browser from Google

Added to portage

2024-05-08

google-chrome-unstable - 126.0.6452.3
Ebuild name:

www-client/google-chrome-unstable-126.0.6452.3

Description

The web browser from Google

Added to portage

2024-05-08

incus - 6.1
Ebuild name:

app-containers/incus-6.1

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2024-05-08

intune-portal - 1.2404.23
Ebuild name:

sys-apps/intune-portal-1.2404.23

Description

Microsoft Intune Company Portal to access a corporate environment

Added to portage

2024-05-08

kotlin-bin - 1.9.24
Ebuild name:

dev-lang/kotlin-bin-1.9.24

Description

Statically typed language that targets the JVM and JavaScript

Added to portage

2024-05-08

libggi - 2.2.2-r2
Ebuild name:

media-libs/libggi-2.2.2-r2

Description

Provides an opaque interface to the display's acceleration function

Added to portage

2024-05-08

libreoffice - 24.2.3.2
Ebuild name:

app-office/libreoffice-24.2.3.2

Description

A full office productivity suite

Added to portage

2024-05-08

libreoffice - 7.6.7.2
Ebuild name:

app-office/libreoffice-7.6.7.2

Description

A full office productivity suite

Added to portage

2024-05-08

libreoffice-l10n - 24.2.3.2
Ebuild name:

app-office/libreoffice-l10n-24.2.3.2

Description

Translations for the Libreoffice suite

Added to portage

2024-05-08

lmdb - 0.9.32
Ebuild name:

dev-db/lmdb-0.9.32

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2024-05-08

lxc - 6.0.0-r2
Ebuild name:

app-containers/lxc-6.0.0-r2

Description

A userspace interface for the Linux kernel containment features

Added to portage

2024-05-08

mgorny-dev-scripts - 51
Ebuild name:

app-portage/mgorny-dev-scripts-51

Description

Handy scripts for ebuild development and more

Added to portage

2024-05-08

mgorny-dev-scripts - 52
Ebuild name:

app-portage/mgorny-dev-scripts-52

Description

Handy scripts for ebuild development and more

Added to portage

2024-05-08

microsoft-edge - 124.0.2478.80
Ebuild name:

www-client/microsoft-edge-124.0.2478.80

Description

The web browser from Microsoft

Added to portage

2024-05-08

microsoft-edge-beta - 125.0.2535.29
Ebuild name:

www-client/microsoft-edge-beta-125.0.2535.29

Description

The web browser from Microsoft

Added to portage

2024-05-08

microsoft-edge-dev - 126.0.2566.1
Ebuild name:

www-client/microsoft-edge-dev-126.0.2566.1

Description

The web browser from Microsoft

Added to portage

2024-05-08

mime-types-data - 3.2024.0507
Ebuild name:

dev-ruby/mime-types-data-3.2024.0507

Description

Registry for information about MIME media type definitions

Added to portage

2024-05-08

multi_xml - 0.7.1
Ebuild name:

dev-ruby/multi_xml-0.7.1

Description

A generic swappable back-end for XML parsing

Added to portage

2024-05-08

multipart-post - 2.4.1
Ebuild name:

dev-ruby/multipart-post-2.4.1

Description

Adds a streamy multipart form post capability to Net

Added to portage

2024-05-08

nose2 - 0.14.2
Ebuild name:

dev-python/nose2-0.14.2

Description

Unittest with plugins

Added to portage

2024-05-08

openpgp-keys-apache-tomcat - 9.0.89
Ebuild name:

sec-keys/openpgp-keys-apache-tomcat-9.0.89

Description

OpenPGP keys used by tomcat.apache.org

Added to portage

2024-05-08

opera-beta - 110.0.5130.17
Ebuild name:

www-client/opera-beta-110.0.5130.17

Description

A fast and secure web browser

Added to portage

2024-05-08

opera-developer - 111.0.5159.0
Ebuild name:

www-client/opera-developer-111.0.5159.0

Description

A fast and secure web browser

Added to portage

2024-05-08

pecl-yaml - 2.2.3-r1
Ebuild name:

dev-php/pecl-yaml-2.2.3-r1

Description

YAML 1.1 (YAML Ain't Markup Language) serialization for PHP

Added to portage

2024-05-08

proofgeneral - 4.5
Ebuild name:

app-emacs/proofgeneral-4.5

Description

A generic interface for proof assistants

Added to portage

2024-05-08

protbuf - 1.7-r1
Ebuild name:

app-emacs/protbuf-1.7-r1

Description

Protect Emacs buffers from accidental killing

Added to portage

2024-05-08

pwsh-bin - 7.4.2
Ebuild name:

app-shells/pwsh-bin-7.4.2

Description

Cross-platform automation and configuration tool (binary package)

Added to portage

2024-05-08

pymongo - 4.7.2
Ebuild name:

dev-python/pymongo-4.7.2

Description

Python driver for MongoDB

Added to portage

2024-05-08

qbs - 2.3.1
Ebuild name:

dev-util/qbs-2.3.1

Description

Modern build tool for software projects

Added to portage

2024-05-08

rubber - 1.6.6
Ebuild name:

dev-tex/rubber-1.6.6

Description

A LaTeX wrapper for automatically building documents

Added to portage

2024-05-08

sphinx - 7.3.7-r1
Ebuild name:

dev-python/sphinx-7.3.7-r1

Description

Python documentation generator

Added to portage

2024-05-08

sqlglot - 23.14.0
Ebuild name:

dev-python/sqlglot-23.14.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2024-05-08

sympy - 1.12.1_rc1
Ebuild name:

dev-python/sympy-1.12.1_rc1

Description

Computer Algebra System in pure Python

Added to portage

2024-05-08

tenacity - 8.3.0
Ebuild name:

dev-python/tenacity-8.3.0

Description

General-purpose retrying library

Added to portage

2024-05-08

thriftpy2 - 0.5.0
Ebuild name:

dev-python/thriftpy2-0.5.0

Description

Pure python approach of Apache Thrift

Added to portage

2024-05-08

tomcat - 9.0.89
Ebuild name:

www-servers/tomcat-9.0.89

Description

Tomcat Servlet-4.0/JSP-2.3/EL-3.0/WebSocket-1.1/JASPIC-1.1 Container

Added to portage

2024-05-08

tpm2-tss - 4.1.1
Ebuild name:

app-crypt/tpm2-tss-4.1.1

Description

TCG Trusted Platform Module 2.0 Software Stack

Added to portage

2024-05-08

ubuntu-keyring - 2023.11.28.1
Ebuild name:

app-crypt/ubuntu-keyring-2023.11.28.1

Description

GnuPG archive keys of the Ubuntu archive

Added to portage

2024-05-08

uv - 0.1.41
Ebuild name:

dev-python/uv-0.1.41

Description

A Python package installer and resolver, written in Rust

Added to portage

2024-05-08

vrrpd - 1.15
Ebuild name:

net-misc/vrrpd-1.15

Description

Virtual Router Redundancy Protocol Daemon

Added to portage

2024-05-08

wesnoth - 1.18.0
Ebuild name:

games-strategy/wesnoth-1.18.0

Description

Battle for Wesnoth - A fantasy turn-based strategy game

Added to portage

2024-05-08

wordpress - 6.5.3
Ebuild name:

www-apps/wordpress-6.5.3

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2024-05-08

wpa_supplicant - 2.10-r5
Ebuild name:

net-wireless/wpa_supplicant-2.10-r5

Description

IEEE 802.1X/WPA supplicant for secure wireless transfers

Added to portage

2024-05-08

wxGTK - 3.0.5.1-r2
Ebuild name:

x11-libs/wxGTK-3.0.5.1-r2

Description

GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit

Added to portage

2024-05-08

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: 61.2 ms