From a13cf45e588720f8f73fc9ee926d6a5129a26b44 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sun, 29 Jun 2014 12:18:39 -0700 Subject: [PATCH] Updated Optimizing Shadowsocks (markdown) --- Optimizing-Shadowsocks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Optimizing-Shadowsocks.md b/Optimizing-Shadowsocks.md index eaa446b..0bfd226 100644 --- a/Optimizing-Shadowsocks.md +++ b/Optimizing-Shadowsocks.md @@ -44,7 +44,7 @@ ulimit -n 51200 If you use other ways to run shadowsocks in the background, make sure to add `ulimit -n 51200` in your init script. -After optimizing, a busy Shadowsocks server that handles thousands of connections, takes about 30MB memory and 10% CPU. Notice that at the same time, **Linux kernel usually uses >100MB RAM** to hold buffer and cache for those connections. If you want to use less RAM, +After optimizing, a busy Shadowsocks server that handles thousands of connections, takes about 30MB memory and 10% CPU. Notice that at the same time, **Linux kernel usually uses >100MB RAM** to hold buffer and cache for those connections. By using the sysctl config above, you are trading off RAM for speed. If you want to use less RAM, reduce the size of rmem and wmem. ![if_eth0-day](https://cloud.githubusercontent.com/assets/1073082/3358558/2a18bc5a-fadf-11e3-96c3-473c42f1a3a3.png)