mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #282] Compare Terminal-Bench 2.1 runtime and memory: AENV vs Docker #76
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yingdi-shan on GitHub (Sep 13, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/282
Workload runtime and memory comparison
This records the runtime and memory consumption of the same ten Terminal-Bench 2.1 workloads using the previous aenv configuration, tuned aenv configuration, and Docker.
Conditions
--cpuset-cpus), images pre-pulled, with host C6 disabled during measurement.Runtime
The arithmetic mean is 39.26 s for previous aenv and 36.80 s for Docker. Short workloads are dominated by container or guest startup overhead; the longer workloads are generally faster in Docker in this run.
Memory consumption
The aenv columns retain the average occupied memory from #281: guest
MemTotal - MemFree, including guest page cache and kernel memory.Both Docker columns below come from the same fresh memory-measurement pass:
memory.current.memory.current - memory.stat[file]. This includes kernel memory charged to the container, along with anonymous memory; it is broader than process RSS. The excludedfilecounter covers filesystem cache, including tmpfs/shared memory, as defined in the kernel cgroup v2 documentation.The Docker memory pass used the same images (
alexgshaw/<task>:20251031), solution scripts, 2 GiB limit, and one pinned logical CPU per container, with all ten containers running concurrently on distinct logical CPUs and host C6 disabled. Each script ran once and exited with code 0. No swap usage or OOM kills were observed. C6 settings were restored afterward.Memory was sampled throughout each solution script, including its package installation/build steps, using a start gate and recorded completion time. The sampler requested 1 ms intervals during the first second and 20 ms afterward, and calculated time-weighted averages using actual timestamps. Container startup and waiting after completion are excluded from these memory averages. The two Docker memory columns replace the earlier coarse samples so they share the same measurement window; the runtime table above retains its original measurements.
path-tracingandregex-logonly generate source/text files in these solution scripts and finished in about 8 ms and 4 ms respectively. Their memory estimates use only three and four samples and are sensitive to sampling resolution and kernel counter batching.The accounting boundaries differ: aenv occupied memory covers the guest, while Docker values cover memory charged to the workload cgroup. Docker daemon memory and host allocations outside that cgroup are excluded.