• Joined on 2026-04-07
dailz closed issue dailz/logViewer#39 2026-06-05 16:25:39 +08:00
🟡 [M19] benchmark report variant 列顺序依赖输入顺序
dailz commented on issue dailz/logViewer#39 2026-06-05 16:25:15 +08:00
🟡 [M19] benchmark report variant 列顺序依赖输入顺序

已修复,提交 a8b64e7。

修改内容:

  1. Latency 表列顺序 — variants 去重改用直接 tuple 比较取代 format! 字符串比较,构建后 sort() 确保稳定字典序
  2. Memory 段行顺序 — 按 (test_name,…
dailz closed issue dailz/logViewer#38 2026-06-05 15:52:31 +08:00
🟡 [M18] reset_vm_hwm 非权限错误被吞导致内存峰值污染无提示
dailz commented on issue dailz/logViewer#38 2026-06-05 15:52:23 +08:00
🟡 [M18] reset_vm_hwm 非权限错误被吞导致内存峰值污染无提示

修复方案

commit e945a35

变更内容

runner.rs

  • 所有 reset_vm_hwm() 错误现在都会输出 warning(不再仅限 PermissionDenied
  • PermissionDenied 保留 "Try running as root" 专属提示 -…
dailz pushed to master at dailz/logViewer 2026-06-05 15:52:08 +08:00
e945a357f7 fix(bench): warn on all reset_vm_hwm errors, not just PermissionDenied
dailz commented on issue dailz/logViewer#37 2026-06-05 15:21:54 +08:00
🟡 [M17] bench --suites 拼写错误会静默运行 0 个套件

修复方案

按照 Oracle 推荐的类型驱动方案实施:引入 Suite 枚举替代字符串匹配。

改动

runner.rs

  • 新增 Suite 枚举,覆盖全部 7 个合法 suite
  • FromStr 实现:无效名称返回错误信息并列出全部合…
dailz closed issue dailz/logViewer#37 2026-06-05 15:20:34 +08:00
🟡 [M17] bench --suites 拼写错误会静默运行 0 个套件
dailz pushed to master at dailz/logViewer 2026-06-05 15:20:34 +08:00
fb57584546 fix(bench): validate --suites names, reject unknown suites at CLI boundary
dailz commented on issue dailz/logViewer#36 2026-06-05 14:58:23 +08:00
🔴 [H3] scroll_during_append 使用过期 PreadReader 导致增长文件 benchmark 失真

修复方案

根因: PreadReaderCoreopen_raw 时一次性构建 LineIndexfile_sizetotal_lines 之后永不更新。get_line_implidx >= total_lines 直接返回 None,导致 benchmark…

dailz pushed to master at dailz/logViewer 2026-06-05 14:40:44 +08:00
9baec5ab69 fix(bench): refresh PreadReader index periodically in scroll_during_append (closes #36)
6dd87d2872 fix(bench): wrap file writes with BufWriter to reduce syscall overhead
Compare 2 commits »
dailz closed issue dailz/logViewer#36 2026-06-05 14:40:44 +08:00
🔴 [H3] scroll_during_append 使用过期 PreadReader 导致增长文件 benchmark 失真
dailz closed issue dailz/logViewer#35 2026-06-05 14:02:16 +08:00
🔴 [H4] 大文件生成未使用 BufWriter 导致 benchmark 数据准备极慢
dailz commented on issue dailz/logViewer#35 2026-06-05 14:02:10 +08:00
🔴 [H4] 大文件生成未使用 BufWriter 导致 benchmark 数据准备极慢

Fixed in 6dd87d2.

Root cause: writeln! directly on raw File — each line (~70 bytes) triggered a separate write syscall.

Fix: Wrapped all three write-heavy functions with BufWriter::with_capacity…

dailz pushed to master at dailz/logViewer 2026-06-05 13:34:10 +08:00
83f633a562 fix(bench): make can_reset_vm_hwm side-effect-free with open probe (closes #34)
dailz closed issue dailz/logViewer#34 2026-06-05 13:34:10 +08:00
🔴 [H2] can_reset_vm_hwm 查询权限时会重置 VmHWM 污染内存峰值
dailz commented on issue dailz/logViewer#33 2026-06-05 13:22:21 +08:00
🔴 [H1] mmap SIGBUS handler 并发安装会写 static mut 导致 UB

修复方案

经 Oracle 审核后采用 Once + 原始原子变量 方案,消除 static mut UB。

核心改动 (crates/bench/src/mmap_reader.rs)

dailz closed issue dailz/logViewer#33 2026-06-05 13:22:10 +08:00
🔴 [H1] mmap SIGBUS handler 并发安装会写 static mut 导致 UB
dailz pushed to master at dailz/logViewer 2026-06-05 13:22:10 +08:00
dad5f5a635 fix(bench): eliminate SIGBUS handler static mut UB with Once + raw atomics (closes #33)
dailz opened issue dailz/logViewer#43 2026-06-05 11:54:15 +08:00
🟡 [M24] memory scroll_rss 的 lines_read 记录值不等于实际读取行数
dailz opened issue dailz/logViewer#41 2026-06-05 11:54:15 +08:00
🟡 [M22] cold startup benchmark 因 clear_file_cache 失败被静默跳过