]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/000859.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 000859.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] A bit more on FD limits (not strictly services-related)
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20A%20bit%20more%20on%20FD%20limits%20%28not%20strictly%20services-related%29&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="000858.html">
11 <LINK REL="Next" HREF="000860.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] A bit more on FD limits (not strictly services-related)</H1>
15 <B>Martin Pels</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20A%20bit%20more%20on%20FD%20limits%20%28not%20strictly%20services-related%29&In-Reply-To="
17 TITLE="[IRCServices Coding] A bit more on FD limits (not strictly services-related)">martinpels at hotmail.com
18 </A><BR>
19 <I>Wed Jun 5 04:57:15 PDT 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000858.html">[IRCServices Coding] A bit more on FD limits (not strictly services-related)
22 </A></li>
23 <LI>Next message: <A HREF="000860.html">[IRCServices Coding] Again with the dual mode setting
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#859">[ date ]</a>
27 <a href="thread.html#859">[ thread ]</a>
28 <a href="subject.html#859">[ subject ]</a>
29 <a href="author.html#859">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>I restarted services with httpd disabled, to see if that helps. but the
35 problem persists :-(
36
37 /proc/sys/fs/file-nr gives me 1864 136 4096
38 so only 136 in use...
39
40 I did notice this in the log when restarting Services:
41
42 [Jun 05 13:25:12 2002] IRC Services 5.0pre1 starting up
43 [Jun 05 13:25:13 2002] sockets: [v]sockprintf() with NULL socket!
44
45 ----- Original Message -----
46 From: &quot;Russell Garrett&quot; &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">rg at tcslon.com</A>&gt;
47 To: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">ircservices-coding at ircservices.za.net</A>&gt;
48 Sent: Wednesday, June 05, 2002 1:39 PM
49 Subject: [IRCServices Coding] A bit more on FD limits (not strictly
50 services-related)
51
52
53 &gt;<i> OK, I've done a touch more research on this, the Linux default is
54 </I>&gt;<i> maximum 1024 FDs per process, and 4096 in total. A `cat
55 </I>&gt;<i> /proc/sys/fs/file-nr` will tell you the number of open FDs, the
56 </I>&gt;<i> number in use, and the maximum limit.
57 </I>&gt;<i>
58 </I>&gt;<i> To increase the maximum number of FDs to 65536 (for a 2.2 kernel - I
59 </I>&gt;<i> think 2.4 is the same):
60 </I>&gt;<i>
61 </I>&gt;<i> 1. In /usr/include/bits/types.h change the &quot;#define __FD_SETZISE
62 </I>&gt;<i> 1024&quot; to &quot;#define __FD_SETSIZE 65536&quot;
63 </I>&gt;<i> 2. Do the same in /usr/include/linux/posix_types.h
64 </I>&gt;<i> 3. Recompile your kernel
65 </I>&gt;<i>
66 </I>&gt;<i> The following steps need to be performed every time you start the
67 </I>&gt;<i> FD-hungry application, or in your init scripts:
68 </I>&gt;<i>
69 </I>&gt;<i> 4. echo &quot;65536&quot; &gt; /proc/sys/fs/file_max
70 </I>&gt;<i> 5. echo &quot;196608&quot; &gt; /proc/sys/fs/inode_max
71 </I>&gt;<i> 6. ulimit -HSn 65536
72 </I>&gt;<i>
73 </I>&gt;<i> Russ Garrett
74 </I>&gt;<i> <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">russ at garrett.co.uk</A>
75 </I>&gt;<i> www.faereal.net
76 </I>&gt;<i>
77 </I>&gt;<i> ------------------------------------------------------------------
78 </I>&gt;<i> To unsubscribe or change your subscription options, visit:
79 </I>&gt;<i> <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding</A>
80 </I>&gt;<i>
81 </I>
82 </PRE>
83
84 <!--endarticle-->
85 <HR>
86 <P><UL>
87 <!--threads-->
88 <LI>Previous message: <A HREF="000858.html">[IRCServices Coding] A bit more on FD limits (not strictly services-related)
89 </A></li>
90 <LI>Next message: <A HREF="000860.html">[IRCServices Coding] Again with the dual mode setting
91 </A></li>
92 <LI> <B>Messages sorted by:</B>
93 <a href="date.html#859">[ date ]</a>
94 <a href="thread.html#859">[ thread ]</a>
95 <a href="subject.html#859">[ subject ]</a>
96 <a href="author.html#859">[ author ]</a>
97 </LI>
98 </UL>
99
100 </body></html>