r5769 - trunk/varnish-cache/bin/varnishd

phk at varnish-cache.org phk at varnish-cache.org
Wed Jan 19 12:32:42 CET 2011


Author: phk
Date: 2011-01-19 12:32:42 +0100 (Wed, 19 Jan 2011)
New Revision: 5769

Modified:
   trunk/varnish-cache/bin/varnishd/cache_gzip.c
Log:
Add a comment with our worst case gzip scenario



Modified: trunk/varnish-cache/bin/varnishd/cache_gzip.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_gzip.c	2011-01-19 11:16:37 UTC (rev 5768)
+++ trunk/varnish-cache/bin/varnishd/cache_gzip.c	2011-01-19 11:32:42 UTC (rev 5769)
@@ -33,6 +33,35 @@
  *
  * The API defined by this file, will also insulate the rest of the code,
  * should we find a better gzip library at a later date.
+ *
+ * The absolutely worst case gzip processing path, once we have pipe-lining,
+ * will be the following, so we need to be a bit careful with the scratch
+ * space we use:
+ *
+ * 	Backend		Tmp	Input	Output
+ *         |		----------------------
+ *	   v
+ *	 gunzip		wrk	stack	?
+ *         |
+ *	   v
+ *	  esi
+ *         |
+ *	   v
+ *	  gzip		wrk	?	storage
+ *         |
+ *	   v
+ *	  cache
+ *         |
+ *	   v
+ *	 gunzip		wrk	storage	stack
+ *         |
+ *	   v
+ *	 client
+ *
+ * XXXX: The two '?' are obviously the same memory, but I have yet to decide
+ * where it goes.   As usual we try to avoid the session->ws if we can but
+ * I may have to use that.
+ *
  */
 
 #include "config.h"




More information about the varnish-commit mailing list