Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare Varnish-Cache for the age of AI #4209

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nigoroll
Copy link
Member

@nigoroll nigoroll commented Oct 7, 2024

... where of course AI stands for Asynchronous Iterators ;)

On this PR

This PR might be more extensive than others, and I would like to ask reviewers to lean back and take some time for it. Thank you in advance to anyone who invests their time into looking at this.

The PR description has been written to give an overview; individual commit messages have more details.

While the code proposed here works, and I am already building on top of it, I am deliberately marking this PR as a draft to make clear that I am very interested in feedback and comments before committing to a particular interface. Also I expect sensible changes to arrive still, but the fundamentals are ripe, IMHO.

Intro

This PR suggests a new API to enable use of asynchronous I/O on the delivery side of Varnish-Cache. The design has been highly influenced by io_uring, because my prior experience has been that creating compatibility with it is fairly easy: The io_uring interface is extremely simple in that completions are identified by a single uint64_t value, so once calling code is prepared to work with this limited interface, adding other implementations is relatively easy.

Advantages of asynchronous I/O

In my mind, efficient asynchronous I/O interfaces primarily provides two main benefits:

a) using less threads

b) significantly lower context switching overhead when many I/O requests can be combined into a single system call (or, in the case of io_uring, optionally none at all)

a) has long been achieved with the traditional select() (poll() / epoll() / kqueue()) event loop model, which Varnish-Cache uses for the waiter facility. This technique saves on threads, but each I/O still requires >1 system call per I/O. As long as we used HTTP1 with TCP, this overhead was not too bad, because we could simply make our I/O system calls very big (using writev()). But already with HTTP2, handing large batches of data to the kernel becomes problematic, because the (questionable) benefits of the protocol require reacting to client events with lowest latency. And with HTTP3, we definitely need system calls to handle lots of small UDP datagrams, unless we want to map hardware into user address space and talk directly to it.

So b) becomes much more important now: More than ever, we will need to be able to batch I/O requests into as small a number of system calls as possible with a tight feedback loop to the client. If we want to stay efficient and not push too much data for each client at once, consequently we also need to handle many clients from a central instance (a thread or a few threads).

Or, summarizing even more, we need to use an event loop-ish architeture for client I/O.

Existing interfaces vs. asynchronous I/O

Our existing ObjIterate() interface calls into the storage engine with a delivery function to execute on every extent (pointer + length) of body data. Iteration can block at any point: The storage engine may issue blocking I/O, as certainly will the delivery function while sending data to the client.

For asynchronous I/O, we need to turn this inside out: Firstly, our iteration state can not live on the stack as it currently does, we need a data structure containing all we need to know about the iteration such that we can come back later and ask the storage engine for more data. Secondly, we need a guarantee from the storage engine to never block. And, following from that, we need some notification mechanism allowing the storage engine to tell client I/O code that it now has more data available. A special case of the last point is streaming a busy object, where it is not just the storage engine that blocks, but rather creation of the cache object itself.

Overview

This series of commits starts with the last aspect: ObjVAIGetExtend() in the second commit checks for more streaming data and, if none is available, registers a callback, allowing for asynchronous notification.

The third commit contains the proposed new API, which follows the idea that the storage engine hands out "leases" on segments of data to callers, which can then use them until they return the leases - where the storage engine might require leases to be returned before handing out new ones.

With an array of leases at hand, the caller can then do its asynchronous thing, also returning leases in an asynchronous fashion.

The last commit implements the new API for simple storage and reimplements the existing simple storage iterator using the new API as a PoC.

Performance

Performance of malloc storage with current varnish-cache head 508306f has been measured against the reimplementation using the new API. The test has been set up such that the more relevant case of streaming data from small-ish extents is tested with varnish-cache as its own backend: A cache object is created from 64MB of random data, which is then streamed in pass mode by using a request from Varnish-Cache against itself. The test has also been run with debug.chkcrc32 from #4208 and also for much longer periods.

Details are given below.

Typical results for wrk -t100 -c400 -d100 http://localhost:8080 on my laptop are:

baseline 508306f

Running 2m test @ http://localhost:8080/
  100 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.68s   306.07ms   2.00s    79.02%
    Req/Sec     0.60      1.80    20.00     92.79%
  4872 requests in 1.70m, 305.13GB read
  Socket errors: connect 0, read 263, write 0, timeout 4729
Requests/sec:     47.82
Transfer/sec:      2.99GB

with VAI reimplementation 125dc28

Running 2m test @ http://localhost:8080/
  100 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.61s   348.34ms   2.00s    75.63%
    Req/Sec     0.56      1.68    20.00     93.12%
  4897 requests in 1.70m, 306.35GB read
  Socket errors: connect 0, read 327, write 0, timeout 4700
Requests/sec:     48.04
Transfer/sec:      3.01GB

baseline 508306f with debug.chkcrc32

Running 2m test @ http://localhost:8080/
  100 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     0.00us    0.00us   0.00us    -nan%
    Req/Sec     0.56      1.76    10.00     93.36%
  1065 requests in 1.67m, 75.61GB read
  Socket errors: connect 0, read 0, write 0, timeout 1065
Requests/sec:     10.64
Transfer/sec:    773.51MB

with VAI reimplementation 125dc28 with debug.chkcrc32

Running 2m test @ http://localhost:8080/
  100 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   846.94ms    0.00us 846.94ms  100.00%
    Req/Sec     0.67      1.91    10.00     92.55%
  1128 requests in 1.67m, 81.11GB read
  Socket errors: connect 0, read 0, write 0, timeout 1127
Requests/sec:     11.27
Transfer/sec:    829.73MB

Performance Test details

VCL with varnishd start command line in a comment (code in vcl_deliver commented out for no-crc test)

vcl 4.1;

# VCL to benchmark passes.
# A single object is created from a file, then varnish makes pass requests
# against itself which are hits on that file.
#
# Uses linux abstract sockets, but can easily be adjusted to using UDS
#
# example start command line:
#
# /tmp/sbin/varnishd -f $PWD/slink/bench_pass/bench_pass.vcl -a :8080 -a self=@varnish -n /tmp/t -p fetch_chunksize=4k -F

import debug;
import std;
import blob;
import blobsynth;

backend none none;

backend self {
	.path = "@varnish";
}

sub vcl_init {
	new data = blob.blob(BASE64,
	   std.fileread("/home/slink/Devel/varnish-git/slash/slink/misc/64mb.b64"));
}

sub vcl_recv {
	if (local.socket == "self") {
		set req.url = "/";
		return (hash);
	} else {
		return (pass);
	}
}

sub vcl_backend_fetch {
	if (local.socket == "self") {
		set bereq.backend = none;
	} else {
		set bereq.backend = self;
	}
	return (fetch);
}

sub vcl_backend_error {
	set beresp.status = 200;
	blobsynth.synthetic(data.get());
	set beresp.ttl = 1y;
	return (deliver);
}

sub vcl_deliver {
	debug.chkcrc32(2561873268, panic_unless_error);
	set resp.filters += " debug.chkcrc32";
}

@nigoroll
Copy link
Member Author

homework from bugwash: look at ministat and get more numbers

@nigoroll
Copy link
Member Author

I have re-run the mini benchmark. Because wrk does not provide individual numbers, I added varnishlog to get the Timestamp:Resp, so my start-script is now this1. The outcome has been given to ministat.

As apparently I had not made this clear in the initial note, the goal at this point is to show that a reimplementation of sml_iterator() based on the new AI iterator does not show a relevant performance regression. Relevant gains of the AI interface are only expect with an asynchronous IO implementation actually making use of it, which I do not have yet, that is work in progress.

So here is an unfiltered comparison of two runs with vai vs. master.

These are response times, so lower is better.

crc32 check enabled

