fischer@utower.UUCP (Axel Fischer) (05/07/89)
Some time ago someone has posted a "renice" program for SCO Xenix 286/386 . If anyone is using this could you please help me out ? I have installed renice as 4711 (owner: root) and uxlst as 0755 (owner: root) When I run renice on a process it doesn't even shows me the correct nice value of the process. It shows *always* a priority of -20. And renice doesn't changes the nice value - it just remains the same. If someone knows my fault or have a tip *please* send a mail to me. -Axel -- Domain: fischer@utower.UUCP USA: ...!uunet!pyramid!tmpmbx!utower!fischer Europe: ...!tmpmbx!utower!fischer ======> Beam me up, Scotty - there is no intelligent life down here ! <======
fischer@utower.UUCP (Axel Fischer) (05/11/89)
Ok - I have installed the System V look-alikes in renice. But now I'm stuck in the next problem: Everytime when I invoke renice it prompt me to run uxlst because /xenix.uxlst is out of date. But I can run uxlst as often as I want renice prompts me to run uxlst. What am I doing wrong now ? -Axel -- Domain: fischer@utower.UUCP USA: ...!uunet!pyramid!tmpmbx!utower!fischer Europe: ...!tmpmbx!utower!fischer ======> Beam me up, Scotty - there is no intelligent life down here ! <======
fischer@utower.UUCP (Axel Fischer) (05/12/89)
Hello ! Thanks to all who have written to me ! Especially to John Beyer and Warren Tucker who have send me perfectly working versions of renice. If anyone in germany wants to have this too - mail me - it's great ! -Axel -- Domain: fischer@utower.UUCP USA: ...!uunet!pyramid!tmpmbx!utower!fischer Europe: ...!tmpmbx!utower!fischer ======> Beam me up, Scotty - there is no intelligent life down here ! <======
jbayer@ispi.UUCP (Jonathan Bayer) (05/12/89)
In article <46@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: >Some time ago someone has posted a "renice" program for SCO Xenix 286/386 . > >If anyone is using this could you please help me out ? > >I have installed renice as 4711 (owner: root) and uxlst as 0755 (owner: root) >When I run renice on a process it doesn't even shows me the correct nice >value of the process. >It shows *always* a priority of -20. >And renice doesn't changes the nice value - it just remains the same. I am running the renive program on a 386. Below is the listing of the program as it exists. I do not have uxlst. It seems to work fine on my system. What kind of a system are you running. ---s--x--x 1 root root 24120 Jan 12 19:40 /usr/local/bin/renice JB -- Jonathan Bayer Beware: The light at the end of the Intelligent Software Products, Inc. tunnel may be an oncoming dragon 500 Oakwood Ave. ...uunet!ispi!root Roselle Park, NJ 07204 (201) 245-5922 jbayer@ispi.UUCP
fischer@utower.UUCP (Axel Fischer) (05/12/89)
Hi netlanders, after playing with renice a while an idea came to my mind. How about writing a renice-daemon for SCO Xenix 386 ? It should be invoked from /etc/rc and run in the background. And what does it ? It's resets the priority of a process to a lower priority if the process runs longer than n minutes. n is configurable in the Makefile. So the machine is not to busy with the single process. (Maybe 2,3,4 ... minutes or whatever) Of course the deamon should only touch user processes and not init :-) How about that ? -Axel -- Domain: fischer@utower.UUCP USA: ...!uunet!pyramid!tmpmbx!utower!fischer Europe: ...!tmpmbx!utower!fischer ======> Beam me up, Scotty - there is no intelligent life down here ! <======
wht@tridom.uucp (Warren Tucker) (05/13/89)
In article <46@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: >Some time ago someone has posted a "renice" program for SCO Xenix 286/386 . > >If anyone is using this could you please help me out ? > >I have installed renice as 4711 (owner: root) and uxlst as 0755 (owner: root) >When I run renice on a process it doesn't even shows me the correct nice >value of the process. >It shows *always* a priority of -20. >And renice doesn't changes the nice value - it just remains the same. > >If someone knows my fault or have a tip *please* send a mail to me. > >-Axel >-- >Domain: fischer@utower.UUCP >USA: ...!uunet!pyramid!tmpmbx!utower!fischer >Europe: ...!tmpmbx!utower!fischer >======> Beam me up, Scotty - there is no intelligent life down here ! <====== I hacked that renice for the 286 to use kmem values stored in a file (hence uxlst) since the original 286 renice (written by Mike "Ford" Ditto) took so long to run on my 8MHz machine. What I also did (since I use a BSD machine too) was to change the syntax of the command to compky with the BSD syntax. renice 0 <pid> sets the SysV nice factor to 20 renice -20 <pid> sets the nice to 0 renice 19 <pid> sets to 39 Sorry for the confusion. I am posting this since others may have gotten confused as well. If you want to become compatible with sys V values, in renice.c find and change the following : /* in main() as it is now */ value = atoi(argv[1]); if(value < -20) usage(); if(value > 19) usage(); value += 20; /* in main() make it: */ value = atoi(argv[1]); if(value < 0) usage(); if(value > 39) usage(); /* in renice(), as it is now */ printf("%d: old priority %d, new priority %d\n", pid,oldnice - 20,value - 20); /* in renice() make it: */ printf("%d: old priority %d, new priority %d\n", pid,oldnice,value); I thought I had documented the "wierd" syntax in the README file. If you got the program without the README file, I'll be glad to repost the shar. -- ------------------------------------------------------------------- Warren Tucker, Tridom Corporation ...!gatech!emory!tridom!wht Sforzando (It., sfohr-tsahn'-doh). A direction to perform the tone or chord with special stress, or marked and sudden emphasis. -- ------------------------------------------------------------------- Warren Tucker, Tridom Corporation ...!gatech!emory!tridom!wht Sforzando (It., sfohr-tsahn'-doh). A direction to perform the tone or chord with special stress, or marked and sudden emphasis.
wht@tridom.uucp (Warren Tucker) (05/17/89)
In article <58@utower.UUCP>, fischer@utower.UUCP (Axel Fischer) writes: > Ok - I have installed the System V look-alikes in renice. > But now I'm stuck in the next problem: > Everytime when I invoke renice it prompt me to run uxlst because > /xenix.uxlst is out of date. > But I can run uxlst as often as I want renice prompts me to run uxlst. > > What am I doing wrong now ? > > -Axel > -- I've gotten several requests for repost of renice, so in other articles to follow, look for 'renice286v2'. I added some code to display the criteria libuxlst.c uses to test for the "currentness" of /xenix.uxlst if the test fails. Please make this version and run it. When it says "run uxlst", run renice again like this: renice <nice> <pid> | tee to.wht and _E-mail_ the file to.wht to gatech!emory!tridom!wht. That way we won't bug these nice people too much. I've been running the program since last October with no problems and am interested in any bug reports. Note: the v2 renice defaults to System V renice values on the command line (read README). -- ------------------------------------------------------------------- Warren Tucker, Tridom Corporation ...!gatech!emory!tridom!wht Sforzando (It., sfohr-tsahn'-doh). A direction to perform the tone or chord with special stress, or marked and sudden emphasis.
fischer@utower.UUCP (Axel Fischer) (05/17/89)
In article <610@ispi.UUCP> jbayer@ispi.UUCP (Jonathan Bayer) writes: >In article <61@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: >>Especially to John Beyer and Warren Tucker who have send me perfectly working > ^^^^^^^^^^ >My name is spelled: Jonathan Bayer :-) (Its in my signature also) I have seen this but Jonathan is more complicated to write on my keyboard than John and I have thought all people say John as a nickname to you - am I wrong ? If yes - please forgive me - it wasn't meant to hurt you. Regards, Axel -- Domain: fischer@utower.UUCP USA: ...!uunet!pyramid!tmpmbx!utower!fischer Europe: ...!tmpmbx!utower!fischer ======> Beam me up, Scotty - there is no intelligent life down here ! <======
mark@jhereg.Jhereg.MN.ORG (Mark H. Colburn) (05/18/89)
In article <62@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: >It's resets the priority of a process to a lower priority if the process >runs longer than n minutes. n is configurable in the Makefile. >So the machine is not to busy with the single process. >(Maybe 2,3,4 ... minutes or whatever) I think that you will find that you are just duplicating work. The kernel already does this. It does not adjust the visible nice value, but there is a kernel internal interpretation of "priority" which is adjusted by the kernel. The nice value is used to help compute the priority, as is run time. Processes which run for a very long time have their priority adjusted downward. In order to keep processes from being locked out on the swap device, processes which have not been in run-state for a while will have their priorities adjusted upwards so that they can get to run every once in a while. If you are interested, a good book to read about this stuff is "The design of the Unix Operating System" by Maurice Bach. -- Mark H. Colburn mark@jhereg.mn.org Minnetech Consulting, Inc.
jbayer@ispi.UUCP (Jonathan Bayer) (05/19/89)
In article <61@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: >Especially to John Beyer and Warren Tucker who have send me perfectly working ^^^^^^^^^^ My name is spelled: Jonathan Bayer :-) (Its in my signature also) JB -- Jonathan Bayer Beware: The light at the end of the Intelligent Software Products, Inc. tunnel may be an oncoming dragon 500 Oakwood Ave. ...uunet!ispi!root Roselle Park, NJ 07204 (201) 245-5922 jbayer@ispi.UUCP
wht@tridom.uucp (Warren Tucker) (05/20/89)
> >It's resets the priority of a process to a lower priority if the process > >runs longer than n minutes. > I think that you will find that you are just duplicating work. > The kernel already does this. It does not adjust the visible nice value, > but there is a kernel internal interpretation of "priority" which is > adjusted by the kernel. The BSD kernel will actually raise the nice value for long running cpu hogs. -- ------------------------------------------------------------------- Warren Tucker, Tridom Corporation ...!gatech!emory!tridom!wht Sforzando (It., sfohr-tsahn'-doh). A direction to perform the tone or chord with special stress, or marked and sudden emphasis.
jbayer@ispi.UUCP (Jonathan Bayer) (05/22/89)
In article <67@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: }In article <610@ispi.UUCP> jbayer@ispi.UUCP (Jonathan Bayer) writes: }>In article <61@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: }>>Especially to John Beyer and Warren Tucker who have send me perfectly working }> ^^^^^^^^^^ }>My name is spelled: Jonathan Bayer :-) (Its in my signature also) } }I have seen this but Jonathan is more complicated to write on my keyboard than }John and I have thought all people say John as a nickname to you - am I wrong ? } }If yes - please forgive me - it wasn't meant to hurt you. It gets me annoyed, but I am used to it by now. I am posting this so that others who mail to me at times will (hopefully) get the message. BTW, you had spelled my last name wrong also. You're forgiven. JB -- Jonathan Bayer Beware: The light at the end of the Intelligent Software Products, Inc. tunnel may be an oncoming dragon 500 Oakwood Ave. ...uunet!ispi!root Roselle Park, NJ 07204 (201) 245-5922 jbayer@ispi.UUCP
fkk@stasys.UUCP (Frank Kaefer) (05/25/89)
> jbayer@ispi.UUCP (Jonathan Bayer) writes ( 7:39 am May 22, 1989 in stasys:alt.sources): > }>My name is spelled: Jonathan Bayer :-) (Its in my signature also) > You're forgiven. I know this is a source group, but I've just got to write this. Jonathan, did you know that Bayer is the the German word for someone who is from Bavaria ? And furthermore Bayer is one of the most common names here in the southern parts of Germany, so at least the Bavarians won't mistype you name. I would be interested, how you pronounce "Bayer". Here we say "bye-ar". Very Best Wishes to You and all on the net, Frank. -- +--------------------------------+ You look at every face in a crowd | Frank Kaefer | fkk@stasys.UUCP | Some shine and some keep you guessin' | (Compuserve: 72427,2101) | ( OU812 ) +--------------------------------+
allbery@ncoast.ORG (Brandon S. Allbery) (05/28/89)
As quoted from <613@ispi.UUCP> by jbayer@ispi.UUCP (Jonathan Bayer): +--------------- | In article <67@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: | }In article <610@ispi.UUCP> jbayer@ispi.UUCP (Jonathan Bayer) writes: | }>In article <61@utower.UUCP> fischer@utower.UUCP (Axel Fischer) writes: | }>>Especially to John Beyer and Warren Tucker who have send me perfectly working | }>My name is spelled: Jonathan Bayer :-) (Its in my signature also) | }I have seen this but Jonathan is more complicated to write on my keyboard than | It gets me annoyed, but I am used to it by now. I am posting this so that | others who mail to me at times will (hopefully) get the message. BTW, you | had spelled my last name wrong also. +--------------- I can't help but be amused by this thread. (Try *my* name out for size--!) ++Brandon -- Brandon S. Allbery, moderator of comp.sources.misc allbery@ncoast.org uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu Send comp.sources.misc submissions to comp-sources-misc@<backbone> NCoast Public Access UN*X - (216) 781-6201, 300/1200/2400 baud, login: makeuser