You are not logged in.

#1 2006-08-10 09:54:02

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

[req] VeryNice - A Dynamic Process Re-nicer

VeryNice is a tool for dynamically adjusting the nice-level of processes under UNIX-like operating systems. It can also be used to kill off runaway processes and increase the priority of multimedia applications, while properly handling both batch computation jobs and interactive applications with long periods of high CPU usage.

Unlike most other process re-nice tools, VeryNice is not only capable of lowering a CPU bound process's priority (raising the nice level), but it is also capable of raising the priority back up when the process is no longer heavily using the CPU. It is also configurable, so it can detect different users and different programs and act accordingly. For example, it can be configured to detect and kill certain programs (such as netscape) that have a tendency to die with 100% cpu usage, but the program will only be killed under stringent conditions so that it is very unlikely that it would be killed improperly.

http://www.tam.cornell.edu/~sdh4/verynice/

i used on gentoo, very handy...

if some guy feels in the mood of editing a PKGBUILD... this one shouldn't be very difficult, in addition it doesn't need to be maintained because its development seems to have stopped. but that doesn't mean this program is now useless... i must say i find it very useful !

cheers !


what goes up must come down

Offline

#2 2006-08-10 14:09:29

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: [req] VeryNice - A Dynamic Process Re-nicer

pkgname=verynice
pkgver=1.1
pkgrel=1
pkgdesc="VeryNice is a tool for dynamically adjusting the nice level of processes under UNIX-like operating systems."
url="http://www.tam.cornell.edu/~sdh4/verynice/"
license="GPL"
#depends=('')
#makedepends=('')
#install=
source=(http://www.tam.cornell.edu/~sdh4/$pkgname/down/$pkgname-$pkgver.tar.gz)
md5sums=('fb00b79779a30df2c03916181c873545')
build() {
cd $startdir/src/$pkgname/
make || return 1
make PREFIX=$startdir/pkg/usr install
mv $startdir/pkg/usr/etc $startdir/pkg/
}

Was made with the new version of pkgbuilder which i haven't released yet smile just put it on the aur, i don't think i will smile


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#3 2006-08-10 14:29:41

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

i'll give it a shot tonight. thanks a bunch test1000 ! if it works i'll put it in AUR...


what goes up must come down

Offline

#4 2006-08-10 18:11:21

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

i suppose a startup script is needed...


what goes up must come down

Offline

#5 2006-08-10 22:30:53

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: [req] VeryNice - A Dynamic Process Re-nicer

just copy a functional one and replace the entries. sorry, i'm just too lazy right now hmm


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#6 2006-08-10 22:52:16

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

yeah i tried that already, using the one from preload (in AUR), and a few others. here's what i get :

$ /etc/rc.d/verynice start
:: Starting verynice daemon                                              [BUSY]
verynice: starting up

verynice starts but the script doesn't stop (or is it ?)

i'm not very good at bashing so i'm cannot solve this alone. thanks anyway !


what goes up must come down

Offline

#7 2006-08-10 23:19:43

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: [req] VeryNice - A Dynamic Process Re-nicer

This will solve it i hope:
like this: verynice 2&>1 >/dev/null &

The 2&>1 ensures all error msg'es(stderr) go to stdout and then you send it all to /dev/null which is like /dev/hell wink

meaning it disappears(just the text output, everything else will still work as expected).

The & is just to allow the terminal/script to continue thus sending the application to the 'background' (you can still see it with top, ps auxw, or htop)

The /etc/rc.d/adsl script looks good to replace the entries.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#8 2006-08-11 07:54:03

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

alright, i'll check this in a few days (i'll be away for the week-end). i'll let you know how it goes.
thanks again & have a nice week-end !


what goes up must come down

Offline

#9 2006-08-15 21:28:01

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

i'm probably stupid because i can start it up but i cannot stop it properly...


what goes up must come down

Offline

#10 2006-08-18 07:25:31

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

*bump*
does anyone feels good enough to make a PKGBUILD and an init script for this one ??


what goes up must come down

Offline

#11 2006-08-18 07:55:25

Pierluigi
Member
Registered: 2004-04-10
Posts: 90
Website

Re: [req] VeryNice - A Dynamic Process Re-nicer

brazzmonkey wrote:

*bump*
does anyone feels good enough to make a PKGBUILD and an init script for this one ??

i hope you like it:http://aur.archlinux.org/packages.php?d … =1&ID=6403

Offline

#12 2006-08-18 08:07:21

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: [req] VeryNice - A Dynamic Process Re-nicer

Looks interesting! I really have to test this one...

Out of verynice_rc:

echo "usage: $0 {start|stop|restart|create-db}"

create-db?


Haven't been here in a while. Still rocking Arch. smile

Offline

#13 2006-08-18 08:40:11

Pierluigi
Member
Registered: 2004-04-10
Posts: 90
Website

Re: [req] VeryNice - A Dynamic Process Re-nicer

Sigi wrote:

create-db?

oops, sorry, it's here because I used /etc/rc.d/mpd as template, and forgot to delete create-db

fixing now...

Offline

#14 2006-08-18 08:59:37

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

kewl, i'll try and let you know. many many thanks Pierluigi !
30 minutes to get it done ! wow.


what goes up must come down

Offline

#15 2006-08-18 09:05:02

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: [req] VeryNice - A Dynamic Process Re-nicer

Pierluigi wrote:
Sigi wrote:

create-db?

oops, sorry, it's here because I used /etc/rc.d/mpd as template, and forgot to delete create-db

fixing now...

I tought so, I just wanted to inform you about it. I'm sure you don't mind... Thanks a lot for your work!


Haven't been here in a while. Still rocking Arch. smile

Offline

#16 2006-08-18 09:28:30

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

if you like it, then vote for it in AUR !


what goes up must come down

Offline

#17 2006-08-18 10:30:51

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [req] VeryNice - A Dynamic Process Re-nicer

alrighty then. seems to work fine. thanks again Pierluigi !!


what goes up must come down

Offline

Board footer

Powered by FluxBB