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:

57189

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

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2021-01-20
boto - 2.49.0-r4
Ebuild name:

dev-python/boto-2.49.0-r4

Description

Amazon Web Services API

Added to portage

2021-01-20

chrome-binary-plugins - 88.0.4324.96
Ebuild name:

www-plugins/chrome-binary-plugins-88.0.4324.96

Description

Binary plugins from Google Chrome for use in Chromiu

Added to portage

2021-01-20

dist-kernel - 5.10.9
Ebuild name:

virtual/dist-kernel-5.10.9

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-01-20

dist-kernel - 5.4.91
Ebuild name:

virtual/dist-kernel-5.4.91

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-01-20

dnsmasq - 2.83
Ebuild name:

net-dns/dnsmasq-2.83

Description

Small forwarding DNS server

Added to portage

2021-01-20

dnsmasq - 2.83-r100
Ebuild name:

net-dns/dnsmasq-2.83-r100

Description

Small forwarding DNS server

Added to portage

2021-01-20

gentoo-kernel - 5.10.9
Ebuild name:

sys-kernel/gentoo-kernel-5.10.9

Description

Linux kernel built with Gentoo patches

Added to portage

2021-01-20

gentoo-kernel - 5.4.91
Ebuild name:

sys-kernel/gentoo-kernel-5.4.91

Description

Linux kernel built with Gentoo patches

Added to portage

2021-01-20

gentoo-kernel-bin - 5.10.9
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.9

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-01-20

gentoo-kernel-bin - 5.4.91
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.4.91

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-01-20

gentoo-sources - 4.19.169
Ebuild name:

sys-kernel/gentoo-sources-4.19.169

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2021-01-20

gentoo-sources - 5.10.9
Ebuild name:

sys-kernel/gentoo-sources-5.10.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2021-01-20

gentoo-sources - 5.4.91
Ebuild name:

sys-kernel/gentoo-sources-5.4.91

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2021-01-20

google-chrome - 88.0.4324.96
Ebuild name:

www-client/google-chrome-88.0.4324.96

Description

The web browser from Google

Added to portage

2021-01-20

help2man - 1.47.17
Ebuild name:

sys-apps/help2man-1.47.17

Description

GNU utility to convert program --help output to a man page

Added to portage

2021-01-20

hip - 4.0.0-r1
Ebuild name:

dev-util/hip-4.0.0-r1

Description

C++ Heterogeneous-Compute Interface for Portability

Added to portage

2021-01-20

kwallet-pam - 5.20.5-r1
Ebuild name:

kde-plasma/kwallet-pam-5.20.5-r1

Description

PAM module to not enter KWallet password again after login

Added to portage

2021-01-20

llvm-roc - 4.0.0-r1
Ebuild name:

sys-devel/llvm-roc-4.0.0-r1

Description

Radeon Open Compute llvm,lld,clang

Added to portage

2021-01-20

microsoft-edge-dev - 89.0.767.0
Ebuild name:

www-client/microsoft-edge-dev-89.0.767.0

Description

The web browser from Microsoft

Added to portage

2021-01-20

musl - 1.2.2
Ebuild name:

sys-libs/musl-1.2.2

Description

Light, fast and simple C library focused on standards-conformance and safety

Added to portage

2021-01-20

noto-emoji - 20201214
Ebuild name:

media-fonts/noto-emoji-20201214

Description

Google Noto Emoji fonts

Added to portage

2021-01-20

python - 2.7.18-r6
Ebuild name:

dev-lang/python-2.7.18-r6

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2021-01-20

python - 3.10.0_alpha3-r1
Ebuild name:

dev-lang/python-3.10.0_alpha3-r1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2021-01-20

python - 3.6.12-r2
Ebuild name:

dev-lang/python-3.6.12-r2

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2021-01-20

python - 3.7.9-r2
Ebuild name:

dev-lang/python-3.7.9-r2

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2021-01-20

python - 3.8.7-r1
Ebuild name:

dev-lang/python-3.8.7-r1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2021-01-20

python - 3.9.1-r1
Ebuild name:

dev-lang/python-3.9.1-r1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2021-01-20

python-backoff - 1.10.0
Ebuild name:

dev-python/python-backoff-1.10.0

Description

Function decoration for backoff and retry

Added to portage

2021-01-20

pyyaml - 5.4
Ebuild name:

dev-python/pyyaml-5.4

Description

YAML parser and emitter for Python

Added to portage

2021-01-20

spiped - 1.6.1
Ebuild name:

net-misc/spiped-1.6.1

Description

secure pipe daemon

Added to portage

2021-01-20

tmux-xpanes - 4.1.2
Ebuild name:

