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:

35860

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 (24 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
Stellenangebote
Stellenangebote
für Fach- und
Führungskräfte
www.nachoben.com
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
2016-12-04
CryptX - 0.44.0
Ebuild name:

dev-perl/CryptX-0.44.0

Description

Self-contained crypto toolkit

Added to portage

2016-12-04

DBD-mysql - 4.41.0
Ebuild name:

dev-perl/DBD-mysql-4.41.0

Description

MySQL driver for the Perl5 Database Interface (DBI)

Added to portage

2016-12-04

Shapely - 1.5.17-r1
Ebuild name:

sci-libs/Shapely-1.5.17-r1

Description

Geometric objects, predicates, and operations

Added to portage

2016-12-04

bash - 4.3_p48-r1
Ebuild name:

app-shells/bash-4.3_p48-r1

Description

The standard GNU Bourne again shell

Added to portage

2016-12-04

brython - 3.2.9
Ebuild name:

dev-python/brython-3.2.9

Description

A Python 3 implementation for client-side web programming

Added to portage

2016-12-04

ca-certificates - 20161102.3.27.2-r2
Ebuild name:

app-misc/ca-certificates-20161102.3.27.2-r2

Description

Common CA Certificates PEM files

Added to portage

2016-12-04

calcurse - 4.2.1
Ebuild name:

app-office/calcurse-4.2.1

Description

a text-based calendar and scheduling application

Added to portage

2016-12-04

chromium - 56.0.2924.14
Ebuild name:

www-client/chromium-56.0.2924.14

Description

Open-source version of Google Chrome web browser

Added to portage

2016-12-04

cri - 2.7.1
Ebuild name:

dev-ruby/cri-2.7.1

Description

Cri is a library for building easy-to-use commandline tools

Added to portage

2016-12-04

djbdns - 1.05-r32
Ebuild name:

net-dns/djbdns-1.05-r32

Description

Collection of DNS client/server software

Added to portage

2016-12-04

fedmsg - 0.18.1
Ebuild name:

dev-python/fedmsg-0.18.1

Description

Fedora Messaging Client API

Added to portage

2016-12-04

ffmpeg - 2.8.9
Ebuild name:

media-video/ffmpeg-2.8.9

Description

Complete solution to record, convert and stream audio and video. Includes

Added to portage

2016-12-04

gnome-common - 3.18.0-r1
Ebuild name:

gnome-base/gnome-common-3.18.0-r1

Description

Common files for development of Gnome packages

Added to portage

2016-12-04

guile - 2.0.13-r1
Ebuild name:

dev-scheme/guile-2.0.13-r1

Description

GNU Ubiquitous Intelligent Language for Extensions

Added to portage

2016-12-04

hdf5 - 1.8.18
Ebuild name:

sci-libs/hdf5-1.8.18

Description

General purpose library and file format for storing scientific data

Added to portage

2016-12-04

html-xml-utils - 7.1
Ebuild name:

app-text/html-xml-utils-7.1

Description

A number of simple utilities for manipulating HTML and XML files

Added to portage

2016-12-04

imageio - 1.6
Ebuild name:

dev-python/imageio-1.6

Description

Python library for reading and writing image data

Added to portage

2016-12-04

japitools - 0.9.7-r4
Ebuild name:

dev-java/japitools-0.9.7-r4

Description

Java API compatibility testing tools

Added to portage

2016-12-04

kwallet - 5.28.0-r1
Ebuild name:

kde-frameworks/kwallet-5.28.0-r1

Description

Framework providing desktop-wide storage for passwords

Added to portage

2016-12-04

kxstitch - 2.0.0
Ebuild name:

media-gfx/kxstitch-2.0.0

Description

Program to create cross stitch patterns

Added to portage

2016-12-04

nagios - 4.2.3
Ebuild name:

net-analyzer/nagios-4.2.3

Description

The Nagios metapackage

Added to portage

2016-12-04

nagios-core - 4.2.3-r1
Ebuild name:

net-analyzer/nagios-core-4.2.3-r1

Description

Nagios core - monitoring daemon, web GUI, and documentation

Added to portage

2016-12-04

openscenegraph - 3.5.1-r1
Ebuild name:

dev-games/openscenegraph-3.5.1-r1

Description

Open source high performance 3D graphics toolkit

Added to portage

2016-12-04

openvpn - 2.4_rc1-r1
Ebuild name:

net-misc/openvpn-2.4_rc1-r1

Description

Robust and highly flexible tunneling application compatible with many O

Added to portage

2016-12-04

openvswitch - 2.6.0-r2
Ebuild name:

net-misc/openvswitch-2.6.0-r2

Description

Production quality, multilayer virtual switch

Added to portage

2016-12-04

paludis - 2.4.0-r1
Ebuild name:

sys-apps/paludis-2.4.0-r1

Description

paludis, the other package mangler

Added to portage

2016-12-04

percona-server - 5.6.34.79.1
Ebuild name:

dev-db/percona-server-5.6.34.79.1

Description

An enhanced, drop-in replacement for MySQL from the Percona team

Added to portage

2016-12-04

prison - 1.1.1
Ebuild name:

kde-frameworks/prison-1.1.1

Description

QRCode and data matrix barcode library

Added to portage

2016-12-04

syncthing - 0.14.13
Ebuild name:

net-p2p/syncthing-0.14.13

Description

Open Source Continuous File Synchronization

Added to portage

2016-12-04

teamspeak-server-bin - 3.0.13.6
Ebuild name:

media-sound/teamspeak-server-bin-3.0.13.6

Description

Crystal Clear Cross-Platform Voice Communication Server

Added to portage

2016-12-04

the_silver_searcher - 1.0.1
Ebuild name:

sys-apps/the_silver_searcher-1.0.1

Description

A code-searching tool similar to ack, but faster

Added to portage

2016-12-04

uglifier - 3.0.4
Ebuild name:

dev-ruby/uglifier-3.0.4

Description

Ruby wrapper for UglifyJS JavaScript compressor

Added to portage

2016-12-04

worklog-assistant-bin - 2.1.3580
Ebuild name:

app-office/worklog-assistant-bin-2.1.3580

Description

Hassle-free time tracking for JIRA self-hosted and OnDema

Added to portage

2016-12-04

wpa_supplicant - 2.6-r1
Ebuild name:

net-wireless/wpa_supplicant-2.6-r1

Description

IEEE 802.1X/WPA supplicant for secure wireless transfers

Added to portage

2016-12-04

xosview - 1.19
Ebuild name:

x11-misc/xosview-1.19

Description

X11 operating system viewer

Added to portage

2016-12-04

2016-12-03
artifactory-bin - 4.14.1
Ebuild name:

dev-util/artifactory-bin-4.14.1

Description

The world's most advanced repository manager for maven

Added to portage

2016-12-03

artifactory-bin - 4.14.2
Ebuild name:

dev-util/artifactory-bin-4.14.2

Description

The world's most advanced repository manager for maven

Added to portage

2016-12-03

aufs-sources - 3.18.45
Ebuild name:

sys-kernel/aufs-sources-3.18.45

Description

Full sources including the Gentoo patchset for the linux kernel tre

Added to portage

2016-12-03

aufs-sources - 4.4.36
Ebuild name:

sys-kernel/aufs-sources-4.4.36

Description

Full sources including the Gentoo patchset for the linux kernel tree

Added to portage

2016-12-03

aufs-sources - 4.8.12
Ebuild name:

sys-kernel/aufs-sources-4.8.12

Description

Full sources including the Gentoo patchset for the linux kernel tree

Added to portage

2016-12-03

bandit - 1.3.0
Ebuild name:

dev-python/bandit-1.3.0

Description

A security linter from OpenStack Security

Added to portage

2016-12-03

chrome-binary-plugins - 55.0.2883.75
Ebuild name:

www-plugins/chrome-binary-plugins-55.0.2883.75

Description

Binary plugins from Google Chrome for use in Chromiu

Added to portage

2016-12-03

chrome-binary-plugins - 56.0.2924.14_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-56.0.2924.14_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2016-12-03

chromium - 55.0.2883.75
Ebuild name:

www-client/chromium-55.0.2883.75

Description

Open-source version of Google Chrome web browser

Added to portage

2016-12-03

commander - 4.4.1
Ebuild name:

dev-ruby/commander-4.4.1

Description

The complete solution for Ruby command-line executables

Added to portage

2016-12-03

ec2-ami-tools - 1.5.6-r1
Ebuild name:

app-admin/ec2-ami-tools-1.5.6-r1

Description

Command-line tools that serve as client interface to the Amazon EC

Added to portage

2016-12-03

filebeat - 5.0.2
Ebuild name:

app-admin/filebeat-5.0.2

Description

Lightweight log shipper for Logstash and Elasticsearch

Added to portage

2016-12-03

fuse-zip - 0.4.2
Ebuild name:

sys-fs/fuse-zip-0.4.2

Description

FUSE file system to navigate, extract, create and modify ZIP archives

Added to portage

2016-12-03

gentoo-sources - 4.8.12
Ebuild name:

sys-kernel/gentoo-sources-4.8.12

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2016-12-03

google-chrome - 55.0.2883.75
Ebuild name:

www-client/google-chrome-55.0.2883.75

Description

The web browser from Google

Added to portage

2016-12-03

google-chrome-unstable - 56.0.2924.14
Ebuild name:

www-client/google-chrome-unstable-56.0.2924.14

Description

The web browser from Google

Added to portage

2016-12-03

guake - 0.8.8
Ebuild name:

x11-terms/guake-0.8.8

Description

Drop-down terminal for GTK+ desktops

Added to portage

2016-12-03

irc - 15.0.5
Ebuild name:

dev-python/irc-15.0.5

Description

IRC client framework written in Python

Added to portage

2016-12-03

leatherman - 0.10.0
Ebuild name:

dev-libs/leatherman-0.10.0

Description

A C++ toolkit

Added to portage

2016-12-03

libav - 12
Ebuild name:

media-video/libav-12

Description

Complete solution to record, convert and stream audio and video

Added to portage

2016-12-03

lldpd - 0.9.5
Ebuild name:

net-misc/lldpd-0.9.5

Description

Implementation of IEEE 802.1ab (LLDP)

Added to portage

2016-12-03

logrotate - 3.11.0
Ebuild name:

app-admin/logrotate-3.11.0

Description

Rotates, compresses, and mails system logs

Added to portage

2016-12-03

lxc - 2.0.6
Ebuild name:

app-emulation/lxc-2.0.6

Description

LinuX Containers userspace utilities

Added to portage

2016-12-03

monkeysphere - 0.41
Ebuild name:

app-crypt/monkeysphere-0.41

Description

Leverage the OpenPGP web of trust for OpenSSH and Web authentication

Added to portage

2016-12-03

multi-term - 1.3
Ebuild name:

app-emacs/multi-term-1.3

Description

Manage multiple terminal buffers in Emacs

Added to portage

2016-12-03

opera-beta - 42.0.2393.65
Ebuild name:

www-client/opera-beta-42.0.2393.65

Description

A fast and secure web browser

Added to portage

2016-12-03

pamix - 1.5
Ebuild name:

media-sound/pamix-1.5

Description

A PulseAudio NCurses mixer

Added to portage

2016-12-03

pandas - 0.19.1
Ebuild name:

dev-python/pandas-0.19.1

Description

Powerful data structures for data analysis and statistics

Added to portage

2016-12-03

php - 7.1.0
Ebuild name:

dev-lang/php-7.1.0

Description

The PHP language runtime engine

Added to portage

2016-12-03

pypolicyd-spf - 2.0.0
Ebuild name:

mail-filter/pypolicyd-spf-2.0.0

Description

Python-based policy daemon for Postfix SPF verification

Added to portage

2016-12-03

stardict - 3.0.6-r3
Ebuild name:

app-text/stardict-3.0.6-r3

Description

A international dictionary supporting fuzzy and glob style matching

Added to portage

2016-12-03

supervisor - 3.3.1-r1
Ebuild name:

app-admin/supervisor-3.3.1-r1

Description

A system for controlling process state under UNIX

Added to portage

2016-12-03

tqdm - 4.10.0
Ebuild name:

dev-python/tqdm-4.10.0

Description

Add a progress meter to your loops in a second.

Added to portage

2016-12-03

vcard - 0.2.15
Ebuild name:

dev-ruby/vcard-0.2.15

Description

Ruby vcard support extracted from Vpim

Added to portage

2016-12-03

w3m - 0.5.3-r9
Ebuild name:

www-client/w3m-0.5.3-r9

Description

Text based WWW browser, supports tables and frames

Added to portage

2016-12-03

xarray - 0.8.2
Ebuild name:

dev-python/xarray-0.8.2

Description

N-D labeled arrays and datasets in Python

Added to portage

2016-12-03

xen-pvgrub - 4.7.1-r1
Ebuild name:

app-emulation/xen-pvgrub-4.7.1-r1

Description

allows to boot Xen domU kernels from a menu.lst laying inside gue

Added to portage

2016-12-03

znc - 1.6.3-r1
Ebuild name:

net-irc/znc-1.6.3-r1

Description

An advanced IRC Bouncer

Added to portage

2016-12-03

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004 S&P Softwaredesign
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: 6.2 ms
system status display
Stellenangebote