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:

58431

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 (74 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
2021-07-30
PPIx-Utils - 0.3.0
Ebuild name:

dev-perl/PPIx-Utils-0.3.0

Description

Utility functions for PPI

Added to portage

2021-07-30

Perl-Critic-Deprecated - 1.119.0-r1
Ebuild name:

dev-perl/Perl-Critic-Deprecated-1.119.0-r1

Description

Perl policies which have been superseded by others

Added to portage

2021-07-30

Perl-Critic-Dynamic - 0.50.0-r4
Ebuild name:

dev-perl/Perl-Critic-Dynamic-0.50.0-r4

Description

Base class for dynamic Policies

Added to portage

2021-07-30

Perl-Critic-Nits - 1.0.0-r2
Ebuild name:

dev-perl/Perl-Critic-Nits-1.0.0-r2

Description

policies of nits I like to pick

Added to portage

2021-07-30

Perl-Critic-Policy-Dynamic-NoIndirect - 0.60.0-r2
Ebuild name:

dev-perl/Perl-Critic-Policy-Dynamic-NoIndirect-0.60.0-r2

Description

Perl policy against indirect method calls

Added to portage

2021-07-30

Perl-MinimumVersion - 1.400.0
Ebuild name:

dev-perl/Perl-MinimumVersion-1.400.0

Description

Find a minimum required version of perl for Perl code

Added to portage

2021-07-30

PerlIO-Layers - 0.12.0
Ebuild name:

dev-perl/PerlIO-Layers-0.12.0

Description

Querying your filehandle's capabilities

Added to portage

2021-07-30

PerlIO-eol - 0.170.0
Ebuild name:

dev-perl/PerlIO-eol-0.170.0

Description

PerlIO layer for normalizing line endings

Added to portage

2021-07-30

PerlIO-gzip - 0.200.0-r1
Ebuild name:

dev-perl/PerlIO-gzip-0.200.0-r1

Description

PerlIO layer to gzip/gunzip

Added to portage

2021-07-30

PerlIO-utf8_strict - 0.8.0
Ebuild name:

dev-perl/PerlIO-utf8_strict-0.8.0

Description

Fast and correct UTF-8 IO

Added to portage

2021-07-30

PerlIO-via-Timeout - 0.320.0-r1
Ebuild name:

dev-perl/PerlIO-via-Timeout-0.320.0-r1

Description

PerlIO layer that adds read & write timeout to a handle

Added to portage

2021-07-30

PerlIO-via-dynamic - 0.140.0-r2
Ebuild name:

dev-perl/PerlIO-via-dynamic-0.140.0-r2

Description

Dynamic PerlIO layers

Added to portage

2021-07-30

Perlbal - 1.800.0-r3
Ebuild name:

dev-perl/Perlbal-1.800.0-r3

Description

Reverse-proxy load balancer and webserver

Added to portage

2021-07-30

chrome-binary-plugins - 93.0.4577.18_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-93.0.4577.18_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2021-07-30

clazy - 1.10
Ebuild name:

dev-util/clazy-1.10

Description

Compiler plugin which allows clang to understand Qt semantics

Added to portage

2021-07-30

drumstick - 2.3.1
Ebuild name:

media-sound/drumstick-2.3.1

Description

Qt/C++ wrapper for ALSA sequencer

Added to portage

2021-07-30

fetchmail - 6.4.20
Ebuild name:

net-mail/fetchmail-6.4.20

Description

the legendary remote-mail retrieval and forwarding utility

Added to portage

2021-07-30

gnome-boxes - 40.3
Ebuild name:

gnome-extra/gnome-boxes-40.3

Description

Simple GNOME application to access remote or virtual systems

Added to portage

2021-07-30

google-chrome-unstable - 93.0.4577.18
Ebuild name:

www-client/google-chrome-unstable-93.0.4577.18

Description

The web browser from Google

Added to portage

2021-07-30

jansi - 1.13
Ebuild name:

dev-java/jansi-1.13

Description

A library that allows you to use ANSI escape sequences in your console output

Added to portage

2021-07-30

jdbc-mysql - 8.0.26
Ebuild name:

dev-java/jdbc-mysql-8.0.26

Description

JDBC Type 4 driver for MySQL

Added to portage

2021-07-30

kosmindoormap - 21.04.3-r1
Ebuild name:

dev-libs/kosmindoormap-21.04.3-r1

Description

Data Model and Extraction System for Travel Reservation informati

Added to portage

2021-07-30

libgudev - 236-r1
Ebuild name:

dev-libs/libgudev-236-r1

Description

GObject bindings for libudev

Added to portage

2021-07-30

libqalculate - 3.20.1-r1
Ebuild name:

sci-libs/libqalculate-3.20.1-r1

Description

A modern multi-purpose calculator library

Added to portage

2021-07-30

microsoft-edge-beta - 92.0.902.62
Ebuild name:

www-client/microsoft-edge-beta-92.0.902.62

Description

The web browser from Microsoft

Added to portage

2021-07-30

moserial - 3.0.20
Ebuild name:

net-dialup/moserial-3.0.20

Description

A clean and friendly gtk-based serial terminal

Added to portage

2021-07-30

nagios-check_multiple - 0.0.1-r1
Ebuild name:

net-analyzer/nagios-check_multiple-0.0.1-r1

Description

A Nagios plugin to execute multiple checks in parallel

Added to portage

2021-07-30

nagios-icinga-openvpn - 0.0.1-r2
Ebuild name:

net-analyzer/nagios-icinga-openvpn-0.0.1-r2

Description

A Nagios plugin to check whether an OpenVPN server is a

Added to portage

2021-07-30

nattka - 0.2.18
Ebuild name:

app-portage/nattka-0.2.18

Description

A New Arch Tester Toolkit -- open-source stable-bot replacement

Added to portage

2021-07-30

networkmanager - 1.32.6
Ebuild name:

net-misc/networkmanager-1.32.6

Description

A set of co-operative tools that make networking simple and straight

Added to portage

2021-07-30

postgresql - 10.17-r2
Ebuild name:

dev-db/postgresql-10.17-r2

Description

PostgreSQL RDBMS

Added to portage

2021-07-30

postgresql - 9.6.22-r2
Ebuild name:

dev-db/postgresql-9.6.22-r2

Description

PostgreSQL RDBMS

Added to portage

2021-07-30

skrooge - 2.26.1
Ebuild name:

app-office/skrooge-2.26.1

Description

Personal finances manager, aiming at being simple and intuitive

Added to portage

2021-07-30

umockdev - 0.16.1
Ebuild name:

dev-util/umockdev-0.16.1

Description

Mock hardware devices for creating unit tests

Added to portage

2021-07-30

xorg-server - 1.20.13
Ebuild name:

x11-base/xorg-server-1.20.13

Description

X.Org X servers

Added to portage

2021-07-30

2021-07-29
Alien-HDF4 - 0.50.0
Ebuild name:

dev-perl/Alien-HDF4-0.50.0

Description

Encapsulate install info for HDF4

Added to portage

2021-07-29

Convert-UU - 0.520.100
Ebuild name:

dev-perl/Convert-UU-0.520.100

Description

Perl replacement for uuencode

Added to portage

2021-07-29

PDL - 2.54.0
Ebuild name:

dev-perl/PDL-2.54.0

Description

Perl Data Language for scientific computing

Added to portage

2021-07-29

PDL-Transform-Color - 1.5.0
Ebuild name:

dev-perl/PDL-Transform-Color-1.5.0

Description

Useful color system conversions for PDL

Added to portage

2021-07-29

Perl6-Junction - 1.600.0-r1
Ebuild name:

dev-perl/Perl6-Junction-1.600.0-r1

Description

Perl6 style Junction operators in Perl5

Added to portage

2021-07-29

awscli - 1.20.9
Ebuild name:

app-admin/awscli-1.20.9

Description

Universal Command Line Environment for AWS

Added to portage

2021-07-29

bats - 1.4.1
Ebuild name:

dev-util/bats-1.4.1

Description

Bats-core Bash Automated Testing System

Added to portage

2021-07-29

bmake - 20210704
Ebuild name:

sys-devel/bmake-20210704

Description

NetBSD's portable make

Added to portage

2021-07-29

boto3 - 1.18.9
Ebuild name:

dev-python/boto3-1.18.9

Description

The AWS SDK for Python

Added to portage

2021-07-29

botocore - 1.21.9
Ebuild name:

dev-python/botocore-1.21.9

Description

Low-level, data-driven core of boto 3

Added to portage

2021-07-29

catch - 2.13.6
Ebuild name:

dev-cpp/catch-2.13.6

Description

Modern C++ header-only framework for unit-tests

Added to portage

2021-07-29

cbindgen - 0.20.0
Ebuild name:

dev-util/cbindgen-0.20.0

Description

A tool for generating C bindings to Rust code

Added to portage

2021-07-29

cdf - 3.8.0-r1
Ebuild name:

sci-libs/cdf-3.8.0-r1

Description

Common Data Format I/O library for multi-dimensional data sets

Added to portage

2021-07-29

dist-kernel - 5.10.54
Ebuild name:

virtual/dist-kernel-5.10.54

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-07-29

dist-kernel - 5.13.6
Ebuild name:

virtual/dist-kernel-5.13.6

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-07-29

dist-kernel - 5.4.136
Ebuild name:

virtual/dist-kernel-5.4.136

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-07-29

distrobuilder - 1.2
Ebuild name:

app-emulation/distrobuilder-1.2

Description

System container image builder for LXC and LXD

Added to portage

2021-07-29

dvi2gr - 0.4-r2
Ebuild name:

dev-tex/dvi2gr-0.4-r2

Description

DVI to Grace translator

Added to portage

2021-07-29

freedm-data - 0.12.1-r1
Ebuild name:

games-fps/freedm-data-0.12.1-r1

Description

Game resources for FreeDM

Added to portage

2021-07-29

freedoom-data - 0.12.1-r1
Ebuild name:

games-fps/freedoom-data-0.12.1-r1

Description

Game resources for Freedoom Phase 1+2

Added to portage

2021-07-29

freetts - 1.2.2-r2
Ebuild name:

app-accessibility/freetts-1.2.2-r2

Description

A speech synthesis system written entirely in Java

Added to portage

2021-07-29

gentoo-kernel - 5.10.54
Ebuild name:

sys-kernel/gentoo-kernel-5.10.54

Description

Linux kernel built with Gentoo patches

Added to portage

2021-07-29

gentoo-kernel - 5.13.6
Ebuild name:

sys-kernel/gentoo-kernel-5.13.6

Description

Linux kernel built with Gentoo patches

Added to portage

2021-07-29

gentoo-kernel - 5.4.136
Ebuild name:

sys-kernel/gentoo-kernel-5.4.136

Description

Linux kernel built with Gentoo patches

Added to portage

2021-07-29

gentoo-kernel-bin - 5.10.54
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.54

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-07-29

gentoo-kernel-bin - 5.10.54-r1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.54-r1

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-07-29

gentoo-kernel-bin - 5.13.5-r1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.13.5-r1

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-07-29

gentoo-kernel-bin - 5.13.6
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.13.6

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-07-29

gentoo-kernel-bin - 5.13.6-r1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.13.6-r1

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-07-29

gentoo-kernel-bin - 5.4.136
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.4.136

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-07-29

gentoo-kernel-bin - 5.4.136-r1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.4.136-r1

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-07-29

glfw - 3.3.4-r2
Ebuild name:

media-libs/glfw-3.3.4-r2

Description

The Portable OpenGL FrameWork

Added to portage

2021-07-29

glfw - 3.3.4-r3
Ebuild name:

media-libs/glfw-3.3.4-r3

Description

Portable OpenGL FrameWork

Added to portage

2021-07-29

grafana-bin - 7.5.10
Ebuild name:

www-apps/grafana-bin-7.5.10

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2021-07-29

grafana-bin - 8.0.6
Ebuild name:

www-apps/grafana-bin-8.0.6

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenT

Added to portage

2021-07-29

gramps - 5.1.4
Ebuild name:

app-misc/gramps-5.1.4

Description

Community genealogy program aiming to be both intuitive and feature-complete

Added to portage

2021-07-29

gruff - 0.14.0
Ebuild name:

dev-ruby/gruff-0.14.0

Description

Beautiful graphs for one or multiple datasets

Added to portage

2021-07-29

gst-plugins-bad - 1.18.4-r1
Ebuild name:

media-libs/gst-plugins-bad-1.18.4-r1

Description

Less plugins for GStreamer

Added to portage

2021-07-29

gst-plugins-opus - 1.18.4-r2
Ebuild name:

media-plugins/gst-plugins-opus-1.18.4-r2

Description

Opus audio parser plugin for GStreamer

Added to portage

2021-07-29

gst-transcoder - 1.14.1-r1
Ebuild name:

media-plugins/gst-transcoder-1.14.1-r1

Description

GStreamer Transcoding API

Added to portage

2021-07-29

ibus-m17n - 1.4.6
Ebuild name:

app-i18n/ibus-m17n-1.4.6

Description

M17N engine for IBus

Added to portage

2021-07-29

ibus-table - 1.14.0
Ebuild name:

app-i18n/ibus-table-1.14.0

Description

Tables engines for IBus

Added to portage

2021-07-29

idea-community - 2021.2.212.4746.92
Ebuild name:

dev-util/idea-community-2021.2.212.4746.92

Description

A complete toolset for web, mobile and enterprise develo

Added to portage

2021-07-29

igbinary - 3.2.4
Ebuild name:

dev-php/igbinary-3.2.4

Description

A fast drop-in replacement for the standard PHP serialize

Added to portage

2021-07-29

importlib_resources - 5.2.1
Ebuild name:

dev-python/importlib_resources-5.2.1

Description

Read resources from Python packages

Added to portage

2021-07-29

jenkins-bin - 2.289.3
Ebuild name:

dev-util/jenkins-bin-2.289.3

Description

Extensible continuous integration server

Added to portage

2021-07-29

jenkins-bin - 2.304
Ebuild name:

dev-util/jenkins-bin-2.304

Description

Extensible continuous integration server

Added to portage

2021-07-29

libwebsockets - 4.2.1
Ebuild name:

net-libs/libwebsockets-4.2.1

Description

A flexible pure-C library for implementing network protocols

Added to portage

2021-07-29

livecd-tools - 2.10
Ebuild name:

app-misc/livecd-tools-2.10

Description

Gentoo LiveCD tools for autoconfiguration of hardware

Added to portage

2021-07-29

mbedtls - 2.16.11
Ebuild name:

net-libs/mbedtls-2.16.11

Description

Cryptographic library for embedded systems

Added to portage

2021-07-29

mbedtls - 2.27.0-r1
Ebuild name:

net-libs/mbedtls-2.27.0-r1

Description

Cryptographic library for embedded systems

Added to portage

2021-07-29

mbedtls - 3.0.0
Ebuild name:

net-libs/mbedtls-3.0.0

Description

Cryptographic library for embedded systems

Added to portage

2021-07-29

openssl - 3.0.0_beta2
Ebuild name:

dev-libs/openssl-3.0.0_beta2

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Secu

Added to portage

2021-07-29

openvpn - 2.5.2-r1
Ebuild name:

net-vpn/openvpn-2.5.2-r1

Description

Robust and highly flexible tunneling application compatible with many OSes

Added to portage

2021-07-29

php - 7.4.22
Ebuild name:

dev-lang/php-7.4.22

Description

The PHP language runtime engine

Added to portage

2021-07-29

php - 8.0.9
Ebuild name:

dev-lang/php-8.0.9

Description

The PHP language runtime engine

Added to portage

2021-07-29

pkgdev - 0.1.8
Ebuild name:

dev-util/pkgdev-0.1.8

Description

Collection of tools for Gentoo development

Added to portage

2021-07-29

postfixadmin - 3.3.9-r2
Ebuild name:

www-apps/postfixadmin-3.3.9-r2

Description

Web Based Management tool for Postfix style virtual domains and user

Added to portage

2021-07-29

progress - 1.6
Ebuild name:

dev-python/progress-1.6

Description

Easy to use progress bars

Added to portage

2021-07-29

pylint - 2.9.6
Ebuild name:

dev-python/pylint-2.9.6

Description

Python code static checker

Added to portage

2021-07-29

qalculate-gtk - 3.20.1
Ebuild name:

sci-calculators/qalculate-gtk-3.20.1

Description

Modern multi-purpose calculator

Added to portage

2021-07-29

quesoglc - 0.7.2-r1
Ebuild name:

media-libs/quesoglc-0.7.2-r1

Description

Free implementation of the OpenGL Character Renderer (GLC)

Added to portage

2021-07-29

rbtools - 2.0.1
Ebuild name:

dev-util/rbtools-2.0.1

Description

Command line tools for use with Review Board

Added to portage

2021-07-29

schroot - 1.6.10_p12-r2
Ebuild name:

dev-util/schroot-1.6.10_p12-r2

Description

Utility to execute commands in a chroot environment

Added to portage

2021-07-29

sdl-net - 1.2.8-r2
Ebuild name:

media-libs/sdl-net-1.2.8-r2

Description

Simple Direct Media Layer Network Support Library

Added to portage

2021-07-29

snapcast - 0.25.0
Ebuild name:

media-sound/snapcast-0.25.0

Description

Synchronous multi-room audio player

Added to portage

2021-07-29

stardict-jmdict-ja-en - 2.4.2-r1
Ebuild name:

app-dicts/stardict-jmdict-ja-en-2.4.2-r1

Description

Added to portage

2021-07-29

stardict-langdao-en-zh-gb - 2.4.2
Ebuild name:

app-dicts/stardict-langdao-en-zh-gb-2.4.2

Description

Added to portage

2021-07-29

stardict-langdao-zh-en-gb - 2.4.2
Ebuild name:

app-dicts/stardict-langdao-zh-en-gb-2.4.2

Description

Added to portage

2021-07-29

stardict-mova-smiley - 2.4.2
Ebuild name:

app-dicts/stardict-mova-smiley-2.4.2

Description

Stardict Dictionary for Mova.org's Smiley Dictionary

Added to portage

2021-07-29

tanglet - 1.6.1.1
Ebuild name:

games-puzzle/tanglet-1.6.1.1

Description

Single player word finding game based on Boggle

Added to portage

2021-07-29

telegram-desktop-bin - 2.8.10
Ebuild name:

net-im/telegram-desktop-bin-2.8.10

Description

Official desktop client for Telegram (binary package)

Added to portage

2021-07-29

tracker-miners - 2.3.5-r1
Ebuild name:

app-misc/tracker-miners-2.3.5-r1

Description

Collection of data extractors for Tracker/Nepomuk

Added to portage

2021-07-29

tuxanci - 20110429-r2
Ebuild name:

games-arcade/tuxanci-20110429-r2

Description

First Tux shooter multi-player network game inspired by Bulanci

Added to portage

2021-07-29

twisted - 21.7.0
Ebuild name:

dev-python/twisted-21.7.0

Description

An asynchronous networking framework written in Python

Added to portage

2021-07-29

vanilla-kernel - 5.10.54
Ebuild name:

sys-kernel/vanilla-kernel-5.10.54

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-07-29

vanilla-kernel - 5.13.6
Ebuild name:

sys-kernel/vanilla-kernel-5.13.6

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-07-29

vanilla-kernel - 5.4.136
Ebuild name:

sys-kernel/vanilla-kernel-5.4.136

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-07-29

zeroconf - 0.33.2
Ebuild name:

dev-python/zeroconf-0.33.2

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compa

Added to portage

2021-07-29

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