Date: Tue, 17 Apr 2001 01:54:25 -0700 From: John Calderon <john@timogen.com> To: Willie Kim <williek291@hotmail.com> Cc: questions@FreeBSD.ORG, oscars@mail.utexas.edu Subject: Re: request for 'too many open files' Message-ID: <3ADC04C1.F3BB25E4@timogen.com> References: <OE41lbhsKd6QR7j1HaK0000113d@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <body bgcolor="#FFFFFF"> umm your reply looks funny but this guy has the same question ( more or less ) <br>I just copied and pasted <br>I think ulimit will set your soft limit and FD_SETSIZE will change the hard/kernel limit for BSD 3.0 <p>don't know for 4.0 <br>but usually there are work arrounds instead of increasing this. like usually spliting open files and opening multiple servers to do part of the dns work like <br>one dns server to handle internal addresses, one for reverse ips, one for regular dns. <p>hope this helps <br>john <p>Subject: <br> Maxusers and max open files <br> Date: <br> Mon, 09 Apr 2001 13:22:59 -0500 <br> From: <br> Oscar Ricardo Silva <oscars@mail.utexas.edu> <br> To: <br> questions@FreeBSD.ORG <br> <br> <br> <p>I know that the max number of open files is related to the maxusers number <br>in the kernel config file. /usr/src/sys/conf/param.c indicates: <p>#define NPROC (20 + 16 * MAXUSERS) <br>#ifndef MAXFILES <br>#define MAXFILES (NPROC*2) <br>#endif <br>int maxproc = NPROC; /* maximum # of processes */ <br>int maxprocperuid = NPROC-1; /* maximum # of processes <br>per user */ <br>int maxfiles = MAXFILES; /* system wide open files <br>limit */ <br>int maxfilesperproc = MAXFILES; /* per-process open files <br>limit */ <p>So, that means that if I want to raise the max number of open files, I need <br>to change MAXUSERS in the kernel and recompile. At the same time, I don't <br>want to place to much overhead on the machine to where it becomes unusable. <p>Any thoughts on what the usable limit is for MAXUSERS? The machine I'm <br>asking about is currently running FreeBSD 4.0. acting as a dns cache server <br>for our campus (approx. 50,000 hosts) and is running djbdns-1.05. We had <br>problems this weekend where the dnscache portion of the djbdns package <br>reported that it could not open more files. I would like to raise the <br>number (currently, max number of open files set to 4136, maxusers 128) but <br>don't want to suffer to much of a performance hit. <p>I've tried looking for more information on open files and max number of <br>open files but have only found one or two sentences in the FreeBSD <br>handbook. Any other resources for this kind of information? I found the <br>piece of code above but admit that I'm not a programmer. <p>Any information would be extremely appreciated. <br> <p>Oscar <br> <p>To Unsubscribe: send mail to majordomo@FreeBSD.org <br>with "unsubscribe freebsd-questions" in the body of the message <p>Willie Kim wrote: <blockquote TYPE=CITE><style></style> <font size=-1>Hello there!...</font> <br><font size=-1>I know this is a kind of danky to ask for it..but i need these problems to be solved for our company though...so, do me a favor, would u?....i wish you'd help me out for these requestions even though it's sort of late in different time between your country and my country..</font> <br><font size=-1> lately my company is participating in BMT(Benchmarking Test) for the cache, nas project, and so forth..but we got the some problems during testing..</font> <br><font size=-1>actually we're using the PolyMix-3 from the FreeBDS in this time but some errors came up consecutively during the test like it said....</font> <br><font size=-1>>1023/1023(267) unsupported HTTP status code...</font> <br><font size=-1>>whenever we use the FreeBSD to increase the numbers with polymix-3, I am getting >a lot of "Too many open files" error messages from Connection.con like that..</font> <br><font size=-1>>too many open files ....like that</font> <br><font size=-1>besides we're using our domestic hardware brand which is Sambo CPU...and also we're using the CacheFlow and other products...we thought the reasons this wasn't working properly was the environment of networking area....like memory part, ICE, or something...</font> <br><font size=-1>anyway, we'll figure out these problems compromised with other company ...because other competitions work on this problem too...</font> <br><font size=-1>anyway, if you have some knowledgements about these problem, would you be willing to send email back to me asap...I'll be looking forwarding to hearing from you soon..</font> <br><font size=-1>well, I'll really appreciate as you can respond my requestions..</font> <br><font size=-1>Have a great day and take care!</font> <font size=-1>Thanks, sir.</font> <font size=-1>Willie H. Kim.</font></blockquote> </body> </html> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ADC04C1.F3BB25E4>