cvs commit: src/sys/sys eventhandler.h src/sys/kern kern_descrip.c uipc_socket.c

Jeff Roberson jroberson at chesapeake.net
Sun Mar 16 03:39:17 PDT 2008


On Sun, 16 Mar 2008, Maxim Sobolev wrote:

> sobomax     2008-03-16 06:21:30 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/sys              eventhandler.h
>    sys/kern             kern_descrip.c uipc_socket.c
>  Log:
>  Properly set size of the file_zone to match kern.maxfiles parameter.
>  Otherwise the parameter is no-op, since zone by default limits number
>  of descriptors to some 12K entries. Attempt to allocate more ends up
>  sleeping on zonelimit.

Why do you need to set a limit on the uma_zone when falloc() takes care of 
this for us by checking openfiles vs maxfiles?

Thanks,
Jeff

>
>  MFC after:      2 weeks
>
>  Revision  Changes    Path
>  1.326     +36 -3     src/sys/kern/kern_descrip.c
>  1.306     +1 -0      src/sys/kern/uipc_socket.c
>  1.39      +1 -0      src/sys/sys/eventhandler.h
>


More information about the cvs-src mailing list