Print this page
3772 consider raising default descriptor soft limit
Reviewed by: Piotr Jasiukajtis <estibi@me.com>
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>


 385 #ifdef _LP64
 386         { elf64magicstr, 0, 5, NULL, NULL, NULL },
 387 #endif
 388         { intpmagicstr, 0, 2, NULL, NULL, NULL },
 389         { shbinmagicstr, 0, SHBINMAGIC_LEN, NULL, NULL, NULL },
 390         { javamagicstr, 0, 4, NULL, NULL, NULL },
 391 #if defined(__sparc)
 392         { aout_zmagicstr, 2, 2, NULL, NULL, NULL },
 393         { aout_nmagicstr, 2, 2, NULL, NULL, NULL },
 394         { aout_omagicstr, 2, 2, NULL, NULL, NULL },
 395 #endif
 396         { nomagicstr, 0, 0, NULL, NULL, NULL },
 397         { nomagicstr, 0, 0, NULL, NULL, NULL },
 398         { nomagicstr, 0, 0, NULL, NULL, NULL },
 399         { nomagicstr, 0, 0, NULL, NULL, NULL }
 400 };
 401 int nexectype = sizeof (execsw) / sizeof (execsw[0]);   /* # of exec types */
 402 kmutex_t execsw_lock;   /* Used for allocation of execsw entries */
 403 
 404 /*
 405  * symbols added to make changing max-file-descriptors
 406  * simple via /etc/system
 407  */
 408 #define RLIM_FD_CUR 0x100
 409 #define RLIM_FD_MAX 0x10000
 410 
 411 uint_t rlim_fd_cur = RLIM_FD_CUR;
 412 uint_t rlim_fd_max = RLIM_FD_MAX;
 413 
 414 /*
 415  * (Default resource limits were formerly declared here, but are now provided by
 416  * the more general resource controls framework.)
 417  */
 418 
 419 /*
 420  * STREAMS tunables
 421  */
 422 int     nstrpush = 9;           /* maximum # of modules/drivers on a stream */
 423 ssize_t strctlsz = 1024;        /* maximum size of user-generated M_PROTO */
 424 ssize_t strmsgsz = 0x10000;     /* maximum size of user-generated M_DATA */
 425                                 /* for `strmsgsz', zero means unlimited */
 426 /*
 427  * Filesystem tunables
 428  */




 385 #ifdef _LP64
 386         { elf64magicstr, 0, 5, NULL, NULL, NULL },
 387 #endif
 388         { intpmagicstr, 0, 2, NULL, NULL, NULL },
 389         { shbinmagicstr, 0, SHBINMAGIC_LEN, NULL, NULL, NULL },
 390         { javamagicstr, 0, 4, NULL, NULL, NULL },
 391 #if defined(__sparc)
 392         { aout_zmagicstr, 2, 2, NULL, NULL, NULL },
 393         { aout_nmagicstr, 2, 2, NULL, NULL, NULL },
 394         { aout_omagicstr, 2, 2, NULL, NULL, NULL },
 395 #endif
 396         { nomagicstr, 0, 0, NULL, NULL, NULL },
 397         { nomagicstr, 0, 0, NULL, NULL, NULL },
 398         { nomagicstr, 0, 0, NULL, NULL, NULL },
 399         { nomagicstr, 0, 0, NULL, NULL, NULL }
 400 };
 401 int nexectype = sizeof (execsw) / sizeof (execsw[0]);   /* # of exec types */
 402 kmutex_t execsw_lock;   /* Used for allocation of execsw entries */
 403 
 404 /*
 405  * symbols added to make changing proc.max-file-descriptor
 406  * simple via /etc/system
 407  */
 408 #define RLIM_FD_CUR 0x10000
 409 #define RLIM_FD_MAX 0x10000
 410 
 411 uint_t rlim_fd_cur = RLIM_FD_CUR;
 412 uint_t rlim_fd_max = RLIM_FD_MAX;
 413 
 414 /*
 415  * (Default resource limits were formerly declared here, but are now provided by
 416  * the more general resource controls framework.)
 417  */
 418 
 419 /*
 420  * STREAMS tunables
 421  */
 422 int     nstrpush = 9;           /* maximum # of modules/drivers on a stream */
 423 ssize_t strctlsz = 1024;        /* maximum size of user-generated M_PROTO */
 424 ssize_t strmsgsz = 0x10000;     /* maximum size of user-generated M_DATA */
 425                                 /* for `strmsgsz', zero means unlimited */
 426 /*
 427  * Filesystem tunables
 428  */