app-misc/tmux-xpanes-4.1.2

Description

tmux-based terminal divider

Added to portage

2021-01-20

vanilla-kernel - 5.10.9
Ebuild name:

sys-kernel/vanilla-kernel-5.10.9

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-01-20

vanilla-kernel - 5.4.91
Ebuild name:

sys-kernel/vanilla-kernel-5.4.91

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-01-20

xapian - 1.4.18
Ebuild name:

dev-libs/xapian-1.4.18

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2021-01-20

2021-01-19
PEAR-Archive_Tar - 1.4.12
Ebuild name:

dev-php/PEAR-Archive_Tar-1.4.12

Description

Tar file management class

Added to portage

2021-01-19

alembic - 1.5.0
Ebuild name:

dev-python/alembic-1.5.0

Description

database migrations tool, written by the author of SQLAlchemy

Added to portage

2021-01-19

ansible - 2.10.5
Ebuild name:

app-admin/ansible-2.10.5

Description

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

Added to portage

2021-01-19

ansible-base - 2.10.5
Ebuild name:

app-admin/ansible-base-2.10.5

Description

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

Added to portage

2021-01-19

btrfs-progs - 5.10
Ebuild name:

sys-fs/btrfs-progs-5.10

Description

Btrfs filesystem utilities

Added to portage

2021-01-19

cheroot - 8.5.2
Ebuild name:

dev-python/cheroot-8.5.2

Description

Cheroot is the high-performance, pure-Python HTTP server used by CherryPy.

Added to portage

2021-01-19

chrome-binary-plugins - 88.0.4324.96_beta
Ebuild name:

www-plugins/chrome-binary-plugins-88.0.4324.96_beta

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2021-01-19

chromium - 88.0.4324.96
Ebuild name:

www-client/chromium-88.0.4324.96

Description

Open-source version of Google Chrome web browser

Added to portage

2021-01-19

cliff - 3.6.0
Ebuild name:

dev-python/cliff-3.6.0

Description

Command Line Interface Formulation Framework

Added to portage

2021-01-19

colm - 0.14.6
Ebuild name:

dev-util/colm-0.14.6

Description

COmputer Language Manipulation

Added to portage

2021-01-19

colord - 0
Ebuild name:

acct-group/colord-0

Description

Added to portage

2021-01-19

colord - 0
Ebuild name:

acct-user/colord-0

Description

User for running the colord service

Added to portage

2021-01-19

colord-gtk - 0.2.0
Ebuild name:

x11-libs/colord-gtk-0.2.0

Description

GTK support library for colord

Added to portage

2021-01-19

eccodes - 2.18.0
Ebuild name:

sci-libs/eccodes-2.18.0

Description

A set of encoding/decoding APIs and tools for WMO GRIB, BUFR, and GTS messa

Added to portage

2021-01-19

efibootmgr - 17
Ebuild name:

sys-boot/efibootmgr-17

Description

User-space application to modify the EFI boot manager

Added to portage

2021-01-19

facter - 3.14.15
Ebuild name:

dev-ruby/facter-3.14.15

Description

Added to portage

2021-01-19

filezilla - 3.52.2
Ebuild name:

net-ftp/filezilla-3.52.2

Description

FTP client with lots of useful features and an intuitive interface

Added to portage

2021-01-19

gdm - 0
Ebuild name:

acct-group/gdm-0

Description

Added to portage

2021-01-19

gdm - 0
Ebuild name:

acct-user/gdm-0

Description

User for running GDM

Added to portage

2021-01-19

geneweb - 7.0.0-r2
Ebuild name:

app-misc/geneweb-7.0.0-r2

Description

Genealogy software program with a Web interface

Added to portage

2021-01-19

gentoo-kernel-bin - 5.10.8-r1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.8-r1

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-01-19

gentoo-kernel-bin - 5.4.90-r1
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.4.90-r1

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-01-19

google-chrome-beta - 88.0.4324.96
Ebuild name:

www-client/google-chrome-beta-88.0.4324.96

Description

The web browser from Google

Added to portage

2021-01-19

importlib_resources - 5.1.0
Ebuild name:

dev-python/importlib_resources-5.1.0

Description

Read resources from Python packages

Added to portage

2021-01-19

innoextract - 1.9
Ebuild name:

app-arch/innoextract-1.9

Description

A tool to unpack installers created by Inno Setup

Added to portage

2021-01-19

krita - 4.4.2
Ebuild name:

media-gfx/krita-4.4.2

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2021-01-19

lbzip2 - 2.5_p20181227-r1
Ebuild name:

app-arch/lbzip2-2.5_p20181227-r1

Description

