Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] high priority task as user (nice/ionice)
Date: Sun, 23 Aug 2009 14:29:35
Message-Id: 65876E81-440E-44BD-8B95-F30745B513C4@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] high priority task as user (nice/ionice) by meino.cramer@gmx.de
1 On 23 Aug 2009, at 15:19, meino.cramer@×××.de wrote:
2 >> ...
3 >> #!/bin/sh
4 >> exec nice -n -10 ionice -c 1 capture-command
5 > ...
6 > This will give the whole 'capture-comand# the rights of root, which
7 > I want to prevent (see my posting). Instead I want to give it only
8 > higher priorities for I/O-usage and CPU-usage. It should still act
9 > with user rights for all other puposes.
10
11 Use renice / snice. No idea if ionice has an equivalent.
12
13 http://www.google.com/search?q=nice+existing+process
14 http://www.forwardyouth.com/ubuntu/set-the-nice-level-of-an-existing-process/
15 http://www.nixtutor.com/linux/changing-priority-on-linux-processes/
16
17 Stroller.