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:

44741

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
2019-02-23
arabeyes-fonts - 2.0-r1
Ebuild name:

media-fonts/arabeyes-fonts-2.0-r1

Description

Arabeyes Arabic TrueType fonts

Added to portage

2019-02-23

buildah - 1.7
Ebuild name:

app-emulation/buildah-1.7

Description

A tool that facilitates building OCI images

Added to portage

2019-02-23

clamav - 0.101.1
Ebuild name:

app-antivirus/clamav-0.101.1

Description

Clam Anti-Virus Scanner

Added to portage

2019-02-23

commoncpp2 - 1.8.1-r4
Ebuild name:

dev-cpp/commoncpp2-1.8.1-r4

Description

C++ library offering portable support for system-related services

Added to portage

2019-02-23

dbf - 4.1.2
Ebuild name:

dev-ruby/dbf-4.1.2

Description

a small fast library for reading dBase, xBase, Clipper and FoxPro database files

Added to portage

2019-02-23

dconf - 0.30.1
Ebuild name:

gnome-base/dconf-0.30.1

Description

Simple low-level configuration system

Added to portage

2019-02-23

dotenv - 2.7.0
Ebuild name:

dev-ruby/dotenv-2.7.0

Description

Loads environment variables from .env into ENV

Added to portage

2019-02-23

firefox - 60.5.2
Ebuild name:

www-client/firefox-60.5.2

Description

Firefox Web Browser

Added to portage

2019-02-23

firefox-bin - 60.5.2
Ebuild name:

www-client/firefox-bin-60.5.2

Description

Firefox Web Browser

Added to portage

2019-02-23

ftnchek - 3.3.1-r2
Ebuild name:

dev-util/ftnchek-3.3.1-r2

Description

Static analyzer a la 'lint' for Fortran 77

Added to portage

2019-02-23

gcc - 8.3.0
Ebuild name:

sys-devel/gcc-8.3.0

Description

The GNU Compiler Collection

Added to portage

2019-02-23

gnome-desktop - 3.30.2.1
Ebuild name:

gnome-base/gnome-desktop-3.30.2.1

Description

Library with common API for various GNOME modules

Added to portage

2019-02-23

gsettings-desktop-schemas - 3.28.1
Ebuild name:

gnome-base/gsettings-desktop-schemas-3.28.1

Description

Collection of GSettings schemas for GNOME desktop

Added to portage

2019-02-23

hyperscan - 5.1.0
Ebuild name:

dev-libs/hyperscan-5.1.0

Description

High-performance regular expression matching library

Added to portage

2019-02-23

interbench - 0.31
Ebuild name:

app-benchmarks/interbench-0.31

Description

A Linux interactivity benchmark

Added to portage

2019-02-23

json_schema - 0.20.3
Ebuild name:

dev-ruby/json_schema-0.20.3

Description

A JSON Schema V4 and Hyperschema V4 parser and validator

Added to portage

2019-02-23

kgcc64 - 8.3.0
Ebuild name:

sys-devel/kgcc64-8.3.0

Description

64bit kernel compiler

Added to portage

2019-02-23

ldb - 1.3.7
Ebuild name:

sys-libs/ldb-1.3.7

Description

An LDAP-like embedded database

Added to portage

2019-02-23

ldb - 1.4.5
Ebuild name:

sys-libs/ldb-1.4.5

Description

An LDAP-like embedded database

Added to portage

2019-02-23

ldb - 1.5.3
Ebuild name:

sys-libs/ldb-1.5.3

Description

An LDAP-like embedded database

Added to portage

2019-02-23

ncp - 1.2.4-r1
Ebuild name:

net-misc/ncp-1.2.4-r1

Description

Utility for copying files in a LAN (npoll, npush)

Added to portage

2019-02-23

nokogumbo - 2.0.1
Ebuild name:

dev-ruby/nokogumbo-2.0.1

Description

A Nokogiri interface to the Gumbo HTML5 parser

Added to portage

2019-02-23

openrc - 0.41
Ebuild name:

sys-apps/openrc-0.41

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2019-02-23

openvpn - 2.4.7
Ebuild name:

