From cecd10f5cb8d0e2e45aca9e4e70a55e8fb95d089 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 14 Jan 2010 19:55:29 -0800 Subject: [PATCH] kernel - Increase default kern.maxfiles from (maxproc * 2) to (maxproc * 16). * Increases maxfiles from approximately ~12K to around ~100K on systems with moderate amounts of memory. Reported-by: Peter Avalos --- sys/kern/subr_param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index 7ef25d3b30..f3af67edf8 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -61,7 +61,7 @@ #define NBUF 0 #endif #ifndef MAXFILES -#define MAXFILES (maxproc * 2) +#define MAXFILES (maxproc * 16) #endif #ifndef NSFBUFS #define NSFBUFS (512 + maxusers * 16) -- 2.41.0