From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,510f626047bf9ca9 X-Google-Attributes: gid111c93,public X-Google-Thread: 107b38,510f626047bf9ca9 X-Google-Attributes: gid107b38,public From: rsimpson@ewrcsdra.CutThisOut.demon.co.uk Subject: Re: nicelevel 20 Date: 1999/07/26 Message-ID: #1/1 X-Deja-AN: 505363567 References: <379639F8.1339849B@debussy.ucsc.edu> <3796C1D1.2A1F9CCA@na.astro.it> Organization: Defence Evaluation & Research Agency User-Agent: tin/pre-1.4-19990517 ("Psychonaut") (UNIX) (Linux/2.2.10 (i686)) Newsgroups: comp.os.linux.alpha,comp.os.linux.redhat Massimo Gais wrote: : Why do you want to nice just to 20? Nice levels are *relative* so, : except if you have another process 'niced' to 19, your program : "eat" the same cpu load if at level 19 or 20. : IMHO the nice level doesn't fix a cpu % load, just reschedule process : priority, so my personal hint is to use the "standard" 19 level : everywhere. What a load of old drivel everyone is talking!!! Unlike other responders to this thread I took the liberty of conducting some experiments. I used the seti@home client as my test program on an i386 and an Alpha. Both machines were running RedHat 6.0 with kernel 2.2.10. I ran two seti jobs simultaneously at varying nice levels and observed the percentage of CPU time which each consumed. The results are presented below. I have rounded the results to whole numbers. Nice levels i386 results Alpha results 0 0 50 50 50 50 0 19 94 6 94 6 0 20 N/A 99 1 I think that the numbers above are fairly self explanatory. I should also point out that irrespective of the above experiment, Linux commands should be consistent across platforms and should tie up with the documentation. I can conceive of no reason why the upper nice limit should be platform dependent and the documentation seems confused. info nice claims that the maximum nice value is 19, whereis man renice claims that the limit is 20. Clearly, this is an area where a little bit of tidying up is required. -- Richard Simpson Farnborough, Hants, Uk Fax: 01252 392118 rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk I am not aware of any views shared by myself and my employers.