Skip to content

perf(tfork): use in-process nftables network locking- #10 - #6

Open
yiying-zhang wants to merge 59 commits into
mainfrom
perf/tfork-nftables-lock
Open

perf(tfork): use in-process nftables network locking- #10#6
yiying-zhang wants to merge 59 commits into
mainfrom
perf/tfork-nftables-lock

Conversation

@yiying-zhang

Copy link
Copy Markdown
Collaborator

Summary

  • add --network-lock={iptables,nftables,skip} to crun tfork;
  • expose --tfork-network-lock={iptables,nftables} in Podman live clone;
  • default Podman tfork to CRIU's in-process nftables backend;
  • retain iptables as an explicit compatibility fallback;
  • reject skip in Podman's higher-level live-clone API; and
  • add interleaved backend benchmarks plus a live-listener safety smoke test.

This changes the lock mechanism without weakening the packet-consistency
contract.

Performance

At exactly 100 processes, the measured critical-path medians were:

  • network lock: 7.882 ms to 2.299 ms;
  • network unlock: 59.298 ms to 12.629 ms;
  • paired combined saving: 51.352 ms (52.150 ms mean).

Validation

  • source and clone listeners both served after live clone;
  • unsafe skip was rejected without harming the source;
  • no stale CRIU nftables table remained;
  • source/clone filesystem divergence passed;
  • combined integration with transactional cleanup and futex Phase B passed.

Merge order

Merge fix/tfork-transactional-cleanup first.

yiying-zhang and others added 30 commits July 10, 2026 23:44
Stabilize live tfork source freezing
yiying-zhang and others added 29 commits July 17, 2026 22:25
…-main

Stabilize single-copy tfork clone path
Rewrite tclone setup for Gensee Crate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants