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:

43570

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

back



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
2018-11-15
bashdb - 4.4.1.0.0
Ebuild name:

app-shells/bashdb-4.4.1.0.0

Description

bash source code debugging

Added to portage

2018-11-15

checkbashisms - 2.18.9
Ebuild name:

dev-util/checkbashisms-2.18.9

Description

Perl script to check for commonly used bash features not defined by P

Added to portage

2018-11-15

chronograf - 1.7.3
Ebuild name:

net-analyzer/chronograf-1.7.3

Description

Monitoring, processing and alerting on time series data

Added to portage

2018-11-15

ck-sources - 4.14.81
Ebuild name:

sys-kernel/ck-sources-4.14.81

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sche

Added to portage

2018-11-15

ck-sources - 4.18.19
Ebuild name:

sys-kernel/ck-sources-4.18.19

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sche

Added to portage

2018-11-15

ck-sources - 4.19.2
Ebuild name:

sys-kernel/ck-sources-4.19.2

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sched

Added to portage

2018-11-15

ck-sources - 4.9.137
Ebuild name:

sys-kernel/ck-sources-4.9.137

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sche

Added to portage

2018-11-15

conky - 1.10.8-r4
Ebuild name:

app-admin/conky-1.10.8-r4

Description

An advanced, highly configurable system monitor for X

Added to portage

2018-11-15

cuneiform - 1.1.0-r3
Ebuild name:

app-text/cuneiform-1.1.0-r3

Description

An enterprise quality OCR engine by Cognitive Technologies

Added to portage

2018-11-15

davix - 0.7.1
Ebuild name:

net-libs/davix-0.7.1

Description

High-performance file management over WebDAV/HTTP

Added to portage

2018-11-15

grpc - 1.16.1
Ebuild name:

net-libs/grpc-1.16.1

Description

Modern open source high performance RPC framework

Added to portage

2018-11-15

grpcio - 1.16.1
Ebuild name:

dev-python/grpcio-1.16.1

Description

High-performance RPC framework (python libraries)

Added to portage

2018-11-15

grpcio-testing - 1.16.1
Ebuild name:

dev-python/grpcio-testing-1.16.1

Description

Testing utilities for gRPC Python

Added to portage

2018-11-15

grpcio-tools - 1.16.1
Ebuild name:

dev-python/grpcio-tools-1.16.1

Description

Protobuf code generator for gRPC

Added to portage

2018-11-15

grs - 0.7
Ebuild name:

app-portage/grs-0.7

Description

Suite to build Gentoo Reference Systems

Added to portage

2018-11-15

httparty - 0.16.3
Ebuild name:

dev-ruby/httparty-0.16.3

Description

Makes http fun Also, makes consuming restful web services dead easy

Added to portage

2018-11-15

img - 0.5.4
Ebuild name:

app-emulation/img-0.5.4

Description

Standalone daemon-less unprivileged Dockerfile and OCI container image buil

Added to portage

2018-11-15

keepalived - 2.0.10-r1
Ebuild name:

sys-cluster/keepalived-2.0.10-r1

Description

A strong & robust keepalive facility to the Linux Virtual Serv

Added to portage

2018-11-15

kodi-audioencoder-flac - 1.1.0-r1
Ebuild name:

media-plugins/kodi-audioencoder-flac-1.1.0-r1

Description

Flac encoder addon for Kodi

Added to portage

2018-11-15

kodi-audioencoder-flac - 2.0.1
Ebuild name:

media-plugins/kodi-audioencoder-flac-2.0.1

Description

Flac encoder addon for Kodi

Added to portage

2018-11-15

kodi-audioencoder-vorbis - 1.1.0-r1
Ebuild name:

media-plugins/kodi-audioencoder-vorbis-1.1.0-r1

Description

Vorbis encoder addon for Kodi

Added to portage

2018-11-15

kodi-audioencoder-vorbis - 2.0.1
Ebuild name:

media-plugins/kodi-audioencoder-vorbis-2.0.1

Description

Vorbis encoder addon for Kodi

Added to portage

2018-11-15

kodi-inputstream-adaptive - 2.3.9
Ebuild name:

media-plugins/kodi-inputstream-adaptive-2.3.9

Description

