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:

36550

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 (25 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
2017-01-20
PEAR-Console_CommandLine - 1.2.2
Ebuild name:

dev-php/PEAR-Console_CommandLine-1.2.2

Description

A full-featured command-line options and arguments parser

Added to portage

2017-01-20

PEAR-Crypt_GPG - 1.6.0_beta3
Ebuild name:

dev-php/PEAR-Crypt_GPG-1.6.0_beta3

Description

PHP interface to the GNU Privacy Guard (GnuPG)

Added to portage

2017-01-20

Test-Simple - 1.302.75
Ebuild name:

perl-core/Test-Simple-1.302.75

Description

Basic utilities for writing tests

Added to portage

2017-01-20

arping - 2.18
Ebuild name:

net-analyzer/arping-2.18

Description

A utility to see if a specific IP address is taken and what MAC address ow

Added to portage

2017-01-20

billiard - 3.3.0.23
Ebuild name:

dev-python/billiard-3.3.0.23

Description

Python multiprocessing fork

Added to portage

2017-01-20

buildbot-worker - 0.9.2-r1
Ebuild name:

dev-util/buildbot-worker-0.9.2-r1

Description

BuildBot Slave Daemon

Added to portage

2017-01-20

buildbot-worker - 0.9.3-r1
Ebuild name:

dev-util/buildbot-worker-0.9.3-r1

Description

BuildBot Slave Daemon

Added to portage

2017-01-20

bzflag - 2.4.4-r1
Ebuild name:

games-action/bzflag-2.4.4-r1

Description

3D tank combat simulator game

Added to portage

2017-01-20

case - 1.5.0
Ebuild name:

dev-python/case-1.5.0

Description

Python unittest Utilities

Added to portage

2017-01-20

celery - 3.1.24-r1
Ebuild name:

dev-python/celery-3.1.24-r1

Description

Asynchronous task queue/job queue based on distributed message passing

Added to portage

2017-01-20

ck-sources - 4.9.4
Ebuild name:

sys-kernel/ck-sources-4.9.4

Description

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

Added to portage

2017-01-20

docker-registry - 2.6.0
Ebuild name:

app-emulation/docker-registry-2.6.0

Description

Docker Registry 2.0

Added to portage

2017-01-20

dvisvgm - 2.1
Ebuild name:

app-text/dvisvgm-2.1

Description

Converts DVI files to SVG

Added to portage

2017-01-20

gst-plugins-meta - 0.10-r11
Ebuild name:

media-plugins/gst-plugins-meta-0.10-r11

Description

Meta ebuild to pull in gst plugins for apps

Added to portage

2017-01-20

hdparm - 9.51
Ebuild name:

sys-apps/hdparm-9.51

Description

Utility to change hard drive performance parameters

Added to portage

2017-01-20

libidn2 - 0.16
Ebuild name:

net-dns/libidn2-0.16

Description

An implementation of the IDNA2008 specifications (RFCs 5890, 5891, 5892, 5893)

Added to portage

2017-01-20

libvirt - 2.5.0-r1
Ebuild name:

app-emulation/libvirt-2.5.0-r1

Description

C toolkit to manipulate virtual machines

Added to portage

2017-01-20

libvirt-python - 2.5.0-r1
Ebuild name:

dev-python/libvirt-python-2.5.0-r1

Description

libvirt Python bindings

Added to portage

2017-01-20

libxkbcommon - 0.7.1
Ebuild name:

x11-libs/libxkbcommon-0.7.1

Description

X.Org xkbcommon library

Added to portage

2017-01-20

lv - 4.51-r4
Ebuild name:

app-text/lv-4.51-r4

Description

Powerful Multilingual File Viewer

Added to portage

2017-01-20

opera-beta - 43.0.2442.52
Ebuild name:

www-client/opera-beta-43.0.2442.52

Description

A fast and secure web browser

Added to portage

2017-01-20

perl-Test-Simple - 1.302.75
Ebuild name:

virtual/perl-Test-Simple-1.302.75

Description

Virtual for

Added to portage

2017-01-20

residualvm - 0.2.1-r1
Ebuild name:

games-engines/residualvm-0.2.1-r1

Description

A cross-platform 3D game interpreter for play LucasArts' LUA-base

Added to portage

2017-01-20

scummvm-tools - 1.8.0-r1
Ebuild name:

games-engines/scummvm-tools-1.8.0-r1

Description

utilities for the SCUMM game engine

Added to portage

2017-01-20

tcpdump - 4.9.0
Ebuild name:

net-analyzer/tcpdump-4.9.0

Description

A Tool for network monitoring and data acquisition

Added to portage

2017-01-20

vine - 1.1.3
Ebuild name:

dev-python/vine-1.1.3

Description

Python Promises

Added to portage

2017-01-20

youtube-dl - 2017.01.18
Ebuild name:

net-misc/youtube-dl-2017.01.18

Description

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

Added to portage

2017-01-20

2017-01-19
Modern-Perl - 1.201.701.170
Ebuild name:

dev-perl/Modern-Perl-1.201.701.170

Description

enable all of the features of Modern Perl with one import

Added to portage

2017-01-19

Mojolicious - 7.200.0
Ebuild name:

dev-perl/Mojolicious-7.200.0

Description

Real-time web framework

Added to portage

2017-01-19

Ref-Util - 0.113.0
Ebuild name:

dev-perl/Ref-Util-0.113.0

Description

Utility functions for checking references

Added to portage

2017-01-19

aria2 - 1.31.0
Ebuild name:

net-misc/aria2-1.31.0

Description

A download utility with segmented downloading with BitTorrent support

Added to portage

2017-01-19

artifactory-bin - 4.16.0
Ebuild name:

dev-util/artifactory-bin-4.16.0

Description

The world's most advanced repository manager for maven

Added to portage

2017-01-19

calamares - 2.4.6
Ebuild name:

app-admin/calamares-2.4.6

Description

Distribution-independent installer framework

Added to portage

2017-01-19

charm - 6.7.1
Ebuild name:

sys-cluster/charm-6.7.1

Description

Message-passing parallel language and runtime system

Added to portage

2017-01-19

clang - 4.0.0_rc1
Ebuild name:

sys-devel/clang-4.0.0_rc1

Description

C language family frontend for LLVM

Added to portage

2017-01-19

clang-runtime - 4.0.0_rc1
Ebuild name:

sys-devel/clang-runtime-4.0.0_rc1

Description

Meta-ebuild for clang runtime libraries

Added to portage

2017-01-19

compiler-rt - 4.0.0_rc1
Ebuild name:

sys-libs/compiler-rt-4.0.0_rc1

Description

Compiler runtime library for clang (built-in part)

Added to portage

2017-01-19

compiler-rt-sanitizers - 4.0.0_rc1
Ebuild name:

sys-libs/compiler-rt-sanitizers-4.0.0_rc1

Description

Compiler runtime libraries for clang (sanitizers & xray)

Added to portage

2017-01-19

courier - 0.76.4
Ebuild name:

mail-mta/courier-0.76.4

Description

An MTA designed specifically for maildirs

Added to portage

2017-01-19

criu - 2.10
Ebuild name:

sys-process/criu-2.10

Description

utility to checkpoint/restore a process tree

Added to portage

2017-01-19

cups - 2.2.2-r1
Ebuild name:

net-print/cups-2.2.2-r1

Description

The Common Unix Printing System

Added to portage

2017-01-19

cups-filters - 1.13.3
Ebuild name:

net-print/cups-filters-1.13.3

Description

Cups PDF filters

Added to portage

2017-01-19

diff-lcs - 1.3
Ebuild name:

dev-ruby/diff-lcs-1.3

Description

Use the McIlroy-Hunt LCS algorithm to compute differences

Added to portage

2017-01-19

docker - 1.13.0
Ebuild name:

app-emulation/docker-1.13.0

Description

The core functions you need to create Docker images and run Docker cont

Added to portage

2017-01-19

engrampa - 1.16.0-r1
Ebuild name:

app-arch/engrampa-1.16.0-r1

Description

Engrampa archive manager for MATE

Added to portage

2017-01-19

facter - 3.5.1
Ebuild name:

dev-ruby/facter-3.5.1

Description

A cross-platform ruby library for retrieving facts from operating systems

Added to portage

2017-01-19

freecad - 0.16
Ebuild name:

media-gfx/freecad-0.16

Description

QT based Computer Aided Design application

Added to portage

2017-01-19

gentoo-sources - 3.18.47
Ebuild name:

sys-kernel/gentoo-sources-3.18.47

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-01-19

gentoo-sources - 4.1.38
Ebuild name:

sys-kernel/gentoo-sources-4.1.38

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-01-19

gnupg-pkcs11-scd - 0.7.4
Ebuild name:

app-crypt/gnupg-pkcs11-scd-0.7.4

Description

PKCS11 support for GnuPG

Added to portage

2017-01-19

kodi - 16.1-r2
Ebuild name:

media-tv/kodi-16.1-r2

Description

Kodi is a free and open source media-player and entertainment hub

Added to portage

2017-01-19

kodi - 17.0_rc3-r2
Ebuild name:

media-tv/kodi-17.0_rc3-r2

Description

Kodi is a free and open source media-player and entertainment hub

Added to portage

2017-01-19

libcxx - 4.0.0_rc1
Ebuild name:

sys-libs/libcxx-4.0.0_rc1

Description

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

Added to portage

2017-01-19

libcxxabi - 4.0.0_rc1
Ebuild name:

sys-libs/libcxxabi-4.0.0_rc1

Description

Low level support for a standard C++ library

Added to portage

2017-01-19

libgit2 - 0.24.6
Ebuild name:

dev-libs/libgit2-0.24.6

Description

A linkable library for Git

Added to portage

2017-01-19

libomp - 4.0.0_rc1
Ebuild name:

sys-libs/libomp-4.0.0_rc1

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2017-01-19

libwps - 0.4.5
Ebuild name:

app-text/libwps-0.4.5

Description

Microsoft Works file word processor format import filter library

Added to portage

2017-01-19

libwww-perl - 6.160.0
Ebuild name:

dev-perl/libwww-perl-6.160.0

Description

A collection of Perl Modules for the WWW

Added to portage

2017-01-19

lit - 4.0.0_rc1
Ebuild name:

dev-python/lit-4.0.0_rc1

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2017-01-19

lld - 4.0.0_rc1
Ebuild name:

sys-devel/lld-4.0.0_rc1

Description

The LLVM linker (link editor)

Added to portage

2017-01-19

lldb - 4.0.0_rc1
Ebuild name:

dev-util/lldb-4.0.0_rc1

Description

The LLVM debugger

Added to portage

2017-01-19

llvm - 4.0.0_rc1
Ebuild name:

sys-devel/llvm-4.0.0_rc1

Description

Low Level Virtual Machine

Added to portage

2017-01-19

llvm-libunwind - 4.0.0_rc1
Ebuild name:

sys-libs/llvm-libunwind-4.0.0_rc1

Description

C++ runtime stack unwinder from LLVM

Added to portage

2017-01-19

llvm-ocaml - 4.0.0_rc1
Ebuild name:

dev-ml/llvm-ocaml-4.0.0_rc1

Description

OCaml bindings for LLVM

Added to portage

2017-01-19

nano - 2.7.4
Ebuild name:

app-editors/nano-2.7.4

Description

GNU GPL'd Pico clone with more functionality

Added to portage

2017-01-19

noexec - 1.1.0-r1
Ebuild name:

sys-apps/noexec-1.1.0-r1

Description

a package for preventing processes from using exec system calls

Added to portage

2017-01-19

opera - 42.0.2393.137
Ebuild name:

www-client/opera-42.0.2393.137

Description

A fast and secure web browser

Added to portage

2017-01-19

opera-developer - 44.0.2475.0
Ebuild name:

www-client/opera-developer-44.0.2475.0

Description

A fast and secure web browser

Added to portage

2017-01-19

oslo-config - 3.17.1
Ebuild name:

dev-python/oslo-config-3.17.1

Description

Oslo Configuration API

Added to portage

2017-01-19

pulseaudio - 10.0
Ebuild name:

media-sound/pulseaudio-10.0

Description

A networked sound server with an advanced plugin system

Added to portage

2017-01-19

pynag - 0.9.1
Ebuild name:

dev-python/pynag-0.9.1

Description

Python modules for Nagios plugins and configuration

Added to portage

2017-01-19

rbtools - 0.7.9
Ebuild name:

dev-util/rbtools-0.7.9

Description

Command line tools for use with Review Board

Added to portage

2017-01-19

samba - 4.5.4
Ebuild name:

net-fs/samba-4.5.4

Description

Samba Suite Version 4

Added to portage

2017-01-19

samba - 4.6.0_rc1
Ebuild name:

net-fs/samba-4.6.0_rc1

Description

Samba Suite Version 4

Added to portage

2017-01-19

shadowsocks-libev - 2.6.2
Ebuild name:

net-proxy/shadowsocks-libev-2.6.2

Description

A lightweight secured SOCKS5 proxy for embedded devices and low e

Added to portage

2017-01-19

sphinx - 1.5.1
Ebuild name:

dev-python/sphinx-1.5.1

Description

Python documentation generator

Added to portage

2017-01-19

stringex - 2.7.0
Ebuild name:

dev-ruby/stringex-2.7.0

Description

Extensions for Ruby's String class

Added to portage

2017-01-19

vanilla-sources - 3.18.47
Ebuild name:

sys-kernel/vanilla-sources-3.18.47

Description

Full sources for the Linux kernel

Added to portage

2017-01-19

vanilla-sources - 4.1.38
Ebuild name:

sys-kernel/vanilla-sources-4.1.38

Description

Full sources for the Linux kernel

Added to portage

2017-01-19

vice - 2.4.27-r3
Ebuild name:

app-emulation/vice-2.4.27-r3

Description

The Versatile Commodore 8-bit Emulator

Added to portage

2017-01-19

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: 5.7 ms
system status display
Stellenangebote