Memory check

  • Follow


please tell me if i can check how much system memory is consumed while doing the hash calculation of image.by which method i can do that without using Whos.
0
Reply fiza 7/7/2010 4:38:06 PM

"fiza khalid" <princess.2050@hotmail.com> wrote in message <i12ahe$eu$1@fred.mathworks.com>...
> please tell me if i can check how much system memory is consumed while doing the hash calculation of image.by which method i can do that without using Whos.

Which operating system you are using matlab with
0
Reply kk 7/7/2010 4:50:08 PM


fiza khalid wrote:
> please tell me if i can check how much system memory is consumed while 
> doing the hash calculation of image.by which method i can do that 
> without using Whos.

 >> tic;sum(1:1000);toc
Elapsed time is 0.000040 seconds.
 >> tic;sum(1:1000);toc
Elapsed time is 0.000039 seconds.
 >> tic;sum(1:1000);toc
Elapsed time is 0.000044 seconds.
 >> tic;sum(1:1000);toc
Elapsed time is 0.000037 seconds.
 >> tic;sum(1:1000);toc
Elapsed time is 0.000041 seconds.

Given the above runs, can you define how much system _time_ is consumed to run 
the sum? Would you take the minimum time, the maximum time, the mean time, the 
median time? And if the numbers had not happened to be sequential, would that 
change the time? If there is a inf in the numbers, would that change the time? 
If there is a nan in the numbers, would that change the time?


Now taking into account that Matlab can share variables, that the Matlab 
optimizer is morally entitled to delete variables that it can prove are no 
longer required, and that Matlab can reuse space from a cleared variable, then 
how would you _define_ "how much system memory is consumed" while running 
something?

I think you will find that there is no good definition for the quantity you 
believe you wish to measure. Especially if Java is being called to do some of 
the work.
0
Reply roberson (2852) 7/7/2010 6:48:34 PM

2 Replies
240 Views

(page loaded in 0.031 seconds)

Similiar Articles:













7/9/2012 10:02:01 AM


Reply: