Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
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
slash
Commits
d3709fa4
Unverified
Commit
d3709fa4
authored
Jul 10, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The real chunk_exponent maximum is 30 (FIO_MAX == 1<<30)
parent
52692182
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
fellow_cache.c
src/fellow_cache.c
+1
-2
fellow_tunables.h
src/tbl/fellow_tunables.h
+1
-1
No files found.
src/fellow_cache.c
View file @
d3709fa4
...
...
@@ -1836,8 +1836,6 @@ fellow_busy_region_alloc(struct fellow_busy *fbo, size_t size, int8_t cram)
CHECK_OBJ_NOTNULL
(
fbo
,
FELLOW_BUSY_MAGIC
);
AN
(
size
);
if
(
size
>
FIO_MAX
)
size
=
FIO_MAX
;
fc
=
fbo
->
fc
;
CHECK_OBJ_NOTNULL
(
fc
,
FELLOW_CACHE_MAGIC
);
...
...
@@ -3553,6 +3551,7 @@ fellow_busy_obj_getspace(struct fellow_busy *fbo, size_t *sz, uint8_t **ptr)
CHECK_OBJ_NOTNULL
(
fbo
->
fc
,
FELLOW_CACHE_MAGIC
);
CHECK_OBJ_NOTNULL
(
fbo
->
fc
->
tune
,
STVFE_TUNE_MAGIC
);
max
=
(
size_t
)
1
<<
fbo
->
fc
->
tune
->
chunk_exponent
;
assert
(
max
<=
FIO_MAX
);
/*
* for content-length, varnish-cache will ask for less and less.
...
...
src/tbl/fellow_tunables.h
View file @
d3709fa4
...
...
@@ -40,7 +40,7 @@ TUNE(float, logbuffer_flush_interval, 2.0, 0.0, FLT_MAX);
TUNE
(
float
,
log_rewrite_ratio
,
0
.
5
,
0
.
001
,
FLT_MAX
);
// reserve chunk is the larger of chunk_exponent and result from logbuffer size
TUNE
(
unsigned
,
chunk_exponent
,
20
/* 1MB*/
,
12
/* 4KB */
,
28
/* 256M
B */
);
TUNE
(
unsigned
,
chunk_exponent
,
20
/* 1MB*/
,
12
/* 4KB */
,
30
/* 1G
B */
);
TUNE
(
uint8_t
,
wait_table_exponent
,
10
,
6
,
32
);
TUNE
(
unsigned
,
dsk_reserve_chunks
,
4
,
2
,
UINT_MAX
);
TUNE
(
unsigned
,
mem_reserve_chunks
,
1
,
0
,
UINT_MAX
);
...
...
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