As I understand the process scheduler, it there's no real difference between, say, nice -10 and nice -20 in most cases. On my system, the highest-priority threads are some kernel threads, and they're running at -5 right now; thus it would make no difference if I reniced a process -10 or -20, as they would pre-empt even those kernel threads either way.
Thus the trying of different levels. Try, say, -20, -5, 0, and 5 multiple times, and wait a minute or between switches. See if it's actually the process of renicing that spikes it, or just the fact that you're prioritizing that process. On Fri, 2006-04-21 at 10:37 +0300, ics wrote: > Why would anyone want to renice it below 0 to 1-19 which would make it > run slower than the default process priority 0? > The fact that it puts cpu on 100% stress while its being reniced to -1 - > -20 is a problem. Since someone would ask why i would want it to be for > example -20 > is that not all users run only gameserver on their box. > > -ICS > > > John Sheu wrote: > > >You sure it's not just a matter of just being reniced? > > > >i.e. nice -10 gives 100% utilization, but nice 10 does not. > > > >On Fri, 2006-04-21 at 10:11 +0300, ics wrote: > > > > > >>To anything from default? -1, 1, -20. Always the same CPU 100% if > >>process is being reniced. > >> > >>John Sheu wrote: > >> > >> > >> > >>>After renicing to what? > >>> > >>>On Fri, 2006-04-21 at 09:20 +0300, ics wrote: > >>> > >>> > >>> > >>> > >>>>Hi, > >>>> > >>>>How hard is it to FIX the bug which causes CPU going to 100% usage after > >>>>renicing the process? It was added in the last optional update, just > >>>>like this last one. > >>>> > >>>>-ICS > >>>> > >>>> > >>>> > >>>> > >>_______________________________________________ > >>To unsubscribe, edit your list preferences, or view the list archives, > >>please visit: > >>http://list.valvesoftware.com/mailman/listinfo/hlds_linux > >> > >> > > > > > >_______________________________________________ > >To unsubscribe, edit your list preferences, or view the list archives, > >please visit: > >http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > > > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux