English 中文(简体)
• 采用适当方法进行高额读取?
原标题:Correct way to cap Mathematica memory use?

在32个轨道操作系统下,如果分配给任何一个方案的最高记忆有限,那么数学就可笑地终止了梯子,并留下了最大的记忆分配错误。

然而,在64轨道上,数学将自由使用所有现有记忆,使该系统停止运行。 因此,打字记忆的用法是什么? 可以使用<代码>。 记忆栏/代码与<代码>前或<>代码>合并,但我不会将其中任一目标联系起来,也不必修改现有的用途,以纳入这一职能。

在全球范围限制记忆使用还有另一种方式,例如刻板旗,还是系统用美元?

最佳回答

http://www.em.matica/em。 8位你们可以开始记忆监测,其行文如下:

maxMemAllowed        = 15449604;
intervalBetweenTests = 1; (*seconds*)
iAmAliveSignal       = 0;
Dynamic[iAmAliveSignal]
RunScheduledTask[
       If[MemoryInUse[] > maxMemAllowed , Quit[], iAmAliveSignal++],      
       intervalBetweenTests];

罢免

RemoveScheduledTask[ScheduledTasks[]];

a. 残疾。

www.un.org/esa

You may alert or interactively decide what to do before quitting. As requested, here is a trial with 1.3GB allocated. I can t go much further than that in this machine.

maxMemAllowed = 1.3 1024^3; (*1.3 GB*)
intervalBetweenTests = 1; (*Seconds*)
iAmAliveSignal = 0;
leyendToPrint = "";
Dynamic[leyendToPrint]
RunScheduledTask[
  If[MemoryInUse[] > maxMemAllowed, 
   CreateDialog[CancelButton["Max Mem Reached", DialogReturn[]]]; 
   Quit[],
   Print["Memory in use: ", MemoryInUse[]]; 
   leyendToPrint = 
    "Seconds elapsed = " <> ToString[iAmAliveSignal++]], 
  intervalBetweenTests];
IntegerPartitions[320, {15}];

“entergraph

问题回答

暂无回答




相关问题
How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

What should I load into memory when my app loads?

I have objects I am saving to the file system using serialization. When I load the app, should I load all the objects into memory or just stubs (for searching capabilities)? If I load just stubs, ...

Data Destruction In C++

So, for class I m (constantly re-inventing the wheel) writing a bunch of standard data structures, like Linked Lists and Maps. I ve got everything working fine, sort of. Insertion and removal of ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

View ram in DOS

Is there a way in dos (im using a dos boot disk on a linux machine) to view portions of ram? ie. some form of command to read the binary at a given address? edit: my bootable floppy doesnt have ...

does argument in printf get located in memory?

in c, when I write: printf("result %d ",72 & 184); Does "72 & 184" get a a block in memory (for example 72 takes 4 bytes, 184 takes 4 bytes?...)

热门标签