Results 1 to 2 of 2
Hello, I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C. I need to find the total memory ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-22-2010 #1
- Join Date
- Sep 2010
How to find total memory usage of a program?
I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?
Also, how can I find the total turnaround time of my programs?
Any help would be appreciated, thanks in advance.
- 09-23-2010 #2
To find total memory usage of a program you put these comands on terminal
[ved@localhost ~]$ freeCode:
[ved@localhost ~]$ cat /proc/meminfo
i think it help