Repository navigation
feat: 降低可恢复 native 执行开销 - #366
Closed
carsontung666 wants to merge 5 commits into
Closed
carsontung666 wants to merge 5 commits into
carsontung666 wants to merge 5 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
可选标量 RWIR native。默认解释器不变。
每条指令仍从 KVSpace 读 PC 和操作数,提交 redo,写回状态和 PC,再清 redo。缓存只存地址,且只开在有回边的函数上。PC、值、常量、递归帧留在 KVSpace。
Xeon Gold 6418H,GCC 14.3,CPython 3.10.12。中位毫秒,含 redo,不含编译、初始化、attach、报告。加速比 = before / after。
after 相对 Python:iops 1.12x,nqueens 0.96x,fib 0.65x。只覆盖 int64/bool 标量 SHM,固定映射,单写者。方法和原始数据见 fast.md。
864 次输出一致,108 组最终 KV 字节相同。七种模式各 149 项(32 次边界重启、24 次 SIGKILL),另有 49 次跨模式恢复。codec 在 GCC O3 与 Clang ASan/UBSan 下各 16,955,522 次比较通过。原 AOT 二进制不变。attach、初始化、报告,以及每条指令 Get 分配器在 owner 死亡时的原有失败,不在本次恢复范围内。