$ ministat -s -C 6 *varnishlog_Timestamp*
x master_varnishlog_Timestamp:Resp.20241021_112327.d7540e548dc2771a91a1a842949bb82904e06032
+ vai_varnishlog_Timestamp:Resp.20241021_112035.058edd04dedbde25d3193580fc9a63aba3d0c602
+------------------------------------------------------------------------------+
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          +                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|          *                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         +*                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **                                                                   |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         **x                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|         ***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        +***                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****                                                                  |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|        ****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       x****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       *****x                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|       ******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|      +******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     ++******                                                                 |
|     +*******                                                                 |
|     +*******                                                                 |
|     +*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    ++*******                                                                 |
|    +********                                                                 |
|    +********                                                                 |
|    +********                                                                 |
|    +********                                                                 |
|    +********                                                                 |
|    +********                                                                 |
|    +********                                                                 |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    +********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|    *********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|   +*********x                                                                |
|  ++*********x                                                                |
|  ++*********x                                                                |
|  ++*********x                                                                |
|  ++*********x                                                                |
|  ++*********x                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
|  ++**********                                                                |
| +++**********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********                                                                |
| ++***********x                                                               |
| ++***********x                                                               |
| +************x                                                               |
| +************x                                                               |
| +************x                                                               |
| +************x                                                               |
| +************x                                                               |
| +************x                                                               |
| +************x                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************                                                               |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +*************x                                                              |
| +**************                                                              |
| +**************                                                              |
| +**************                                                              |
| +**************                                                              |
| +**************                                                              |
| +**************                                                              |
| +**************                                                              |
| +**************                                                              |
| +**************                                                              |
|++**************                                                              |
|++**************                                                              |
|++**************                                                              |
|++**************                                                              |
|++**************                                                              |
|++**************x                                                             |
|++**************x                                                             |
|++**************x                                                             |
|+***************x                                                             |
|+***************x                                                             |
|+****************                                                             |
|+****************                                                             |
|+****************x+                                                           |
|+****************x+                                                           |
|+****************x+                                                           |
|+****************x+                                                           |
|+****************x*                                                           |
|+******************                                                     +     |
|+******************                                                    ++x    |
|+******************x                                                   ++*    |
|+******************x                                                   ++*    |
|+******************x                                                   ++*    |
|+******************x+x                                                 ++*    |
|*******************x+x                                                 +**    |
|*******************x*x                                                 +**xx  |
|*********************xx                               x                ***xx  |
|*********************xx                               x             +  ***xx  |
|***********************                               xx           ++ +***xx  |
|***********************     x +                       xx          ++*x+***xx  |
|***********************  ++ *+++                     xxxx    x  ++++*******xxx|
|    |_____A_____|                                                             |
|   |_____A______|                                                             |
+------------------------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x 6261      0.320022     81.947655     10.549157     10.777466     6.5456486
+ 6507      0.334026     78.256834     10.187824     10.159948     6.6247137
Difference at 95.0% confidence
	-0.617518 +/- 0.228524
	-5.72972% +/- 2.12038%
	(Student's t, pooled s = 6.58606)

no crc32 check

$ ministat -s -C 6 *varnishlog_Timestamp*
x master_varnishlog_Timestamp:Resp.20241021_112820.d7540e548dc2771a91a1a842949bb82904e06032
+ vai_varnishlog_Timestamp:Resp.20241021_113109.058edd04dedbde25d3193580fc9a63aba3d0c602
+------------------------------------------------------------------------------+
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|   *                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*                                                                          |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x*x                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**                                                                         |
|  x**     +                                                                   |
|  x**     +                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**    ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  x**+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ***+   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   ++                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****   *+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  x*+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  **+                                                                   |
|  ****  ***                                                                   |
|  ****  ***                                                                   |
|  ****  ***                                                                   |
|  ****  ***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***                                                                   |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***+                                                                  |
|  **** +***++                                                                 |
|  **** +***++                                                                 |
|  **** +***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***++                                                                 |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  ****++***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***+++                                                                |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***++++                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *****+***+++*                                                               |
|  *********+++*                                                               |
|  *********+++*                                                               |
|  *********+++*                                                               |
|  *********++**                                                               |
|  *********++**                                                               |
|  *********++**                                                               |
|  *********++**                                                               |
|  *********++**                                                               |
|  *********++**                                                               |
|  *********++**                                                               |
|  *********++**                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *********+***                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************                                                               |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************+                                                              |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  *************++                                                             |
|  **************+                                                             |
|  **************+                                                             |
|  **************+                                                             |
|  **************+                                                             |
|  **************+                                                             |
|  **************+                                                             |
|  **************+                                                             |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
|  **************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x**************++                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x***************+                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************                                                            |
| x****************+                                                           |
| x****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| *****************+                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************                                                           |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| ******************+                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************                                                          |
| *******************+                                                         |
| *******************+                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************                                                         |
| ********************+                                                        |
| ********************+                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************                                                        |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************x                                                       |
| *********************xx                                                      |
| **********************x                                                      |
| **********************x                                                      |
| **********************x                                                      |
| **********************x                                                      |
| **********************x                                                      |
| **********************x                                                      |
| **********************x x                                                    |
| **********************xxx                                                    |
| **********************xxx                                                    |
| **********************xxx                                                    |
| **********************xxx                                                    |
| **********************xxx                                                    |
| **********************xxx                                                    |
| **********************xxxx                                                   |
| **********************xxxx                                                   |
| **********************xxxx                                                   |
| **********************xxxx                                                   |
| **********************xxxx                                                   |
| **********************xxxx                                                   |
| **********************xxxx x                                                 |
| **********************xxxx x                                                 |
|x**********************xxxx x                                                 |
|x**********************xxxx x                                                 |
|x**********************xxxx x                                                 |
|x***********************xxx x                                                 |
|x************************xx x                                                 |
|x************************xx x                                                 |
|x************************xx x                                                 |
|x************************xx x                                                 |
|x************************xx x                                                 |
|x************************xxxx                                                 |
|x************************xxxx                                                 |
|x************************xxxx                                                 |
|x************************xxxx                                                 |
|x************************xxxxxx                                               |
|**************************xxxxx                                               |
|**************************xxxxx x                                             |
|**************************xxxxx x                                             |
|**************************xxxxx x                                             |
|***************************xxxx x                                             |
|***************************xxxx x                                             |
|****************************xxx xx                                            |
|****************************xxx xx                                            |
|****************************xxx xx                                            |
|****************************xxx xx                                            |
|****************************xxx xx                                            |
|*****************************xx xx                                            |
|*****************************xxxxx                                            |
|*****************************xxxxx                                            |
|*****************************xxxxx                                            |
|*****************************xxxxx                                            |
|*****************************xxxxx                                            |
|*****************************xxxxx                                            |
|*****************************xxxxx                                            |
|******************************xxxxx                                           |
|******************************xxxxxx  x                                       |
|*******************************xxxxx  x                                       |
|*******************************xxxxx  x                                       |
|*******************************xxxxxx x                                       |
|********************************xxxxxxx                                       |
|*********************************xxxxxx                       x               |
|*********************************xxxxxx  x                x   x               |
|**********************************xxxxxx x  x          x  xx xx               |
|***********************************xxxxx xxxxxx      xxx  xx xx x    x        |
|****************************************xxxxxxx+x  x xxxx xx xx xxx  xx x    x|
|  |_____MA_______|                                                            |
|   |_____A_____|                                                              |
+------------------------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x 10671      0.044828      32.76001      3.286472     3.9256969     3.1341722
+ 10551      0.037735     20.157598      3.679551     3.9293176     2.4154246
No difference proven at 95.0% confidence

v=$(git rev-parse HEAD)
d=$(date +%Y%m%d_%H%M%S)
/tmp/bin/varnishlog -n /tmp/t -g raw -I Timestamp:Resp >varnishlog_Timestamp:Resp.$d.$v &
make -j 20 install && pushd ../*bsynth && make -j 20 install && popd && time /tmp/sbin/varnishd -f $PWD/slink/bench_pass/bench_pass.vcl -a :8080 -a self=@varnish -n /tmp/t -p fetch_maxchunksize=64k -p vsl_mask=+debug -F
pkill varnishlog

Footnotes

  1. start script

This commit prepares a more generic busy object extension notification facility
in preparation of the asynchronous iteration facility introduced with the next
commit. It makes more sense when looked at in context of that, but the changes
constitute a fairly independent part and thus have been separated.

Background

To support streaming of busy objects (delivery to a client while the body is
being fetched), the Object API provides ObjWaitExtend(), which is called by
storage iterators to learn the available amount of body data and to wait for
more if all available data has been processed (= sent to the client, usually).

The other end of the facility is ObjExtend(), which is called by the fetch side
of storage to update the available amount of body data and wake up any clients
blocking in ObjWaitExtend().

This facility recently got extended by a blocking operation in the other
direction, where the writing side blocks if the amount of unsent data exceeds
the amount configured via the transit_buffer.

Why this change?

The existing facility is based on the model of blocking threads. In order to
support asynchronous iterators, where a single thread may serve multiple
requests, we need a different, non-blocking model with notifications.

Implementation

The basic implementation idea is to introduce a variant of ObjWaitExtend()
which, rather than blocking on a condition variable, registers a callback
function to be called when the condition variable got signalled. This is
ObjVAIGetExtend(): It returns the updated extension, if available, _or_
registers the callback.

To implement the actual callback, we add to struct boc a queue (struct
vai_q_head), whose elements are basically the notification callback with two
pointers: the caller gets a private pointer as well as vai_hdl is an opaque
handle owned by storage.

ObjExtend() now also works the list of registered callbacks.

ObjVAICancel() removes a callback when the caller is no longer interested or
needs to reclaim the queue entry.
This commit adds a new object iteration API to support asynchronous IO.

Background

To process object bodies, the Object API so far provides ObjIterate(), which
calls a storage specific iterator function. It in turn calls a caller-provided
objiterate_f function on individual, contigious segments of data (extents).

In turn, objiterate_f gets called with either no flags, or one of OBJ_ITER_FLUSH
and OBJ_ITER_END. The storage iterator uses these flags to signal lifetime of
the provided entents: They remain valid until a flag is present, so the caller
may delay use until an extent is provided with a flag sent. Or, seen from the
other end, objiterate_f needs to ensure it does not use any previously received
extent when a flag is seen.

objiterate_f can not make any assumption as to if or when it is going to be
called, if the storage iterator function needs time to retrieve data or a
streaming fetch is in progress, then so be it, objiterate_f may eventually get
called or not.

Or, again seen from the other end, the storage iterator function assumes being
called from a thread and may block at any time.

Why this change?

The model described above is fundamentally incompatible with asynchronous, event
driven IO models, where a single thread might serve multiple requests in
parallel to benefit from efficiency gains and thus no called function must ever
block.

This additional API is intended to provide an interface suitable for such
asynchronous models. As before, also the asynchronous iterator is owned by a
storage specific implementation, but now, instead of using a thread for its
state, that state exists in a data structure opaque to the caller.

API Usage

The basic model for the API is that the storage engine "leases" to the caller a
number of extents, which the caller is then free to use until it returns the
leases to the storage engine.

The storage engine can also signal to the caller that it can not return more
extents unless some are returned or that it simply can not return any at this
time for other reasons (for example, because it is waiting for data on a
streaming fetch). In both cases, the storage engine promises to call the
caller's notification function when it is ready to provide more extents or
iteration has ended.

The API consists of four functions:

- ObjVAIinit() requests an asynchronous iteration on an object. The caller
  provides an optional workspace for the storage engine to use for its state,
  and the notification callback / private pointer introduced with the previous
  commit. Its use is explained below.

  ObjVAIinit() returns either an opaque handle owned jointly by the Object layer
  in Varnish-Cache and the storage engine, or NULL if the storage engine does
  not provide asynchronous iteration.

All other API functions work on the handle returned by ObjVAIinit():

- ObjVAIlease() returns the next extents from the object body in a
  caller-prodived array. Eeach extent is a struct viov, which contains a struct
  iovec (see iovec(3type) / readv(2)) with the actual extent, a flags field to
  signal the last extent (mirroring OBJ_ITER_END) and an integer identifying the
  lease. The "lease" integer (uint64_t) is opaque to the caller and needs to be
  returned as-is later, but is guaranteed by storage to be a multiple of 8. This
  can be used by the caller to temporily stash a tiny amount of additional state
  into the lease.

  ObjVAIlease either returns a positive integer with a number of available
  leases, zero if the end of the object has been reached, or a negative integer
  for "call again later" and error conditions:

  -EAGAIN signals that no more data is available at this point, and the storage
  engine will call the notification function when the condition changes.

  -ENOBUFS behaves identically, but also requires the caller to return more
  leases.

  -EPIPE mirrors BOS_FAILED on the busy object.

  Any other -(errno) can be used by the storage engine to signal other error
  conditions.

- ObjVAIreturn() returns leases to the storage when the caller is done with them

  For efficiency, leases should be returned in batches, and latest if
  ObjVAIlease() requests so by returning -ENOBUFS.

- ObjVAIfini() finalizes iteration. The handle must not be used thereafter.

Implementation

One particular aspect of the implementation is that the storage engine returns
the "lease", "return" and "fini" functions to be used with the handle. This
allows the storage engine to provide functions tailored to the attributes of the
storage object, for example streaming fetches require more elaborate handling
than settled storage objects.

Consequently, the vai_hdl which is, by design, opaque to the caller, is not
entirely opaque to the object layer: The implementation requires it to start
with a struct vai_hdl_preamble containing the function pointers to be called by
ObjVAIlease(), ObjVAIreturn() and ObjVAIfini(). The return function pointer
vai_return is optional.

More details about the implementation will become clear with the next commit,
which implements SML's synchronous iterator using the new API.
…terator

This commit implements the asynchronous iteration API defined and described in
previous commits for the simple storage layer and reimplements the synchronous
iterator with it.

This commit message does not provide background information, please refer to the
two previous commits.

Implementation

sml_ai_init() initializes the handle and choses either a simple or more
elaborate "boc" lease function depending on whether or not a streaming fetch is
ongoing (boc present).

sml_ai_lease_simple() is just that, dead simple. It iterates the storage segment
list and fills the struct viov array provided by the caller. It is a good
starting point into the implementation.

sml_ai_lease_boc() handles the busy case and is more elaborate due to the nature
of streaming fetches. It first calls ObjVAIGetExtend() to get the current
extent. If no data is available, it returns the appropriate value.

Other than that, is basically does the same things as sml_ai_lease_simple() with
these exceptions: It also needs to return partial extends ("fragments") and it
needs to handle the case where the last available segment is reached, in which
case there is no successor to store for the next invocation, but also the last
segment could get returned and thus freed before the next invocation.

sml_ai_return() is only used for the "boc" case. It removes returned full
segments from the list and then frees them outside the boc mtx.

sml_ai_fini() is straight forward and should not need explanation.

Implementation of sml_iterator() using the new API

To reimplement the existing synchronous iterator based on the new API, we first
need a little facility to block waiting for a notification. This is struct
sml_notify with the four sml_notify* functions. sml_notify() is the callback,
sml_notify_wait() blocks waiting for a notification to arrive.

Until it runs out of work, the iterator performs these steps:

ObjVAIlease() is called repeatedly until either the viov array is full or a
negative value is returned. This allows the rest of the code to react to the
next condition appropriately by sending an OBJ_ITER_FLUSH with the last lease
only.

Calling func() on each extent is trivial, the complications only come from
handling OBJ_ITER_FLUSH, "just in time" returns and error handling.
@nigoroll
Copy link
Member Author

With the force push as of just now I fixed a misnomer of struct vaiov and renamed it to struct viov in preparation of a suggestion for more general use. And also the vanishified io vector has nothing to do with the asynchronous iterator, so while it was funny (at least to me) that the letter i stood for two words, viov really is the better name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant