========== 1. 打开数据库 ========== 表创建/打开成功 ========== 2. 插入 200000 行 (禁用防抖, 仅脏页阈值触发) ========== [DEBUG] Header: TablePage=2 NextFreePage=147 FreePageStart=0 FirstWAL=0 LastWAL=0 NextTxn=1 [DEBUG] BufferPool: total=145 dirty=145 [ 20000行] Alloc=5.3MB Total=3132.5MB 耗时=0.6s [DEBUG] Header: TablePage=2 NextFreePage=286 FreePageStart=0 FirstWAL=0 LastWAL=0 NextTxn=1 [DEBUG] BufferPool: total=284 dirty=284 [ 40000行] Alloc=9.1MB Total=6304.1MB 耗时=1.0s [DEBUG] Header: TablePage=2 NextFreePage=425 FreePageStart=0 FirstWAL=0 LastWAL=0 NextTxn=1 [DEBUG] BufferPool: total=423 dirty=423 [ 60000行] Alloc=12.8MB Total=9474.5MB 耗时=1.5s [DEBUG] Header: TablePage=2 NextFreePage=1003 FreePageStart=563 FirstWAL=0 LastWAL=0 NextTxn=2 [DEBUG] BufferPool: total=65 dirty=65 [ 80000行] Alloc=3.2MB Total=12678.7MB 耗时=2.1s [DEBUG] Header: TablePage=2 NextFreePage=1003 FreePageStart=703 FirstWAL=0 LastWAL=0 NextTxn=2 [DEBUG] BufferPool: total=205 dirty=205 [100000行] Alloc=7.0MB Total=15853.9MB 耗时=2.6s [DEBUG] Header: TablePage=2 NextFreePage=1003 FreePageStart=842 FirstWAL=0 LastWAL=0 NextTxn=2 [DEBUG] BufferPool: total=344 dirty=344 [120000行] Alloc=13.5MB Total=19027.1MB 耗时=3.1s [DEBUG] Header: TablePage=2 NextFreePage=1003 FreePageStart=980 FirstWAL=0 LastWAL=0 NextTxn=2 [DEBUG] BufferPool: total=482 dirty=482 [140000行] Alloc=15.2MB Total=22199.3MB 耗时=3.5s [DEBUG] Header: TablePage=2 NextFreePage=1499 FreePageStart=1119 FirstWAL=0 LastWAL=0 NextTxn=3 [DEBUG] BufferPool: total=125 dirty=125 [160000行] Alloc=5.0MB Total=25407.0MB 耗时=4.2s [DEBUG] Header: TablePage=2 NextFreePage=1499 FreePageStart=1259 FirstWAL=0 LastWAL=0 NextTxn=3 [DEBUG] BufferPool: total=265 dirty=265 [180000行] Alloc=10.7MB Total=28581.2MB 耗时=4.7s [DEBUG] Header: TablePage=2 NextFreePage=1499 FreePageStart=1397 FirstWAL=0 LastWAL=0 NextTxn=3 [DEBUG] BufferPool: total=403 dirty=403 [200000行] Alloc=15.3MB Total=31753.8MB 耗时=5.1s 插入完成: 耗时=5.1s, Alloc=7.4MB ========== 3. 手动 Commit ========== Commit 耗时: 0.1s ========== 4. 验证行数 ========== 当前行数: 200000 (期望 200000) ✅ 行数正确 ========== 5. 关闭 → 重开验证 ========== 重开后行数: 200000 (期望 200000) ✅ 数据完整持久化 ========== 6. 抽查数据 ========== Row#1: Name=user_0 Age=20 Score=0 Dept=dept_0 Row#200000: Name=user_199999 Age=69 Score=999 Dept=dept_9 ========== 总结 ========== 最终 Alloc=1.9MB, TotalAlloc=32012.8MB 插入耗时: 5.1s 脏页阈值: 10000 页 (≈156MB) ✅ 内存控制良好 (< 200MB), 脏页阈值生效!