DragonFly BSD
DragonFly commits List (threaded) for 2004-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/kern kern_descrip.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Apr 2004 22:50:55 -0700 (PDT)

    Ouch.  FreeBSD did that?  I'm going to move maxuserfiles to a 
    global in kern_descrip.c.  maxfiles is not a sysctl, it's a boot-time
    initialized variable so we can precalculate it and avoid doing a 
    division in falloc()'s critical path.  I'm also going to clean up
    that conditional (since maxuserfiles is always smaller then maxfiles
    the conditional can be significantly optimized).

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>


:hmp         2004/04/20 21:17:58 PDT
:
:DragonFly src repository
:
:  Modified files:
:    sys/kern             kern_descrip.c 
:  Log:
:  Merge: FreeBSD (RELENG_4) kern_descrip.c rev. 1.81.2.19
:  
:  	* Update $FreeBSD$ CVS tag to indicate this and previous merges.
:  
:  	* Reserve the last 5% of file descriptors for root use.  This
:  	  should allow systems to fail more gracefully when exhaustion
:  	  occurs; report exhaustion has a rate-limited message.
:  	  (Revision 1.201 - 1.203 of sys/kern_descrip.c from FreeBSD)
:  
:  Revision  Changes    Path
:  1.20      +11 -4     src/sys/kern/kern_descrip.c
:
:
:http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_descrip.c.diff?r1=1.19&r2=1.20&f=h



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]