Subject: Re: Autonice bugging my but!
To: David Gilbert <dgilbert@pci.on.ca>
From: matthew green <mrg@eterna.com.au>
List: current-users
Date: 01/16/1996 21:08:52
i agree.  i totally hate it.

.mrg.

ps:  you can 'work around' it by setting the nice value to anything
but zero.  for lusers, this means '1' is a `good' (*) value.

(*) for some definition of good.

Index: kern_synch.c
===================================================================
RCS file: /local/cvs/src/sys/kern/kern_synch.c,v
retrieving revision 1.1.1.4
diff -c -r1.1.1.4 kern_synch.c
*** kern_synch.c	1995/06/22 08:26:52	1.1.1.4
--- kern_synch.c	1996/01/16 10:06:08
***************
*** 593,602 ****
--- 593,604 ----
  				rlim->rlim_cur += 5;
  		}
  	}
+ #if 0
  	if (s > 10 * 60 && p->p_ucred->cr_uid && p->p_nice == NZERO) {
  		p->p_nice = NZERO + 4;
  		resetpriority(p);
  	}
+ #endif
  
  	/*
  	 * Pick a new current process and record its start time.