Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
Nikolaus Schulz, 2006-08-08 11:50:08 +0200 : > ... which is something I'd expect to find in ~/bin, but not as the > single functionality of a Debian package. moreutils then? Roland. -- Roland Mas If you're ever confused as to which mode you're in, keep entering the key until vi beeps at you. -- nvi manual page. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
Josselin Mouette wrote: > Le mercredi 02 août 2006 à 23:15 +0200, Bart Martens a écrit : > > Instead of editing the scripts in /etc/init.d to give daemons the > > nicelevel you want (and get prompted at every package update because > > these files are conffiles) you can just run reniced once a day. > > Out of curiosity, what real-life uses does this tool have? Daemons don't > need to be reniced, so there must be something else. Actually, I wonder if this really warrants a package on its own; AFAICS it just adds some sugar and error checking to something as basic as ,[ reniced.sh ] | #!/bin/bash | grep -v '^#' "${1:-$HOME/.reniced" | | while read prio regex; do | renice $prio $(pgrep "$regex") | done ` ... which is something I'd expect to find in ~/bin, but not as the single functionality of a Debian package. Nikolaus -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Thu, Aug 03, 2006 at 02:52:50PM +0100, martin f krafft wrote: > also sprach Christian Garbs <[EMAIL PROTECTED]> [2006.08.03.1436 +0100]: > > reniced does not wait for new processes to act on them. It is > > designed to be run once a day and affect the processes running in > > that moment. > > Then don't call it renice*d*, please. What about "renicer"? Regards, Christian -- Christian.Garbs.http://www.cgarbs.de Borges sumus. Resistere inutile est. signature.asc Description: Digital signature
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
martin f krafft <[EMAIL PROTECTED]> writes: >> Is the naming so much of an issue? (I always confuse >> kernel-threads and KDE applications because both start with k) > > Well, *d suggests it's a permanently running programme, which yours > is not. So I'd say, yes. You could call it "rerenice" (=> regexp renice) :-) -Miles -- Everywhere is walking distance if you have the time. -- Steven Wright -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
also sprach Christian Garbs <[EMAIL PROTECTED]> [2006.08.04.0038 +0100]: > To my surprise the description line of my package is quite exact: > "renice running processes based on regular expressions" > > It clearly says "running" and not "new" or "spawning". I don't think it's clear in any way. > Is the naming so much of an issue? (I always confuse > kernel-threads and KDE applications because both start with k) Well, *d suggests it's a permanently running programme, which yours is not. So I'd say, yes. > PS: Sorry, Martin, all the other mailing lists I'm on use the Reply-To: > header... Now you get it twice. :) Imagine you had tried to send something personal to me and the Reply-To would have made it end up on the list, because you didn't check before you clicked 'Send' (who does???). -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PROTECTED]> : :' :proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system a cigarette a day will make you fly away. signature.asc Description: Digital signature (GPG/PGP)
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Thu, Aug 03, 2006 at 02:52:50PM +0100, martin f krafft wrote: > also sprach Christian Garbs <[EMAIL PROTECTED]> [2006.08.03.1436 +0100]: > > reniced does not wait for new processes to act on them. It is > > designed to be run once a day and affect the processes running in > > that moment. > Then don't call it renice*d*, please. Uh. Naming the thing was a matter of about 2 minutes some years ago... Perhaps I thought of "renice daemons", meaning those that were already running. To my surprise the description line of my package is quite exact: "renice running processes based on regular expressions" It clearly says "running" and not "new" or "spawning". Is the naming so much of an issue? (I always confuse kernel-threads and KDE applications because both start with k) Regards, Christian PS: Sorry, Martin, all the other mailing lists I'm on use the Reply-To: header... -- Christian.Garbs.http://www.cgarbs.de After a time, you may find that "having" is not so pleasing a thing, after all, as "wanting." It is not logical, but it is often true. -- Spock, "Amok Time", stardate 3372.7 signature.asc Description: Digital signature
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Thu, 03 Aug 2006, Josselin Mouette wrote: > Le mercredi 02 août 2006 à 23:15 +0200, Bart Martens a écrit : > > Instead of editing the scripts in /etc/init.d to give daemons the > > nicelevel you want (and get prompted at every package update because > > these files are conffiles) you can just run reniced once a day. > > Out of curiosity, what real-life uses does this tool have? Daemons don't > need to be reniced, so there must be something else. I use and, the auto nice daemon for this purpose on my compute servers, renicing users' jobs that run longer than an hour, longer than a day, longer than week respectively. The idea is that while a process is still young it should get more CPU in order to get better response times. Cheers, Peter -- | .''`. ** Debian GNU/Linux ** Peter Palfrader | : :' : The universal http://www.palfrader.org/ | `. `' Operating System | `-http://www.debian.org/
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Wed, Aug 02, 2006 at 11:26:24PM +0100, martin f krafft wrote: > reniced /(g(cc|++)|c(c|++))/ 15 How about ``pgrep '(g(cc|\+\+)|c(c|\+\+))' | xargs renice 15''? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Thu, Aug 03, 2006 at 02:52:50PM +0100, martin f krafft wrote: > also sprach Christian Garbs <[EMAIL PROTECTED]> [2006.08.03.1436 +0100]: > > reniced does not wait for new processes to act on them. It is > > designed to be run once a day and affect the processes running in > > that moment. > > Then don't call it renice*d*, please. > Agreed, the name makes me think that it is a daemon that monitors for new processes starting up and *then* renices the processes based on the provided regex. -Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto signature.asc Description: Digital signature
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
martin f krafft <[EMAIL PROTECTED]> writes: > also sprach Christian Garbs <[EMAIL PROTECTED]> [2006.08.03.1436 +0100]: >> reniced does not wait for new processes to act on them. It is >> designed to be run once a day and affect the processes running in >> that moment. > > Then don't call it renice*d*, please. Maybe renice-daily ;-) -- O T A V I OS A L V A D O R - E-mail: [EMAIL PROTECTED] UIN: 5906116 GNU/Linux User: 239058 GPG ID: 49A5F855 Home Page: http://www.freedom.ind.br/otavio - "Microsoft gives you Windows ... Linux gives you the whole house." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
also sprach Christian Garbs <[EMAIL PROTECTED]> [2006.08.03.1436 +0100]: > reniced does not wait for new processes to act on them. It is > designed to be run once a day and affect the processes running in > that moment. Then don't call it renice*d*, please. -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PROTECTED]> : :' :proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system "heuristic is computer science jargon for 'doesn't actually work.'" -- charlie reiman signature.asc Description: Digital signature (GPG/PGP)
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
martin f krafft wrote: >also sprach Josselin Mouette <[EMAIL PROTECTED]> [2006.08.02.2308 +0100]: >> Out of curiosity, what real-life uses does this tool have? Daemons >> don't need to be reniced, so there must be something else. > reniced /(g(cc|++)|c(c|++))/ 15 > or whatever the syntax is. I often wanted to have such a feature on > public machines. Sorry, but this does not work. reniced does not wait for new processes to act on them. It is designed to be run once a day and affect the processes running in that moment. Basically it's something like "ps | grep | renice" - this works only with long running processes. Interactive commands are not the intended targets. Regards, Christian -- Christian.Garbs.http://www.cgarbs.de "There are three kinds of lies: lies, politics and statistics." - known source signature.asc Description: Digital signature
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
Wesley J. Landaker wrote: > Wow, that sounds like an annoying bug just waiting to get reported! > (Having to edit scripts in /etc/init.d is an exceptionally bad way > to configure a daemon.) This is about daemons that are not designed to be configured in that way. The "easiest" solution was to just add a line to the /etc/init.d script. A better way would be to add a nice configuration value to either every daemon (lots of work upstream) or at least to the init scripts (still lots of work, but start-stop-daemon already has an --nicelevel option). But I did not want to run wild and add wishlist bugs against every package, so I wrote reniced instead. Regards, Christian -- Christian.Garbs.http://www.cgarbs.de And that one shall come to you garbed in raiment of blue, descending upon a field of gold to forge anew our ties with the lost land. (Nausicaä) signature.asc Description: Digital signature
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Thu, Aug 03, 2006 at 12:08:48AM +0200, Josselin Mouette wrote: > Le mercredi 02 août 2006 à 23:15 +0200, Bart Martens a écrit : > > Instead of editing the scripts in /etc/init.d to give daemons the > > nicelevel you want (and get prompted at every package update because > > these files are conffiles) you can just run reniced once a day. > Out of curiosity, what real-life uses does this tool have? Daemons > don't need to be reniced, so there must be something else. Why don't daemons need to be reniced? I have a rather "slow" system here (Cyrix 100MHz, 64MB RAM) that runs some server processes like exim, inn2, spamassassin etc. News for example is no realtime application so I want my inn2 to run with a certain nice value. I don't know of an INN configuration value that sets this level. So my first approach was to edit /etc/init.d/inn2 and insert a "renice 5 $$" somewhere in the script. This makes updates a hassle because I've edited a configuration file. On the other hand, I've got a remote MP3-player that is powered by a server process "slimserver" which runs under my user account. To avoid skips I like to run it with a negative nice value. I'd need root priviledges to set these values so I'd have to run a wrapper using sudo or something. To address both of these scenarios I've written reniced. It runs daily, has the needed root priviledges and does everything as needed. I've attached my current configuration to this mail, perhaps this gives you an idea what I'm up to :-) The best solution IMHO would be to add an optional nice value to /etc/default/ and let this be used in every script in /etc/init.d. I think some packages already do this, but changing every package would need some work (I don't know if this feature is needed by someone else besides me). Regards, Christian -- Christian.Garbs.http://www.cgarbs.de The purpose of computing is insight, not numbers. (R.W. Hamming) ...but for the student, numbers are often the best road to insight. (A. Ralston) # against SLIM hickups -7 ^slimserver.pl -3 ^mDNSResponderPo # high prio network services 0 ^apache 0 ^cannaserver 0 ^dictd 0 ^dhcpd 0 ^dnscache 0 ^lockd 0 ^mysqld 0 ^nfsd 0 ^ntpd 0 ^openvpn 0 ^portmap 0 ^powermust 0 ^ppp 0 ^rpc. #0 ^slimserver.pl 0 ^sshd 0 ^syslogd 0 ^tinydns 0 ^ups 0 ^wdm 0 ^xfs # medium prio network services 5 ^cupsd 5 ^inn$ 5 ^japana 5 ^logger #5 ^mDNSResponderPo 5 ^multilog 8 ^sslwrap 8 ^stunnel 5 ^twistd # low prio network services 15 ^amavisd-new 15 ^clamd 15 ^controlchan 15 ^exim4 15 ^freshclam 15 ^innwatch 15 ^mailman 12 ^nmbd 15 ^popa3d 15 ^rc.news 12 ^smbd 15 ^spamd 12 ^supervise 12 ^svscan # long running user processes 8 ^btlaunch 8 ^rtorrent 3 ^irssi signature.asc Description: Digital signature
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
> Of course, the problem is that gcc spawns many processes, and if > reniced only takes a little while to react to a new gcc process, the > children won't be reniced. > If I understand correctly the description, reniced is not actually a daemon but a program that you run from time to time, so not really usable for this purpose. -- Zorglub -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
also sprach Josselin Mouette <[EMAIL PROTECTED]> [2006.08.02.2308 +0100]: > Out of curiosity, what real-life uses does this tool have? Daemons don't > need to be reniced, so there must be something else. reniced /(g(cc|++)|c(c|++))/ 15 or whatever the syntax is. I often wanted to have such a feature on public machines. Of course, the problem is that gcc spawns many processes, and if reniced only takes a little while to react to a new gcc process, the children won't be reniced. -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PROTECTED]> : :' :proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system "i believe that the moment is near when by a procedure of active paranoiac thought, it will be possible to systematise confusion and contribute to the total discrediting of the world of reality." -- salvador dali signature.asc Description: Digital signature (GPG/PGP)
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
Le mercredi 02 août 2006 à 23:15 +0200, Bart Martens a écrit : > Instead of editing the scripts in /etc/init.d to give daemons the > nicelevel you want (and get prompted at every package update because > these files are conffiles) you can just run reniced once a day. Out of curiosity, what real-life uses does this tool have? Daemons don't need to be reniced, so there must be something else. -- .''`. Josselin Mouette/\./\ : :' : [EMAIL PROTECTED] `. `'[EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom signature.asc Description: Ceci est une partie de message numériquement signée
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Wednesday 02 August 2006 15:15, Bart Martens wrote: > Instead of editing the scripts in /etc/init.d to give daemons the > nicelevel you want (and get prompted at every package update because > these files are conffiles) you can just run reniced once a day. Wow, that sounds like an annoying bug just waiting to get reported! (Having to edit scripts in /etc/init.d is an exceptionally bad way to configure a daemon.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
On Wed, 2006-08-02 at 23:04 +0200, Nacho Barrientos Arias wrote: > Date: Wed, 02 Aug 2006 21:28:16 +0200 > Bart Martens <[EMAIL PROTECTED]> wrote: > > > Package: wnpp > > Severity: wishlist > > Owner: Bart Martens <[EMAIL PROTECTED]> > > Hi Bart, > > > > > * Package name: reniced > > Version : 1.5 > > Upstream Author : Christian Garbs <[EMAIL PROTECTED]> > > * URL : http://www.cgarbs.de/stuff.en.html > > * License : GPL > > Programming Lang: Perl > > Description : renice running processes based on regular expressions > > > > IMHO a preliminary long description for this package could be useful to > discuss this ITP. You're right. Well, here is the description copied from the package in Ubuntu. Description: renice running processes based on regular expressions reniced takes a list of regular expressions, looks for processes matching them and renices the processes to given values. . Instead of editing the scripts in /etc/init.d to give daemons the nicelevel you want (and get prompted at every package update because these files are conffiles) you can just run reniced once a day. http://packages.ubuntulinux.org/edgy/utils/reniced I have prepared my package, and I have sent it to my sponsor for review and upload. Regards, Bart Martens signature.asc Description: This is a digitally signed message part
Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
Date: Wed, 02 Aug 2006 21:28:16 +0200 Bart Martens <[EMAIL PROTECTED]> wrote: > Package: wnpp > Severity: wishlist > Owner: Bart Martens <[EMAIL PROTECTED]> Hi Bart, > > * Package name: reniced > Version : 1.5 > Upstream Author : Christian Garbs <[EMAIL PROTECTED]> > * URL : http://www.cgarbs.de/stuff.en.html > * License : GPL > Programming Lang: Perl > Description : renice running processes based on regular expressions > IMHO a preliminary long description for this package could be useful to discuss this ITP. Friendly, Nacho -- Nacho Barrientos Arias <[EMAIL PROTECTED]> http://criptonita.com/~nacho -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#381201: ITP: reniced -- renice running processes based on regular expressions
Package: wnpp Severity: wishlist Owner: Bart Martens <[EMAIL PROTECTED]> * Package name: reniced Version : 1.5 Upstream Author : Christian Garbs <[EMAIL PROTECTED]> * URL : http://www.cgarbs.de/stuff.en.html * License : GPL Programming Lang: Perl Description : renice running processes based on regular expressions -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]