-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME.small_nets
More file actions
50 lines (37 loc) · 1.7 KB
/
README.small_nets
File metadata and controls
50 lines (37 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
On a stand alone server, make sure you #undef NO_JOIN_ON_SPLIT in
config.h Otherwise, you will have trouble with non opered clients
joining new channels.
IMPORTANT NOTE: INITIAL_DBUFS is now 16MB in the default. Small
networks MUST change this value to avoid wasting considerable memory.
ircd-hybrid has been primarily geared for EFnet, where 60k clients
is becoming the norm. But for smaller non EFnet nets, thats going
to cost your server memory, because it will be expecting the large numbers
of clients on EFnet that will never happen on a smaller net.
You can easily tune your hybrid to use less memory on startup
by modifying the file "list.c" in src
These comments will be found in list.c
/* Number of Link's to pre-allocate at a time
for EFnet 1000 seems reasonable,
for smaller nets who knows? -Dianora
*/
#define LINK_PREALLOCATE 1024
/* Number of aClient structures to preallocate at a time
for EFnet 1024 is reasonable
for smaller nets who knows? -Dianora
*/
/* This means you call MyMalloc 30 some odd times,
rather than 30k times -Dianora
*/
#define CLIENTS_PREALLOCATE 1024
I suggest you trim these numbers as needed, to fit your estimated
needs. You could use 64 for each for example, on a server that
normally never saw more than 60 people on the entire network.
Keeping it a multiple of 2 is advisable, but not absolutely
necessary. You will just waste a tiny bit of memory in one of the
bit maps.
Other things to reduce, to use less startup memory.
(from flier@globecom.net) All of these are in config.h
- reduce NICKNAMEHISTORYLENGTH from 15000 to say 1000
- reduce MAXSENDQLENGTH from 5050000 to 500000
- reduce INITIAL_DBUFS from 4000 to 300
- Dianora