MemoryInUse[] differs from System report
- To: mathgroup at smc.vnet.net
- Subject: [mg55055] MemoryInUse[] differs from System report
- From: "ChiCong" <chicong.v at gmail.com>
- Date: Fri, 11 Mar 2005 04:20:30 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello,
I think that I've found a bug about MemoryInUse[]. If I am wrong please
tell me.
Thank you in advance for your support!
I am running Mathematica 5.1.1 for Linux x86 (64 bit) (January 30,
2005) on SuSE Linux 9.2. The CPU is AMD Opteron Processor 850. Kernel
version is 2.6.5-7.139-smp.
After a lot of heavy computation, Mathematica says that its memory
usage is as follow:
In[38]:= N[{MemoryInUse[],MaxMemoryUsed[]}/2^20]
Out[38]:= {41.3403, 1047.04}
However, using the top command shows that Mathematica is using about
3GB of memory. What's more is that Mathematica doesn't release the
memory even when I try:
Share[];
$HistoryLength=10;
$RecursionLimit=100;
Can you explain me how can Mathematica says that it is using only
41.3403 MB, while in fact it is using about 3GB? And is there any
workarround?
Cong
--
vo.chi.Cong at is.titech.ac.jp
Tokyo Institute of Technology
Dept. of Math. & Info. Sciences
Masakazu Kojima Laboratory, D2