cvs commit: src/sys/kern kern_descrip.c
Matthew Dillon
dillon at apollo.backplane.com
Tue Apr 20 22:51:48 PDT 2004
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 at 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
More information about the Commits
mailing list