net-vpn/openvpn-2.4.7

Description

Robust and highly flexible tunneling application compatible with many OSes

Added to portage

2019-02-23

pecl-timezonedb - 2018.9
Ebuild name:

dev-php/pecl-timezonedb-2018.9

Description

Timezone Database to be used with PHP's date and time functions

Added to portage

2019-02-23

proftpd - 1.3.6-r3
Ebuild name:

net-ftp/proftpd-1.3.6-r3

Description

An advanced and very configurable FTP server

Added to portage

2019-02-23

pyopenssl - 19.0.0
Ebuild name:

dev-python/pyopenssl-19.0.0

Description

Python interface to the OpenSSL library

Added to portage

2019-02-23

restart-services - 0.14.3
Ebuild name:

app-admin/restart-services-0.14.3

Description

Tool to manage OpenRC services that need to be restarted

Added to portage

2019-02-23

safe_yaml - 1.0.5
Ebuild name:

dev-ruby/safe_yaml-1.0.5

Description

Parse YAML safely, alternative implementation of YAML.load

Added to portage

2019-02-23

samba - 4.10.0_rc3
Ebuild name:

net-fs/samba-4.10.0_rc3

Description

Samba Suite Version 4

Added to portage

2019-02-23

sanitize - 5.0.0
Ebuild name:

dev-ruby/sanitize-5.0.0

Description

Sanitize is a whitelist-based HTML sanitizer

Added to portage

2019-02-23

skim - 0.5.5
Ebuild name:

app-misc/skim-0.5.5

Description

a command-line fuzzy finder

Added to portage

2019-02-23

spreadsheet - 1.2.0
Ebuild name:

dev-ruby/spreadsheet-1.2.0

Description

Ruby library to read and write spreadsheet documents

Added to portage

2019-02-23

ssss - 0.5
Ebuild name:

app-crypt/ssss-0.5

Description

Shamir's Secret Sharing Scheme

Added to portage

2019-02-23

sway - 1.0_rc1-r1
Ebuild name:

gui-wm/sway-1.0_rc1-r1

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

sway - 1.0_rc2
Ebuild name:

gui-wm/sway-1.0_rc2

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

sway - 1.0_rc3
Ebuild name:

gui-wm/sway-1.0_rc3

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

sway - 9999
Ebuild name:

gui-wm/sway-9999

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

swayidle - 1.2
Ebuild name:

gui-apps/swayidle-1.2

Description

Idle management daemon for Wayland

Added to portage

2019-02-23

swayidle - 9999
Ebuild name:

gui-apps/swayidle-9999

Description

Idle management daemon for Wayland

Added to portage

2019-02-23

swaylock - 1.3
Ebuild name:

gui-apps/swaylock-1.3

Description

Screen locker for Wayland

Added to portage

2019-02-23

swaylock - 9999
Ebuild name:

gui-apps/swaylock-9999

Description

Screen locker for Wayland

Added to portage

2019-02-23

tcpdf - 6.2.26
Ebuild name:

dev-php/tcpdf-6.2.26

Description

TCPDF is a FLOSS PHP class for generating PDF documents

Added to portage

2019-02-23

wlroots - 0.2
Ebuild name:

gui-libs/wlroots-0.2

Description

Pluggable, composable, unopinionated modules for building a Wayland compositor

Added to portage

2019-02-23

wlroots - 0.3
Ebuild name:

gui-libs/wlroots-0.3

Description

Pluggable, composable, unopinionated modules for building a Wayland compositor

Added to portage

2019-02-23

wlroots - 9999
Ebuild name:

gui-libs/wlroots-9999

Description

Pluggable, composable, unopinionated modules for building a Wayland composito

Added to portage

2019-02-23

xapian - 1.4.10
Ebuild name:

dev-libs/xapian-1.4.10

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2019-02-23

xapian-omega - 1.4.10
Ebuild name:

app-text/xapian-omega-1.4.10

Description

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

Added to portage

2019-02-23

2019-02-22
PEAR-Net_IPv4 - 1.3.5
Ebuild name:

dev-php/PEAR-Net_IPv4-1.3.5

Description

PEAR class for IP v4 calculations

Added to portage

2019-02-22

PHPMailer - 5.2.27
Ebuild name:

dev-php/PHPMailer-5.2.27

Description

Full-featured email creation and transfer class for PHP

Added to portage

2019-02-22

PHPMailer - 6.0.7
Ebuild name:

dev-php/PHPMailer-6.0.7

Description

Full-featured email creation and transfer class for PHP

Added to portage

2019-02-22

albert - 0.16.1
Ebuild name:

x11-misc/albert-0.16.1

Description

Desktop agnostic launcher

Added to portage

2019-02-22

ansible - 2.6.14
Ebuild name:

app-admin/ansible-2.6.14

Description

Model-driven deployment, config management, and command execution framewor

Added to portage

2019-02-22

ansible - 2.7.8
Ebuild name:

app-admin/ansible-2.7.8

Description

Model-driven deployment, config management, and command execution framework

Added to portage

2019-02-22

asciinema - 2.0.2
Ebuild name:

app-misc/asciinema-2.0.2

Description

Command line recorder for asciinema.org service

Added to portage

2019-02-22

carbon-c-relay - 3.5
Ebuild name:

app-misc/carbon-c-relay-3.5

Description

Enhanced C version of Carbon relay, aggregator and rewriter

Added to portage

2019-02-22

checkbashisms - 2.19.3
Ebuild name:

dev-util/checkbashisms-2.19.3

Description

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

Added to portage

2019-02-22

dbus - 1.12.12-r1
Ebuild name:

sys-apps/dbus-1.12.12-r1

Description

A message bus system, a simple way for applications to talk to each other

Added to portage

2019-02-22

drone-cli - 1.0.7
Ebuild name:

dev-util/drone-cli-1.0.7

Description

Command-line interface for Drone

Added to portage

2019-02-22

eiciel - 0.9.12.1
Ebuild name:

gnome-extra/eiciel-0.9.12.1

Description

ACL editor for GNOME, with Nautilus extension

Added to portage

2019-02-22

evolution - 3.30.5
Ebuild name:

mail-client/evolution-3.30.5

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2019-02-22

evolution-data-server - 3.30.5
Ebuild name:

gnome-extra/evolution-data-server-3.30.5

Description

Evolution groupware backend

Added to portage

2019-02-22

evolution-ews - 3.30.5
Ebuild name:

gnome-extra/evolution-ews-3.30.5

Description

Evolution module for connecting to Microsoft Exchange Web Services

Added to portage

2019-02-22

fakefs - 0.19.2
Ebuild name:

dev-ruby/fakefs-0.19.2

Description

A fake filesystem. Use it in your tests

Added to portage

2019-02-22

file - 5.36
Ebuild name:

sys-apps/file-5.36

Description

identify a file's format by scanning binary data for patterns

Added to portage

2019-02-22

gsoap - 2.8.80
Ebuild name:

net-libs/gsoap-2.8.80

Description

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

Added to portage

2019-02-22

ibm-plex - 1.2.3
Ebuild name:

media-fonts/ibm-plex-1.2.3

Description

The package of IBM's typeface

Added to portage

2019-02-22

igbinary - 3.0.0
Ebuild name:

dev-php/igbinary-3.0.0

Description

A fast drop-in replacement for the standard PHP serialize

Added to portage

2019-02-22

joystick - 1.6.1
Ebuild name:

games-util/joystick-1.6.1

Description

joystick testing utilities

Added to portage

2019-02-22

js8call - 1.0.0_rc1
Ebuild name:

media-radio/js8call-1.0.0_rc1

Description

Weak signal ham radio communication

Added to portage

2019-02-22

json - 2.2.0
Ebuild name:

dev-ruby/json-2.2.0

Description

A JSON implementation as a Ruby extension

Added to portage

2019-02-22

json-schema - 5.2.8
Ebuild name:

dev-php/json-schema-5.2.8

Description

PHP implementation of JSON schema

Added to portage

2019-02-22

kafka-bin - 2.1.1
Ebuild name:

net-misc/kafka-bin-2.1.1

Description

A high-throughput distributed messaging system

