diff options
author | dormando <dormando@rydia.net> | 2018-05-22 18:06:21 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-05-22 19:26:28 -0700 |
commit | 91102e15c86c5ed7010670a58f151734a196cc11 (patch) | |
tree | 78840c57b63d8b2ca033c2071c0f7bd86ab87e3d /t/binary-extstore.t | |
parent | f939a8468cb4b9a219a1a34cdcef5338a8b84a77 (diff) | |
download | memcached-91102e15c86c5ed7010670a58f151734a196cc11.tar.gz |
alignment and 32bit fixes for extstore
memory alignment when reading header data back.
left "32" in a few places that should've at least been a define, is now
properly an offsetof. used for skipping crc32 for dynamic parts of the item
headers.
Diffstat (limited to 't/binary-extstore.t')
-rwxr-xr-x | t/binary-extstore.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/binary-extstore.t b/t/binary-extstore.t index 390e26a..5951740 100755 --- a/t/binary-extstore.t +++ b/t/binary-extstore.t @@ -176,7 +176,12 @@ $set->('x', 10, 19, "somevalue"); $set->("mfoo$_", 0, 19, $value); } sleep 4; - $empty->('mfoo1'); + # FIXME: Need to sample through a few values, or fix eviction to be + # more accurate. On 32bit systems some pages unused to this point get + # filled after the first few items, then the eviction algo pulls those + # pages since they have the lowest version number, leaving older objects + # in memory and evicting newer ones. + $empty->('mfoo500'); my %s = $mc->stats(''); cmp_ok($s{extstore_objects_evicted}, '>', 0); |