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:

39361

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

back
Please read "Why adblockers are bad".



other Ads
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
www.tracemycash.com
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
2017-10-19
Class-Data-Inheritable - 0.80.0-r2
Ebuild name:

dev-perl/Class-Data-Inheritable-0.80.0-r2

Description

Inheritable, overridable class data

Added to portage

2017-10-19

Class-Factory-Util - 1.700.0-r2
Ebuild name:

dev-perl/Class-Factory-Util-1.700.0-r2

Description

Provide utility methods for factory classes

Added to portage

2017-10-19

Clipboard - 0.130.0-r3
Ebuild name:

dev-perl/Clipboard-0.130.0-r3

Description

Copy and paste with any OS

Added to portage

2017-10-19

ConfigReader - 0.500.0-r2
Ebuild name:

dev-perl/ConfigReader-0.500.0-r2

Description

Read directives from a configuration file

Added to portage

2017-10-19

Crypt-DES - 2.70.0-r1
Ebuild name:

dev-perl/Crypt-DES-2.70.0-r1

Description

Perl DES encryption module

Added to portage

2017-10-19

Crypt-DH - 0.70.0-r2
Ebuild name:

dev-perl/Crypt-DH-0.70.0-r2

Description

Diffie-Hellman key exchange system

Added to portage

2017-10-19

Crypt-OpenSSL-Bignum - 0.80.0-r1
Ebuild name:

dev-perl/Crypt-OpenSSL-Bignum-0.80.0-r1

Description

OpenSSL's multiprecision integer arithmetic

Added to portage

2017-10-19

Crypt-SmbHash - 0.120.0-r2
Ebuild name:

dev-perl/Crypt-SmbHash-0.120.0-r2

Description

LM/NT hashing, for Samba's smbpasswd entries

Added to portage

2017-10-19

Curses-UI - 0.960.900-r2
Ebuild name:

dev-perl/Curses-UI-0.960.900-r2

Description

Perl UI framework based on the curses library

Added to portage

2017-10-19

CursesWidgets - 1.997.0-r2
Ebuild name:

dev-perl/CursesWidgets-1.997.0-r2

Description

Provide high level APIs for rapid user interface design on the co

Added to portage

2017-10-19

DateTime - 1.440.0
Ebuild name:

dev-perl/DateTime-1.440.0

Description

A date and time object

Added to portage

2017-10-19

asciidoc - 8.6.9-r6
Ebuild name:

app-text/asciidoc-8.6.9-r6

Description

AsciiDoc is a plain text human readable/writable document format

Added to portage

2017-10-19

automaton - 1.12.1
Ebuild name:

dev-python/automaton-1.12.1

Description

Friendly state machines for python.

Added to portage

2017-10-19

ck-sources - 4.13.8
Ebuild name:

sys-kernel/ck-sources-4.13.8

Description

Con Kolivas' high performance patchset and Gentoo's genpatches for Lin

Added to portage

2017-10-19

common-sense - 3.740.0-r1
Ebuild name:

dev-perl/common-sense-3.740.0-r1

Description

Save a tree AND a kitten, use common

Added to portage

2017-10-19

debtcollector - 1.17.1
Ebuild name:

dev-python/debtcollector-1.17.1

Description

Python deprecation patterns and strategies that collect technical d

Added to portage

2017-10-19

gentoo-sources - 4.13.8
Ebuild name:

sys-kernel/gentoo-sources-4.13.8

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-10-19

libuvc - 0.0.6
Ebuild name:

media-libs/libuvc-0.0.6

Description

A cross-platform library for USB video devices, built atop libusb

Added to portage

2017-10-19

logstash-bin - 5.6.3
Ebuild name:

app-admin/logstash-bin-5.6.3

Description

Tool for managing events and logs

Added to portage

2017-10-19

mariadb - 5.5.58
Ebuild name:

dev-db/mariadb-5.5.58

Description

Added to portage

2017-10-19

openrc - 0.33.1
Ebuild name:

sys-apps/openrc-0.33.1

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2017-10-19

os-brick - 1.15.3
Ebuild name:

dev-python/os-brick-1.15.3

Description

OpenStack Cinder brick library for managing local volume attaches

Added to portage

2017-10-19

pkgconf - 1.3.10
Ebuild name:

dev-util/pkgconf-1.3.10

Description

pkg-config compatible replacement with no dependencies other than ANSI C89

Added to portage

2017-10-19

xapian - 1.4.5
Ebuild name:

dev-libs/xapian-1.4.5

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2017-10-19

xapian-bindings - 1.4.5
Ebuild name:

dev-libs/xapian-bindings-1.4.5

Description

SWIG and JNI bindings for Xapian

Added to portage

2017-10-19

xapian-omega - 1.4.5
Ebuild name:

app-text/xapian-omega-1.4.5

Description

An application built on Xapian, consisting of indexers and a CGI search

Added to portage

2017-10-19

xinit - 1.3.4-r2
Ebuild name:

x11-apps/xinit-1.3.4-r2

Description

X Window System initializer

Added to portage

2017-10-19

2017-10-18
Class-Container - 0.120.0-r2
Ebuild name:

dev-perl/Class-Container-0.120.0-r2

Description

Glue object frameworks together transparently

Added to portage

2017-10-18

Class-DBI - 3.0.17-r2
Ebuild name:

dev-perl/Class-DBI-3.0.17-r2

Description

Simple Database Abstraction

Added to portage

2017-10-18

Class-DBI-AbstractSearch - 0.70.0-r1
Ebuild name:

dev-perl/Class-DBI-AbstractSearch-0.70.0-r1

Description

Abstract Class SQL with SQL

Added to portage

2017-10-18

Class-DBI-mysql - 1.0.0-r2
Ebuild name:

dev-perl/Class-DBI-mysql-1.0.0-r2

Description

Extensions to Class for MySQL

Added to portage

2017-10-18

biblatex-apa - 7.4
Ebuild name:

dev-tex/biblatex-apa-7.4

Description

APA style for BibLaTeX

Added to portage

2017-10-18

chrome-binary-plugins - 62.0.3202.62
Ebuild name:

www-plugins/chrome-binary-plugins-62.0.3202.62

Description

Binary plugins from Google Chrome for use in Chromiu

Added to portage

2017-10-18

chrome-binary-plugins - 62.0.3202.62_beta
Ebuild name:

www-plugins/chrome-binary-plugins-62.0.3202.62_beta

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2017-10-18

chrome-binary-plugins - 63.0.3236.7_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-63.0.3236.7_alpha

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2017-10-18

chromium - 62.0.3202.62
Ebuild name:

www-client/chromium-62.0.3202.62

Description

Open-source version of Google Chrome web browser

Added to portage

2017-10-18

connman - 1.35-r1
Ebuild name:

net-misc/connman-1.35-r1

Description

Provides a daemon for managing internet connections

Added to portage

2017-10-18

dovecot - 2.2.33.1
Ebuild name:

net-mail/dovecot-2.2.33.1

Description

An IMAP and POP3 server written with security primarily in mind

Added to portage

2017-10-18

exiftool - 10.64
Ebuild name:

media-libs/exiftool-10.64

Description

Read and write meta information in image, audio and video files

Added to portage

2017-10-18

exiv2 - 0.26_p20171018
Ebuild name:

media-gfx/exiv2-0.26_p20171018

Description

EXIF, IPTC and XMP metadata C++ library and command line utility

Added to portage

2017-10-18

geomyidae - 0.29
Ebuild name:

net-misc/geomyidae-0.29

Description

A daemon to serve the gopher protocol

Added to portage

2017-10-18

google-chrome - 62.0.3202.62
Ebuild name:

www-client/google-chrome-62.0.3202.62

Description

The web browser from Google

Added to portage

2017-10-18

google-chrome-beta - 62.0.3202.62
Ebuild name:

www-client/google-chrome-beta-62.0.3202.62

Description

The web browser from Google

Added to portage

2017-10-18

google-chrome-unstable - 63.0.3236.7
Ebuild name:

www-client/google-chrome-unstable-63.0.3236.7

Description

The web browser from Google

Added to portage

2017-10-18

hevea - 2.31
Ebuild name:

dev-tex/hevea-2.31

Description

HeVeA is a quite complete and fast LaTeX to HTML translator

Added to portage

2017-10-18

iptables - 1.6.1-r2
Ebuild name:

net-firewall/iptables-1.6.1-r2

Description

Linux kernel (2.4+) firewall, NAT and packet mangling tools

Added to portage

2017-10-18

lame - 3.100
Ebuild name:

media-sound/lame-3.100

Description

LAME Ain't an MP3 Encoder

Added to portage

2017-10-18

libinput - 1.8.3
Ebuild name:

dev-libs/libinput-1.8.3

Description

Library to handle input devices in Wayland

Added to portage

2017-10-18

libnftnl - 1.0.8-r1
Ebuild name:

net-libs/libnftnl-1.0.8-r1

Description

Netlink API to the in-kernel nf_tables subsystem

Added to portage

2017-10-18

munkres - 1.0.12
Ebuild name:

dev-python/munkres-1.0.12

Description

Module implementing munkres algorithm for the Assignment Problem

Added to portage

2017-10-18

mysql - 5.5.58
Ebuild name:

dev-db/mysql-5.5.58

Description

Added to portage

2017-10-18

mysql - 5.6.38
Ebuild name:

dev-db/mysql-5.6.38

Description

Added to portage

2017-10-18

nftables - 0.8-r2
Ebuild name:

net-firewall/nftables-0.8-r2

Description

Linux kernel (3.13+) firewall, NAT and packet mangling tools

Added to portage

2017-10-18

nmh - 1.6
Ebuild name:

mail-client/nmh-1.6

Description

New MH mail reader

Added to portage

2017-10-18

ocamlgraph - 1.8.8
Ebuild name:

dev-ml/ocamlgraph-1.8.8

Description

O'Caml Graph library

Added to portage

2017-10-18

ox - 2.8.0
Ebuild name:

dev-ruby/ox-2.8.0

Description

A fast XML parser and Object marshaller

Added to portage

2017-10-18

rash_alt - 0.4.4
Ebuild name:

dev-ruby/rash_alt-0.4.4

Description

Rash alt version for Hashie's own Rash

Added to portage

2017-10-18

rosapi - 0.8.4
Ebuild name:

dev-ros/rosapi-0.8.4

Description

Provides service calls for getting ros meta-information, like list of topics,

Added to portage

2017-10-18

rosbridge_library - 0.8.4
Ebuild name:

dev-ros/rosbridge_library-0.8.4

Description

Core rosbridge package responsible for interpreting JSON and perfor

Added to portage

2017-10-18

rosbridge_server - 0.8.4
Ebuild name:

dev-ros/rosbridge_server-0.8.4

Description

A WebSocket interface to rosbridge

Added to portage

2017-10-18

rosbridge_suite - 0.8.4
Ebuild name:

ros-meta/rosbridge_suite-0.8.4

Description

JSON API to ROS functionality for non-ROS programs

Added to portage

2017-10-18

roundcube - 1.2.6
Ebuild name:

mail-client/roundcube-1.2.6

Description

A browser-based multilingual IMAP client with an application-like user

Added to portage

2017-10-18

roundcube - 1.3.1
Ebuild name:

mail-client/roundcube-1.3.1

Description

A browser-based multilingual IMAP client with an application-like user

Added to portage

2017-10-18

rqt_image_view - 0.4.10
Ebuild name:

dev-ros/rqt_image_view-0.4.10

Description

GUI plugin for displaying images using image_transport

Added to portage

2017-10-18

safeeyes - 2.0.0
Ebuild name:

x11-misc/safeeyes-2.0.0

Description

Linux alternative to EyeLeo

Added to portage

2017-10-18

sphinxcontrib-documentedlist - 0.6
Ebuild name:

dev-python/sphinxcontrib-documentedlist-0.6

Description

Sphinx extension to convert a Python list into a genera

Added to portage

2017-10-18

wayland-protocols - 1.11
Ebuild name:

dev-libs/wayland-protocols-1.11

Description

Wayland protocol files

Added to portage

2017-10-18

wireguard - 0.0.20171017
Ebuild name:

net-vpn/wireguard-0.0.20171017

Description

Simple yet fast and modern VPN that utilizes state-of-the-art crypto

Added to portage

2017-10-18

xfce4-notifyd - 0.4.0
Ebuild name:

xfce-extra/xfce4-notifyd-0.4.0

Description

Notification daemon for the Xfce desktop environment

Added to portage

2017-10-18

yakuake - 3.0.4-r2
Ebuild name:

kde-misc/yakuake-3.0.4-r2

Description

Quake-style terminal emulator based on konsole

Added to portage

2017-10-18

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 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: 4.3 ms
system status display