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 ...
- 09-22-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 1
How to find total memory usage of a program?
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 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
Code:[ved@localhost ~]$ free
Code:[ved@localhost ~]$ cat /proc/meminfo
i think it help


Reply With Quote