Compare cache-disabled engines against untouched upstream
Replay identical requests and require token, known-answer, reuse, resolved-setting and comparable main-state parity. Retain the complete pooled-state diagnostic and add a completed-row fingerprint matching upstream. Add negative controls that remain active under optimized Python.
This commit is contained in:
1 parent
0fca77bfe0
commit
573bb36baa
3 files changed
+302
-2
No files matched your search
@@ -4375,6 +4375,7 @@ int main(int argc, char** argv) {
|
||||
uint64_t h_ple = hash_dev(ss.ple_hist, ss.ple_hist ? z.ple : 0, 1469598103934665603ull);
|
||||
uint64_t h_tail = 1469598103934665603ull, h_pool = h_tail, h_kv = h_tail, h_stale = h_tail;
|
||||
uint64_t h_dead = h_tail;
|
||||
uint64_t h_pool_complete = h_tail; // upstream's extent, without the moving spare row
|
||||
const int64_t kvb = qs.head_dim, scb = (qs.head_dim / 64) * 2;
|
||||
// a state's K/V arrays and their bytes per (cell, head) row: the host copy when it has one
|
||||
auto kv_arrays = [&](const strata::core::QsaState& st) {
|
||||
@@ -4402,6 +4403,7 @@ int main(int argc, char** argv) {
|
||||
const strata::core::QsaState& st = ss.qsa_states[i];
|
||||
h_tail = hash_dev(st.idx_tail, z.tail, h_tail);
|
||||
h_dead = hash_dev(st.idx_dead, z.dead, h_dead);
|
||||
h_pool_complete = hash_dev(st.idx_pooled, (size_t) (L / qs.idx_block) * qs.idx_dim * 4, h_pool_complete);
|
||||
h_pool = hash_dev(st.idx_pooled, (size_t) (L > 0 ? L / qs.idx_block + 1 : 0) * qs.idx_dim * 4, h_pool);
|
||||
// KV streaming: the host copy is the identity layout and holds every cell
|
||||
for (const auto& [pool, w] : kv_arrays(st)) {
|
||||
@@ -4419,10 +4421,11 @@ int main(int argc, char** argv) {
|
||||
return 1;
|
||||
}
|
||||
std::fprintf(stderr, "strata serve: STATE_HASH L=%lld gdn=%016llx ple=%016llx tail=%016llx pooled=%016llx "
|
||||
"kv=%016llx mtp=%016llx stale=%016llx dead=%016llx ple_prev=%d,%d\n", (long long) L,
|
||||
"kv=%016llx mtp=%016llx stale=%016llx dead=%016llx pooled_complete=%016llx ple_prev=%d,%d\n", (long long) L,
|
||||
(unsigned long long) h_gdn, (unsigned long long) h_ple, (unsigned long long) h_tail,
|
||||
(unsigned long long) h_pool, (unsigned long long) h_kv, (unsigned long long) h_mtp,
|
||||
(unsigned long long) h_stale, (unsigned long long) h_dead, ss.ple_prev[0], ss.ple_prev[1]);
|
||||
(unsigned long long) h_stale, (unsigned long long) h_dead,
|
||||
(unsigned long long) h_pool_complete, ss.ple_prev[0], ss.ple_prev[1]);
|
||||
}
|
||||
const int64_t req_hits = drive.d.cache_hits - decode_hits0;
|
||||
const int64_t req_look = (drive.d.cache_hits + drive.d.cache_admitted + drive.d.cache_refused) - decode_look0;
|
||||
|
||||
Reference in new issue
Block a user