You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requested feature: As of #1247, Kani reports the runtime of the verification step. It would be useful to also report memory usage to aid with performance comparisons.
I've been incorrectly using /usr/bin/time --verbose, but found out that the memory usage it reports does not include the child processes (e.g. CBMC).
I observed memory usage in htop reaching 4445 MB (Virtual) and 4100 (Resident), but time only reported 134 MB:
Command being timed: "kani push_string.rs"
User time (seconds): 1.82
System time (seconds): 0.22
Percent of CPU this job got: 2%
Elapsed (wall clock) time (h:mm:ss or m:ss): 1:17.34
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 133996
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 70065
Voluntary context switches: 704
Involuntary context switches: 4
Swaps: 0
File system inputs: 48
File system outputs: 17696
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
Activity
zhassan-aws commentedon Sep 13, 2022
For example, if I run the following program with Kani:
using:
/usr/bin/time --verbose kani push_string.rsI observed memory usage in
htopreaching 4445 MB (Virtual) and 4100 (Resident), buttimeonly reported 134 MB:zhassan-aws commentedon Sep 13, 2022
For the record, this is a patch I'm using locally to measure memory usage:
This doesn't work on macOS though.
tedinski commentedon Sep 13, 2022
Programmatic tools are APIs like
wait4maybe https://github.com/lu-zero/wait4-rs