You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run 25504956103, job SYSBENCH OLTP TEST 1000W (id 74893778528) failed with exit code 1, but the direct cause is one CN pod getting OOMKilled by cgroup, not a sysbench assertion.
Memory limit = 55 GB, working_set peak = 50.04 GB (91%), held at this level for ~4 min then SIGKILLed around 21:43:52Z
Timeline:
21:40:53Z — logtail.consumer.slow.send.table.log.tail / slow.update.time with signal-chan-len growing past 7000 within seconds (200 hits clustered in a short burst)
21:43:22Z — sysbench starts 100-thread insert ignore into sbtest1..10
malloc:inuse_space (mpool off-heap) — overwhelmingly concentrated in two paths:
self
%
function
175.6 GB
46.1%
mpool.(*MPool).reAllocWithDetailK
170.2 GB
44.7%
malloc.(*MetricsAllocator).Allocate
Cross-pod comparison (same window, same profile type):
pod
memory peak
malloc peak
sqvxb (OOM)
5.58 GB
23.58 GB
tp-cn-456bp
6.88 GB
17.40 GB
tp-cn-rzv2z
4.75 GB
15.32 GB
dn-0
8.64 GB
7.07 GB
Only sqvxb's mpool peak exceeds the other CNs by 35-55%; Go heap is not the differentiator.
Regression onset — not a new flake
Counted two Loki signals across the last 8 Main Nightly runs in the same nightly window (logtail.consumer.slow and MergeExecutorEvent-PauseDueToOOMAlert):
date
matrixone HEAD
sysbench 1000W
logtail.slow
PauseOOMAlert
4/30
6a03940e2
SUCCESS
0
0
5/1
d67ff7ca4
failure
0
0
5/2
7985f0213
failure
0
0
5/3
9e1f4059e
SUCCESS
0
0
5/4
5942ae875
failure
2420
7885
5/5
502bba205
failure
5742
7201
5/6
b1e35e017
failure
6326
6927
5/7 (this issue)
dc98e3d3a
failure
5782
6881
Both signals were identically zero through 5/3 and jumped to thousands on 5/4, then stayed elevated. The regression window narrows to 9e1f4059e..5942ae875 on main — only 2 commits:
PR #24268 adds per-batch CNMemoryThrottler.Acquire in insert.ToWriteS3 with a retry path through flushS3WriterOnMemoryPressure when memory is denied. The retry path calls SyncAndFillBlockInfoBat + Append, which is exactly the chain that allocates through vector.NewVecFromReuse → objectio.LoadObjectMetaByExtent / ReadBloomFilter — matching the top of sqvxb's flame graph (34.5% Go heap + 46.1% mpool reAllocWithDetailK).
Under 100-concurrent insert ignore, many workers hit throttler denial simultaneously, each triggering the sync-flush-and-retry cycle; this amplifies mpool realloc churn and explains the reAllocWithDetailK concentration observed here.
PauseDueToOOMAlert itself predates the regression (introduced by #23532 on 4/17 in pkg/vm/engine/tae/db/merge/scheduler.go), but its trigger rc.Available() < 500MB is only reached when CN RSS stays high — which #24268's new reservation path is doing here.
Modifies aggregation kernels (sum_decimal_fast.go, count2.go, sumavg2.go) plus the shared pkg/container/vector/tools.go. The sysbench insert ignore path does not use aggregation, but the vector/tools.go change affects MustFixedColAsSlice semantics which could indirectly change allocator behavior in the same flame chain. Lower probability.
Activity
Ariznawlll commentedon May 8, 2026
Ariznawlll commentedon May 8, 2026
1000w insert ignore 100 并发压力下,CN sqvxb 的 logtail 消费积压触发 objectio 元数据和 bloom filter 的大量重读/重载,mpool 反复 realloc 进入无节制扩张,突破 55GB limit 被 cgroup OOMKill。 可拆成三层:
和 issue 标题"oom"匹配。不是 Go heap 泄漏,是 mpool 高峰 × logtail 消费卡住共同效应。
Pitfalls 核对
⦁本次 last_terminated_reason=OOMKilled (cgroup 杀),不是 Go runtime fatal error ,所以 Loki 搜 fatal error: out of memory 是 0 命中(正常)
⦁malloc peak 是 self 累积值(25GB nonzero peak + flame self 380GB 分布),不等于瞬时 mpool 驻留;但 reAllocWithDetailK 46% 占比表明反复 realloc,是典型的 mpool 扩张病理
建议排查方向
VioletQwQ-0 commentedon May 8, 2026
Triage summary
Run
25504956103, jobSYSBENCH OLTP TEST 1000W(id74893778528) failed withexit code 1, but the direct cause is one CN pod getting OOMKilled by cgroup, not a sysbench assertion.OOM pod and timing
mo-main-commit-dc98e3d3a-20260507nightly-regression-dis-tp-cn-sqvxb(CN, TP CNSet)kube_pod_container_status_last_terminated_reason = OOMKilled, restart count = 1logtail.consumer.slow.send.table.log.tail/slow.update.timewithsignal-chan-lengrowing past 7000 within seconds (200 hits clustered in a short burst)insert ignoreintosbtest1..10Communications link failure(5s read timeout)connection reset by peer→ sqvxb terminated; new container starts at 1.5 GB working_setRESULT: FAILED, exit 1Profile evidence at OOM (
service_name="$NS/main", pod=sqvxb, ±2min)memory:inuse_space(Go heap) — top self-bytes:objectio.ReadBloomFiltercontainer/vector.NewVecFromReuseobjectio.LoadObjectMetaByExtentio.ReadAlldisttae/logtailreplay.(*PartitionState).HandleRowsInsertpb/api.(*Vector).Unmarshaltidwall/btree.(*BTreeG).copymalloc:inuse_space(mpool off-heap) — overwhelmingly concentrated in two paths:mpool.(*MPool).reAllocWithDetailKmalloc.(*MetricsAllocator).AllocateCross-pod comparison (same window, same profile type):
Only sqvxb's mpool peak exceeds the other CNs by 35-55%; Go heap is not the differentiator.
Regression onset — not a new flake
Counted two Loki signals across the last 8 Main Nightly runs in the same nightly window (
logtail.consumer.slowandMergeExecutorEvent-PauseDueToOOMAlert):6a03940e2d67ff7ca47985f02139e1f4059e5942ae875502bba205b1e35e017dc98e3d3aBoth signals were identically zero through 5/3 and jumped to thousands on 5/4, then stayed elevated. The regression window narrows to
9e1f4059e..5942ae875on main — only 2 commits:e77130bea(5/3 16:47Z) — perf(agg): local accumulator with deferred scatter for BatchFill/BatchMerge #24260perf(agg): local accumulator with deferred scatter for BatchFill/BatchMerge5942ae875(5/4 12:19Z) — fix: throttle CN S3 writes under memory pressure #24268fix: throttle CN S3 writes under memory pressureVerified 5/3 SUCCESS run actually built HEAD
9e1f4059eand 5/4 failure run built5942ae875via each run's BUILD jobgit log -1 --format='%H'line.Prime suspect: #24268
PR #24268 adds per-batch
CNMemoryThrottler.Acquireininsert.ToWriteS3with a retry path throughflushS3WriterOnMemoryPressurewhen memory is denied. The retry path callsSyncAndFillBlockInfoBat+Append, which is exactly the chain that allocates throughvector.NewVecFromReuse→objectio.LoadObjectMetaByExtent/ReadBloomFilter— matching the top of sqvxb's flame graph (34.5% Go heap + 46.1% mpoolreAllocWithDetailK).Under 100-concurrent
insert ignore, many workers hit throttler denial simultaneously, each triggering the sync-flush-and-retry cycle; this amplifies mpool realloc churn and explains thereAllocWithDetailKconcentration observed here.PauseDueToOOMAlertitself predates the regression (introduced by #23532 on 4/17 inpkg/vm/engine/tae/db/merge/scheduler.go), but its triggerrc.Available() < 500MBis only reached when CN RSS stays high — which #24268's new reservation path is doing here.Secondary suspect: #24260
Modifies aggregation kernels (
sum_decimal_fast.go,count2.go,sumavg2.go) plus the sharedpkg/container/vector/tools.go. The sysbenchinsert ignorepath does not use aggregation, but thevector/tools.gochange affectsMustFixedColAsSlicesemantics which could indirectly change allocator behavior in the same flame chain. Lower probability.Not suspected (b1e35e0..502bba2 range)
The 4 commits between
502bba205andb1e35e017do not fit:fix(join): deduplicate MARK JOIN probe rows— MARK JOIN only, not oninsert ignorepathtest(tpcds): remove stale BVT issue tag— test file only, 0 code changesperf(compile): reduce GC pressure in ConvertOperatorToPhyOperator— runs only for EXPLAIN ANALYZE post-executionfeat(plan): support range queries on secondary indexes— plan rewrite for>/</BETWEENon indexed columns; sysbench prepare is PK-onlyAnd the regression was already present on
502bba205(5/5 run: logtail.slow=5742, PauseOOMAlert=7201), so first-introduction is outside this window.Suggested verification
9e1f4059e(last SUCCESS HEAD) directly — should show logtail.slow / PauseOOMAlert both at 0. Establishes a clean baseline.fix(plan): prevent OOM from non-selective secondary index range scans (…
fix(plan): prevent OOM from non-selective secondary index range scans (…
fix(insert): limit concurrent S3 flushes under memory pressure to pre…
fix(objectio): add singleflight dedup to meta/bloom filter cache load…
fix(group): free existing mpool in Prepare() to prevent leak on opera…
fix(group): free existing mpool in Prepare() to prevent leak on opera…
jiangxinmeng1 commentedon May 11, 2026
fixed by #24309
Ariznawlll commentedon May 11, 2026
修复了