I seem to have loads of free RAM even though my script is taking 10 minutes to run

1 次查看(过去 30 天)
I seem to have loads of free RAM even though my script is taking 10 minutes to run. I have a MacBook Pro i7 with 8GB of RAM and I use a small app called 'Memory Freer' to free up inactive memory. It shows how much RAM is wired/available/free/inactive. I have a script which has different options for the length of one of the variables, N, and I'd like to try out a few of the longer ones, but above a certain length, N, it starts to take my computer upwards of 2 minutes to do it. While this is happening, Memory Freer still says that there's over 4 GB of free RAM. How do I make Matlab use this RAM?
I've looked at the Java memory option in preferences, but that only lets you give it up to 256 MB.
Any help would be great.
  1 个评论
Matt Fig
Matt Fig 2012-11-2
Tom's question
I seem to have loads of free RAM even though my script is taking 10 minutes to run. I have a MacBook Pro i7 with 8GB of RAM and I use a small app called 'Memory Freer' to free up inactive memory. It shows how much RAM is wired/available/free/inactive. I have a script which has different options for the length of one of the variables, N, and I'd like to try out a few of the longer ones, but above a certain length, N, it starts to take my computer upwards of 2 minutes to do it. While this is happening, Memory Freer still says that there's over 4 GB of free RAM. How do I make Matlab use this RAM?
I've looked at the Java memory option in preferences, but that only lets you give it up to 256 MB.
Any help would be great.

请先登录,再进行评论。

采纳的回答

Bjorn Gustavsson
Bjorn Gustavsson 2012-4-5
Well, then it seems as if memory is not the limiting factor for the performance of your algorithm, maybe CPU-time/cycles are what start adding up for larger N. So maybe your algorithm is O(N^m) (or worse?) with m larger than 1, perhaps even larger than 3?
It is a bit difficult to have a more detailed opinion given amount of information.
HTH

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Performance and Memory 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by