Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
be1eb036
Commit
be1eb036
authored
Aug 22, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to test the object alloc / LRU / Nuke / beresp.storage hinting
parent
fe331b64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
0 deletions
+150
-0
c00044.vtc
bin/varnishtest/tests/c00044.vtc
+86
-0
c00045.vtc
bin/varnishtest/tests/c00045.vtc
+64
-0
No files found.
bin/varnishtest/tests/c00044.vtc
0 → 100644
View file @
be1eb036
varnishtest "Object/LRU/Stevedores"
server s1 {
rxreq
txresp -bodylen 1048100
rxreq
txresp -bodylen 1048101
rxreq
txresp -bodylen 1048102
rxreq
txresp -bodylen 1048103
rxreq
txresp -bodylen 1048104
} -start
varnish v1 -storage "-smalloc,1m -smalloc,1m, -smalloc,1m" -vcl+backend {
sub vcl_fetch {
set beresp.storage = "invalid";
}
} -start
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 1048100
} -run
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes == 0
varnish v1 -expect SMA.s0.g_space > 1000000
varnish v1 -expect SMA.s1.g_bytes > 1000000
varnish v1 -expect SMA.s1.g_space < 100
varnish v1 -expect SMA.s2.g_bytes == 0
varnish v1 -expect SMA.s2.g_space > 1000000
client c1 {
txreq -url /bar
rxresp
expect resp.status == 200
expect resp.bodylen == 1048101
} -run
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes == 0
varnish v1 -expect SMA.s0.g_space > 1000000
varnish v1 -expect SMA.s1.g_bytes > 1000000
varnish v1 -expect SMA.s1.g_space < 100
varnish v1 -expect SMA.s2.g_bytes > 1000000
varnish v1 -expect SMA.s2.g_space < 100
client c1 {
txreq -url /burp
rxresp
expect resp.status == 200
expect resp.bodylen == 1048102
} -run
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes > 1000000
varnish v1 -expect SMA.s0.g_space < 100
varnish v1 -expect SMA.s1.g_bytes > 1000000
varnish v1 -expect SMA.s1.g_space < 100
varnish v1 -expect SMA.s2.g_bytes > 1000000
varnish v1 -expect SMA.s2.g_space < 100
client c1 {
txreq -url /foo1
rxresp
expect resp.status == 200
expect resp.bodylen == 1048103
} -run
varnish v1 -expect n_lru_nuked == 1
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 1048104
} -run
varnish v1 -expect n_lru_nuked == 2
bin/varnishtest/tests/c00045.vtc
0 → 100644
View file @
be1eb036
varnishtest "Object/LRU/Stevedores with hinting"
server s1 {
rxreq
txresp -bodylen 1048100
rxreq
txresp -bodylen 1048101
rxreq
txresp -bodylen 1048102
} -start
varnish v1 -storage "-smalloc,1m -smalloc,1m, -smalloc,1m" -vcl+backend {
sub vcl_fetch {
set beresp.storage = "s0";
}
} -start
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 1048100
} -run
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes > 1000000
varnish v1 -expect SMA.s0.g_space < 100
varnish v1 -expect SMA.s1.g_bytes == 0
varnish v1 -expect SMA.s1.g_space > 1000000
varnish v1 -expect SMA.s2.g_bytes == 0
varnish v1 -expect SMA.s2.g_space > 1000000
client c1 {
txreq -url /bar
rxresp
expect resp.status == 200
expect resp.bodylen == 1048101
} -run
varnish v1 -expect n_lru_nuked == 1
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes > 1000000
varnish v1 -expect SMA.s0.g_space < 100
varnish v1 -expect SMA.s1.g_bytes == 0
varnish v1 -expect SMA.s1.g_space > 1000000
varnish v1 -expect SMA.s2.g_bytes == 0
varnish v1 -expect SMA.s2.g_space > 1000000
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 1048102
} -run
varnish v1 -expect n_lru_nuked == 2
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes > 1000000
varnish v1 -expect SMA.s0.g_space < 100
varnish v1 -expect SMA.s1.g_bytes == 0
varnish v1 -expect SMA.s1.g_space > 1000000
varnish v1 -expect SMA.s2.g_bytes == 0
varnish v1 -expect SMA.s2.g_space > 1000000
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment