From 29b834cf5660c146ea514a231cd846de73f78863 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Fri, 6 Oct 2017 21:17:15 +0300 Subject: [PATCH] update for highload documentation --- doc/html/highload.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/html/highload.html b/doc/html/highload.html index 912c571..70594be 100644 --- a/doc/html/highload.html +++ b/doc/html/highload.html @@ -189,8 +189,8 @@ you can eliminate Nagle's algorithm delay with TCP_NODELAY flag. Usage example: proxy -osTCP_NODELAY -ocTCP_NODELAY sets TCP_NODELAY for client (oc) and server (os) connections. -
-
+

Do not use TCP_NODELAY on slow connections, if connection bandwidth is +bottleneck, or because it may be more bandwidth-consuming.

Use slice to speedup large data amount transfers

slice() allows to copy data between connections without copying to process addres space. It can speedup proxy on high bandwidth connections, if most @@ -203,3 +203,7 @@ devel version. Do not use it in production without testing. Slice requires more system buffers, but reduces process memory usage. Do not use slice if there is a lot of short-living connections with no bandwidth requirements. +

Use slice only on high-speed connections (e.g. 10GBE), where processor or +bus are bottlenecks. +

TCP_NODELAY and slice are not contrary to each over and can be combined on +high-speed connections.