Added to portage

2019-02-22

linux-firmware - 20190221
Ebuild name:

sys-kernel/linux-firmware-20190221

Description

Linux firmware files

Added to portage

2019-02-22

mbuffer - 20190127
Ebuild name:

sys-block/mbuffer-20190127

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2019-02-22

netdata - 1.12.1
Ebuild name:

net-analyzer/netdata-1.12.1

Description

Linux real time system monitoring, done right

Added to portage

2019-02-22

nnn - 2.3
Ebuild name:

app-misc/nnn-2.3

Description

The missing terminal file browser for X

Added to portage

2019-02-22

openldap - 2.4.47-r1
Ebuild name:

net-nds/openldap-2.4.47-r1

Description

LDAP suite of application and development tools

Added to portage

2019-02-22

pecl-apcu - 5.1.17
Ebuild name:

dev-php/pecl-apcu-5.1.17

Description

Stripped down version of APC supporting only user cache

Added to portage

2019-02-22

pecl-lzf - 1.6.7
Ebuild name:

dev-php/pecl-lzf-1.6.7

Description

This package handles LZF de/compression

Added to portage

2019-02-22

phar-io-manifest - 1.0.3
Ebuild name:

dev-php/phar-io-manifest-1.0.3

Description

Reading phar.io manifest information from a PHP Archive (PHAR)

Added to portage

2019-02-22

phar-io-version - 2.0.1
Ebuild name:

dev-php/phar-io-version-2.0.1

Description

Library for handling version information and constraints

Added to portage

2019-02-22

phpspec-prophecy - 1.8.0
Ebuild name:

dev-php/phpspec-prophecy-1.8.0

Description

Highly opinionated mocking framework

Added to portage

2019-02-22

postfix - 3.4.0_rc3
Ebuild name:

mail-mta/postfix-3.4.0_rc3

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2019-02-22

prometheus_client - 0.6.0
Ebuild name:

dev-python/prometheus_client-0.6.0

Description

Python client for the Prometheus monitoring system

Added to portage

2019-02-22

puppet - 6.3.0
Ebuild name:

app-admin/puppet-6.3.0

Description

A system automation and configuration management software.

Added to portage

2019-02-22

puppet-agent - 6.3.0
Ebuild name:

app-admin/puppet-agent-6.3.0

Description

general puppet client utils along with hiera and facter

Added to portage

2019-02-22

puppetserver - 6.2.1
Ebuild name:

app-admin/puppetserver-6.2.1

Description

Puppet Server is the next-generation application for managing Puppet a

Added to portage

2019-02-22

rar - 5.7.0_beta2_p20190221
Ebuild name:

app-arch/rar-5.7.0_beta2_p20190221

Description

RAR compressor/uncompressor

Added to portage

2019-02-22

stress-ng - 0.09.53
Ebuild name:

app-benchmarks/stress-ng-0.09.53

Description

Stress test for a computer system with various selectable ways

Added to portage

2019-02-22

swoole - 4.2.13
Ebuild name:

dev-php/swoole-4.2.13

Description

Event-driven asynchronous & concurrent & coroutine networking engine

Added to portage

2019-02-22

teamspeak-client - 3.2.3-r1
Ebuild name:

media-sound/teamspeak-client-3.2.3-r1

Description

A client software for quality voice communication via the int

Added to portage

2019-02-22

unrar - 5.7.2
Ebuild name:

app-arch/unrar-5.7.2

Description

Uncompress rar files

Added to portage

2019-02-22

xdebug - 2.7.0_rc2
Ebuild name:

dev-php/xdebug-2.7.0_rc2

Description

A PHP debugging and profiling extension

Added to portage

2019-02-22

xdebug-client - 2.7.0_rc2
Ebuild name:

dev-php/xdebug-client-2.7.0_rc2

Description

Xdebug client for the Common Debugger Protocol (DBGP)

Added to portage

2019-02-22

xf86-video-intel - 2.99.917_p20180214-r2
Ebuild name:

x11-drivers/xf86-video-intel-2.99.917_p20180214-r2

Description

X.Org driver for Intel cards

Added to portage

2019-02-22

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