To create new wiki account, please join us on #znc at freenode and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Difference between revisions of "ZNC Memory Usage"

From ZNC
Jump to: navigation, search
m (Reorder by version)
m (added example commands and output for memory fetching)
(4 intermediate revisions by 2 users not shown)
Line 15: Line 15:
 
The following list doesn't include a list of modules used in each case for the sake of brevity.  However, module use could have a meaningful effect on memory usage.
 
The following list doesn't include a list of modules used in each case for the sake of brevity.  However, module use could have a meaningful effect on memory usage.
  
 +
There are multiple ways of determining memory usage, but here is the method used for more than half of the entries here:
 +
$ ps aux --sort -rss | grep znc | awk '{print $1" "$2" "$6}' | column -t
 +
Example output:
 +
zero-one  903    32144
 +
darthga+  18346  5848
 +
zero-one  15469  4652
 +
mindy    1467  1652
 +
hammy    1478  1560
 +
This is the username who owns the process, followed by the PID, and the resident memory usage in kiloBytes.
  
{|
+
 
 +
{| class="wikitable sortable" border="1"
 
! ZNC Version
 
! ZNC Version
 
! Memory Usage
 
! Memory Usage
 
! Number of channels
 
! Number of channels
 +
! Number of networks
 
! Average Buffer Size
 
! Average Buffer Size
 
! AutoClearChanBuffer
 
! AutoClearChanBuffer
Line 28: Line 39:
 
|60.9 MB
 
|60.9 MB
 
|About 260
 
|About 260
 +
|
 
|About 2,000
 
|About 2,000
 
|Yes, mostly
 
|Yes, mostly
Line 36: Line 48:
 
|27.8 MB
 
|27.8 MB
 
|About 100
 
|About 100
 +
|
 
|About 100
 
|About 100
 
|Yes, mostly
 
|Yes, mostly
Line 44: Line 57:
 
|12.1 MB
 
|12.1 MB
 
|About 20
 
|About 20
 +
|4
 
|About 850,000
 
|About 850,000
 
|Yes
 
|Yes
Line 52: Line 66:
 
|7.3 MB
 
|7.3 MB
 
|About 30
 
|About 30
 +
|2
 
|About 4,290,032,704
 
|About 4,290,032,704
 
|Yes
 
|Yes
 
|4
 
|4
 
|x86-64 (Ubuntu 13.10)
 
|x86-64 (Ubuntu 13.10)
 +
|-
 +
| 1.6.5
 +
| 160 MB
 +
| About 100
 +
| 5
 +
| 50
 +
| Yes
 +
| 1
 +
| x86-64 (Debian 8)
 +
|-
 +
| 1.6.5
 +
| 57 MB
 +
| About 100
 +
| 2
 +
| 50
 +
| Yes
 +
| 2
 +
| x86-64 (Debian 8)
 
|-
 
|-
 
|1.7.x-git*
 
|1.7.x-git*
 
|324.75 MB
 
|324.75 MB
 
|Over 200
 
|Over 200
 +
|
 
|About 50 - 100
 
|About 50 - 100
 
|Yes
 
|Yes
Line 68: Line 102:
 
|50.2 MB
 
|50.2 MB
 
|53
 
|53
 +
|2
 
|About 1,000,000
 
|About 1,000,000
 
|Yes
 
|Yes
Line 76: Line 111:
 
|7.9 MB
 
|7.9 MB
 
|2
 
|2
 +
|1
 
|About 50
 
|About 50
 
|Yes
 
|Yes
Line 84: Line 120:
 
|4.7 MB
 
|4.7 MB
 
|9
 
|9
 +
|1
 
|About 500
 
|About 500
 
|Yes
 
|Yes
Line 92: Line 129:
 
|10.3 MB
 
|10.3 MB
 
|10
 
|10
 +
|1
 
|About 50
 
|About 50
 
|Yes
 
|Yes
Line 100: Line 138:
 
|7.7 MB
 
|7.7 MB
 
|7
 
|7
 +
|1
 
|About 50
 
|About 50
 
|Yes
 
|Yes

Revision as of 10:15, 18 June 2017

This page is intended to give users an idea and rough estimate of how much memory ZNC needs to run. Other users are asked to provide anecdotal reports which include memory usage as well as other relevant information.

Various factors can affect ZNC memory usage, including:

  • Number of channels (across all users on a ZNC instance)
  • Average saved buffer size of each channel
  • Whether the AutoClearChanBuffer setting is used
  • Query Buffers (if ZNC 1.5 or later)
  • Loaded modules (number, type, and function)
  • Number of users
  • System architecture (x86, x86-64, etc.)

Note: These are anecdotal reports, which are personal experiences of other ZNC users/administrators. These reports are not in any way verified, nor are any of them the least bit scientific. If exact resource usage figures are important, performing your own testing is highly recommended. As always, YMMV.

The following list doesn't include a list of modules used in each case for the sake of brevity. However, module use could have a meaningful effect on memory usage.

There are multiple ways of determining memory usage, but here is the method used for more than half of the entries here:

$ ps aux --sort -rss | grep znc | awk '{print $1" "$2" "$6}' | column -t

Example output:

zero-one  903    32144
darthga+  18346  5848
zero-one  15469  4652
mindy     1467   1652
hammy     1478   1560

This is the username who owns the process, followed by the PID, and the resident memory usage in kiloBytes.


ZNC Version Memory Usage Number of channels Number of networks Average Buffer Size AutoClearChanBuffer Number of Users System Arch
1.4 60.9 MB About 260 About 2,000 Yes, mostly 9 x86-64 (Debian 7.7)
1.4 27.8 MB About 100 About 100 Yes, mostly 8 x86-64 (Debian 7.7)
1.5 12.1 MB About 20 4 About 850,000 Yes 1 x86-64 (Slackware 14.1)
1.5 7.3 MB About 30 2 About 4,290,032,704 Yes 4 x86-64 (Ubuntu 13.10)
1.6.5 160 MB About 100 5 50 Yes 1 x86-64 (Debian 8)
1.6.5 57 MB About 100 2 50 Yes 2 x86-64 (Debian 8)
1.7.x-git* 324.75 MB Over 200 About 50 - 100 Yes 57 x86-64 (Ubuntu 17.04)
1.7.x-git 50.2 MB 53 2 About 1,000,000 Yes 2 x86-64 (Ubuntu 14.04.5 LTS)
1.7.x-git [ZNC-Linker bot] 7.9 MB 2 1 About 50 Yes 1 x86-64 (Ubuntu 14.04.5 LTS)
1.7.x-git 4.7 MB 9 1 About 500 Yes 1 x86-64 (Ubuntu 14.04.5 LTS)
1.7.x-git 10.3 MB 10 1 About 50 Yes 1 x86-64 (Ubuntu 16.04.2 LTS)
1.7.x-git 7.7 MB 7 1 About 50 Yes 1 x86-64 (Ubuntu 16.04.2 LTS)