swtv-kaist / cs458-fall22

1 stars 0 forks source link

[HW5-4] Measuring memory usage with top? #8

Closed retroinspect closed 1 year ago

retroinspect commented 1 year ago

I wonder what is it mean by measuring memory usage with top.

top shows instant virtual memory usage and memory usage rate, but it soonly disappears as the process(cbmc) terminates.

I tried to utilize other softwares such as valgrind, but it seems not possible to setup the tools without sudo permission.

ahcheongL commented 1 year ago

You can try grep ^VmPeak /proc/<process id>/status

moonzoo commented 1 year ago

Or you can try top -d 0.1| grep cbmc > mem_usage.txt where -d N indicates update frequency in second.