Kodi's Adaptive inputstream addon

Added to portage

2018-11-15

kodi-pvr-dvbviewer - 3.7.5
Ebuild name:

media-plugins/kodi-pvr-dvbviewer-3.7.5

Description

Kodi's DVBViewer client addon

Added to portage

2018-11-15

kodi-pvr-wmc - 2.4.1
Ebuild name:

media-plugins/kodi-pvr-wmc-2.4.1

Description

Kodi's Windows Media Center client addon

Added to portage

2018-11-15

kodi-visualization-goom - 1.1.0-r1
Ebuild name:

media-plugins/kodi-visualization-goom-1.1.0-r1

Description

Goom visualizer for Kodi

Added to portage

2018-11-15

libadalang - 2017-r1
Ebuild name:

dev-ada/libadalang-2017-r1

Description

high performance semantic engine for the Ada programming language

Added to portage

2018-11-15

liboauth - 1.0.3-r1
Ebuild name:

net-libs/liboauth-1.0.3-r1

Description

C library implementing the OAuth secure authentication protocol

Added to portage

2018-11-15

mesa - 18.2.5
Ebuild name:

media-libs/mesa-18.2.5

Description

OpenGL-like graphic library for Linux

Added to portage

2018-11-15

minio - 2018.11.15.01.26.07
Ebuild name:

net-fs/minio-2018.11.15.01.26.07

Description

An Amazon S3 compatible object storage server

Added to portage

2018-11-15

nfs4-acl-tools - 0.3.5
Ebuild name:

net-fs/nfs4-acl-tools-0.3.5

Description

Commandline and GUI tools that deal directly with NFSv4 ACLs

Added to portage

2018-11-15

percona-server - 5.7.23.24
Ebuild name:

dev-db/percona-server-5.7.23.24

Description

A fast, multi-threaded, multi-user SQL database server

Added to portage

2018-11-15

phpsysinfo - 3.2.10-r1
Ebuild name:

www-apps/phpsysinfo-3.2.10-r1

Description

A customizable PHP script that displays information about your system

Added to portage

2018-11-15

pyTenable - 0.3.0
Ebuild name:

dev-python/pyTenable-0.3.0

Description

Tenable API Library for Tenable.io and SecurityCenter

Added to portage

2018-11-15

reg - 0.16.0
Ebuild name:

app-emulation/reg-0.16.0

Description

Docker registry v2 command line client

Added to portage

2018-11-15

regexp_parser - 1.3.0
Ebuild name:

dev-ruby/regexp_parser-1.3.0

Description

A library for tokenizing, lexing, and parsing Ruby regular expressions

Added to portage

2018-11-15

rust - 1.29.1-r1
Ebuild name:

dev-lang/rust-1.29.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust - 1.29.2-r1
Ebuild name:

dev-lang/rust-1.29.2-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust - 1.30.1-r1
Ebuild name:

dev-lang/rust-1.30.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust-bin - 1.29.1-r1
Ebuild name:

dev-lang/rust-bin-1.29.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust-bin - 1.29.2-r1
Ebuild name:

dev-lang/rust-bin-1.29.2-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust-bin - 1.30.1-r1
Ebuild name:

dev-lang/rust-bin-1.30.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

thunderbird - 60.3.1
Ebuild name:

mail-client/thunderbird-60.3.1

Description

Thunderbird Mail Client

Added to portage

2018-11-15

thunderbird-bin - 60.3.1
Ebuild name:

mail-client/thunderbird-bin-60.3.1

Description

Thunderbird Mail Client

Added to portage

2018-11-15

vc - 1.4.0
Ebuild name:

dev-libs/vc-1.4.0

Description

SIMD Vector Class Library for C++

Added to portage

2018-11-15

vobject - 0.9.6.1
Ebuild name:

dev-python/vobject-0.9.6.1

Description

Python package for parsing and generating vCard and vCalendar files

Added to portage

2018-11-15

yarn - 1.12.3
Ebuild name:

sys-apps/yarn-1.12.3

Description

Fast, reliable, and secure node dependency management

Added to portage

2018-11-15

2018-11-14
alacritty - 0.2.3
Ebuild name:

x11-terms/alacritty-0.2.3

Description

GPU-accelerated terminal emulator

Added to portage

2018-11-14

cargo - 1.30.1
Ebuild name:

virtual/cargo-1.30.1

Description

Package manager for Rust

Added to portage

2018-11-14

chrome-binary-plugins - 72.0.3608.4_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-72.0.3608.4_alpha

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2018-11-14

ecma-re-validator - 0.2.0
Ebuild name:

dev-ruby/ecma-re-validator-0.2.0

Description

Validate a regular expression string against what ECMA-262 can act

Added to portage

2018-11-14

gentoo-sources - 4.14.81
Ebuild name:

sys-kernel/gentoo-sources-4.14.81

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

gentoo-sources - 4.18.19
Ebuild name:

sys-kernel/gentoo-sources-4.18.19

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

gentoo-sources - 4.19.2
Ebuild name:

sys-kernel/gentoo-sources-4.19.2

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

gentoo-sources - 4.9.137
Ebuild name:

sys-kernel/gentoo-sources-4.9.137

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

google-chrome-unstable - 72.0.3608.4
Ebuild name:

www-client/google-chrome-unstable-72.0.3608.4

Description

The web browser from Google

Added to portage

2018-11-14

gsoap - 2.8.71
Ebuild name:

net-libs/gsoap-2.8.71

Description

A cross-platform open source C and C++ SDK for SOAP/XML Web services

Added to portage

2018-11-14

icinga2 - 2.10.2
Ebuild name:

net-analyzer/icinga2-2.10.2

Description

Distributed, general purpose, network monitoring engine

Added to portage

2018-11-14

iptables - 1.8.2
Ebuild name:

net-firewall/iptables-1.8.2

Description

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

Added to portage

2018-11-14

kio-extras - 18.08.3-r1
Ebuild name:

kde-apps/kio-extras-18.08.3-r1

Description

KIO plugins present a filesystem-like view of arbitrary data

Added to portage

2018-11-14

libdlo - 0.1.2-r1
Ebuild name:

x11-libs/libdlo-0.1.2-r1

Description

A fully open source driver which supports all DisplayLink devices

Added to portage

2018-11-14

libnftnl - 1.1.2-r1
Ebuild name:

net-libs/libnftnl-1.1.2-r1

Description

Netlink API to the in-kernel nf_tables subsystem

Added to portage

2018-11-14

mariadb - 10.2.19
Ebuild name:

dev-db/mariadb-10.2.19

Description

An enhanced, drop-in replacement for MySQL

Added to portage

2018-11-14

mysql - 5.5.62
Ebuild name:

dev-db/mysql-5.5.62

Description

An enhanced, drop-in replacement for MySQL

Added to portage

2018-11-14

mysql - 5.6.42
Ebuild name:

dev-db/mysql-5.6.42

Description

A fast, multi-threaded, multi-user SQL database server

Added to portage

2018-11-14

prompt_toolkit - 2.0.7
Ebuild name:

dev-python/prompt_toolkit-2.0.7

Description

Building powerful interactive command lines in Python

Added to portage

2018-11-14

pysaml2 - 4.6.3
Ebuild name:

dev-python/pysaml2-4.6.3

Description

Python implementation of SAML Version 2 to be used in a WSGI environment

Added to portage

2018-11-14

rust - 1.30.1
Ebuild name:

virtual/rust-1.30.1

Description

Virtual for Rust language compiler

Added to portage

2018-11-14

sudo - 1.8.26
Ebuild name:

app-admin/sudo-1.8.26

Description

Allows users or groups to run commands as other users

Added to portage

2018-11-14

vanilla-sources - 4.14.81
Ebuild name:

sys-kernel/vanilla-sources-4.14.81

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

vanilla-sources - 4.18.19
Ebuild name:

sys-kernel/vanilla-sources-4.18.19

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

vanilla-sources - 4.19.2
Ebuild name:

sys-kernel/vanilla-sources-4.19.2

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

vanilla-sources - 4.9.137
Ebuild name:

sys-kernel/vanilla-sources-4.9.137

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

wget - 1.19.5-r1
Ebuild name:

net-misc/wget-1.19.5-r1

Description

Network utility to retrieve files from the WWW

Added to portage

2018-11-14

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 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: 58.0 ms