Subject: Re: Autonice bugging my but!
To: matthew green <mrg@eterna.com.au>
From: 51482) <etorwi@etn.ericsson.se (Raymond A. Wiker>
List: current-users
Date: 01/17/1996 08:07:11
matthew green writes:
 > 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.

	Suggestion: How about making this a config option? I.e, 

#ifdef AUTONICE
[ ... ]
#endif

	- or alternatively, "#ifdef NOAUTONICE".

	I think this may be why compiles on my pc532 have felt so
sluggish lately. A kernel compile does *not* take less than 10 minutes
;-) 

	//Raymond.