Parallel bzip2 utility

Added to portage

2021-01-19

libaom - 2.0.1
Ebuild name:

media-libs/libaom-2.0.1

Description

Alliance for Open Media AV1 Codec SDK

Added to portage

2021-01-19

libsigc++ - 2.10.6
Ebuild name:

dev-libs/libsigc++-2.10.6

Description

Typesafe callback system for standard C++

Added to portage

2021-01-19

mgorny-dev-scripts - 7
Ebuild name:

app-portage/mgorny-dev-scripts-7

Description

Handy scripts for ebuild development and more

Added to portage

2021-01-19

opera-developer - 75.0.3939.0
Ebuild name:

www-client/opera-developer-75.0.3939.0

Description

A fast and secure web browser

Added to portage

2021-01-19

portage - 3.0.14
Ebuild name:

sys-apps/portage-3.0.14

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2021-01-19

protonmail-bridge - 1.5.4
Ebuild name:

mail-mta/protonmail-bridge-1.5.4

Description

Serves ProtonMail to IMAP/SMTP clients

Added to portage

2021-01-19

protontricks - 1.4.3
Ebuild name:

app-emulation/protontricks-1.4.3

Description

app-emulation/winetricks wrapper for Proton (Steam Play) games

Added to portage

2021-01-19

python-exec - 2.4.6-r4
Ebuild name:

dev-lang/python-exec-2.4.6-r4

Description

Python script wrapper

Added to portage

2021-01-19

python-exec-conf - 2.4.6
Ebuild name:

dev-lang/python-exec-conf-2.4.6

Description

Configuration file for dev-lang/python-exec

Added to portage

2021-01-19

ragel - 7.0.3
Ebuild name:

dev-util/ragel-7.0.3

Description

Compiles finite state machines from regular languages into executable code

Added to portage

2021-01-19

rt-sources - 4.14.214_p104
Ebuild name:

sys-kernel/rt-sources-4.14.214_p104

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2021-01-19

rt-sources - 4.19.165_p70
Ebuild name:

sys-kernel/rt-sources-4.19.165_p70

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2021-01-19

rt-sources - 4.4.249_p212
Ebuild name:

sys-kernel/rt-sources-4.4.249_p212

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2021-01-19

rt-sources - 5.10.4_p22
Ebuild name:

sys-kernel/rt-sources-5.10.4_p22

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2021-01-19

sshkit - 1.21.2
Ebuild name:

dev-ruby/sshkit-1.21.2

Description

SSHKit makes it easy to write structured, testable SSH commands in Ruby

Added to portage

2021-01-19

sword-SweFolk1998 - 1.2
Ebuild name:

app-dicts/sword-SweFolk1998-1.2

Description

Svenska Folkbibeln (1998)

Added to portage

2021-01-19

sword-SweKarlXII - 1.0
Ebuild name:

app-dicts/sword-SweKarlXII-1.0

Description

Svenska Karl XII Bibel (1703)

Added to portage

2021-01-19

syncthing - 1.12.1
Ebuild name:

net-p2p/syncthing-1.12.1

Description

Open Source Continuous File Synchronization

Added to portage

2021-01-19

tk - 8.6.11.1
Ebuild name:

dev-lang/tk-8.6.11.1

Description

Tk Widget Set

Added to portage

2021-01-19

unclutter-xfixes - 1.5-r1
Ebuild name:

x11-misc/unclutter-xfixes-1.5-r1

Description

A rewrite of unclutter using the x11-xfixes extension

Added to portage

2021-01-19

urxvt-font-size - 1.3
Ebuild name:

x11-misc/urxvt-font-size-1.3

Description

Perl extension for rxvt-unicode to change the font size on the fly

Added to portage

2021-01-19

urxvt-font-size - 9999
Ebuild name:

x11-misc/urxvt-font-size-9999

Description

Perl extension for rxvt-unicode to change the font size on the fly

Added to portage

2021-01-19

urxvt-perls - 2.3-r1
Ebuild name:

x11-misc/urxvt-perls-2.3-r1

Description

Perl extensions for rxvt-unicode

Added to portage

2021-01-19

urxvt-tabbedex - 20.49
Ebuild name:

x11-misc/urxvt-tabbedex-20.49

Description

An extended version of rxvt-unicode's tabbed perl extension

Added to portage

2021-01-19

urxvtconfig - 1.0-r1
Ebuild name:

x11-misc/urxvtconfig-1.0-r1

Description

GUI configuration tool for the rxvt-unicode terminal emulator

Added to portage

2021-01-19

util-macros - 1.19.2-r2
Ebuild name:

x11-misc/util-macros-1.19.2-r2

Description

X.Org autotools utility macros

Added to portage

2021-01-19

vdpauinfo - 1.3
Ebuild name:

x11-misc/vdpauinfo-1.3

Description

Displays info about your card's VDPAU support

Added to portage

2021-01-19

vdpauinfo - 1.4
Ebuild name:

x11-misc/vdpauinfo-1.4

Description

Displays info about your card's VDPAU support

Added to portage

2021-01-19

vdpauinfo - 99999
Ebuild name:

x11-misc/vdpauinfo-99999

Description

Displays info about your card's VDPAU support

Added to portage

2021-01-19

viewglob - 2.0.4-r1
Ebuild name:

x11-misc/viewglob-2.0.4-r1

Description

Graphical display of directories and globs referenced at the shell promp

Added to portage

2021-01-19

virtualgl - 2.6.4-r1
Ebuild name:

x11-misc/virtualgl-2.6.4-r1

Description

Run OpenGL applications remotely with full 3D hardware acceleration

Added to portage

2021-01-19

virtualgl - 2.6.5
Ebuild name:

x11-misc/virtualgl-2.6.5

Description

Run OpenGL applications remotely with full 3D hardware acceleration

Added to portage

2021-01-19

virtualgl - 9999
Ebuild name:

x11-misc/virtualgl-9999

Description

Run OpenGL applications remotely with full 3D hardware acceleration

Added to portage

2021-01-19

vnc2swf - 0.5.0-r1
Ebuild name:

x11-misc/vnc2swf-0.5.0-r1

Description

A tool for recording Flash SWF movies from VNC sessions

Added to portage

2021-01-19

vym - 2.7.1
Ebuild name:

x11-misc/vym-2.7.1

Description

View Your Mind, a mindmap tool

Added to portage

2021-01-19

vym - 9999
Ebuild name:

x11-misc/vym-9999

Description

View Your Mind, a mindmap tool

Added to portage

2021-01-19

wayv - 0.3-r3
Ebuild name:

x11-misc/wayv-0.3-r3

Description

Wayv is hand-writing/gesturing recognition software for X

Added to portage

2021-01-19

wbar - 2.3.4-r2
Ebuild name:

x11-misc/wbar-2.3.4-r2

Description

A fast, lightweight quick launch bar

Added to portage

2021-01-19

wbar - 2.3.4-r3
Ebuild name:

x11-misc/wbar-2.3.4-r3

Description

A fast, lightweight quick launch bar

Added to portage

2021-01-19

wdm - 1.28-r4
Ebuild name:

x11-misc/wdm-1.28-r4

Description

WINGs Display Manager

Added to portage

2021-01-19

wdm - 1.28-r5
Ebuild name:

x11-misc/wdm-1.28-r5

Description

WINGs Display Manager

Added to portage

2021-01-19

whaw - 0.2
Ebuild name:

x11-misc/whaw-0.2

Description

Window manager independent Window Layout tool

Added to portage

2021-01-19

wininfo - 0.7-r1
Ebuild name:

x11-misc/wininfo-0.7-r1

Description

An X app that follows your pointer providing information about the windows

Added to portage

2021-01-19

wmctrl - 1.07-r2
Ebuild name:

x11-misc/wmctrl-1.07-r2

Description

command line tool to interact with an EWMH/NetWM compatible X Window Manage

Added to portage

2021-01-19

wmname - 0.1-r1
Ebuild name:

x11-misc/wmname-0.1-r1

Description

utility to set the name of your window manager

Added to portage

2021-01-19

x11vnc - 0.9.16-r4
Ebuild name:

x11-misc/x11vnc-0.9.16-r4

Description

VNC server for real X displays

Added to portage

2021-01-19

x2vnc - 1.7.2-r1
Ebuild name:

x11-misc/x2vnc-1.7.2-r1

Description

Control a remote computer running VNC from X

Added to portage

2021-01-19

x2x - 1.27-r3
Ebuild name:

x11-misc/x2x-1.27-r3

Description

A utility to connect the Mouse and KeyBoard to another X

Added to portage

2021-01-19

xaos - 3.6
Ebuild name:

x11-misc/xaos-3.6

Description

Very fast real-time fractal zoomer

Added to portage

2021-01-19

xautolock - 2.2_p5_p1
Ebuild name:

x11-misc/xautolock-2.2_p5_p1

Description

An automatic X screen-locker/screen-saver

Added to portage

2021-01-19

xautolock - 2.2_p5_p1-r1
Ebuild name:

x11-misc/xautolock-2.2_p5_p1-r1

Description

An automatic X screen-locker/screen-saver

Added to portage

2021-01-19

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
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: 68.7 ms