Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6113

Where are all my "memories" gone?

From Patrick Scheibe <pscheibe@trm.uni-leipzig.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Where are all my "memories" gone?
Date 2011-11-02 11:25 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j8r9c7$3ig$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi,

I have a bit of a delicate problem here. On a fresh kernel this

data = Table[RandomInteger[{0, 255}], {i, 100*2^20}];
ByteCount[data]/2.^20

results in exactly 400MB. My resource-manager of the operating system
confirms it by telling me the MathKernel occupies 422MB of memory.

In real life, I'm working with tif-images stacks. I only import the
underlying data and not the images itself.

path = "/long/path/to/aLargeImage.tif";
data = Import[path, "Data"];
ByteCount[data]/2.^30

tells me 3.88GB which seems reasonable since the tif is about 2.0GB on
the drive. What does *not* look reasonable is, that Mathematica occupies
now 9.7GB of my memory and it doesn't seem to know:

In[4]:= {MemoryInUse[], MemoryInUse[$FrontEnd]}/2.^30

Out[4]= {3.9044, 0.0000874288}

Can anyone give any useful information?

Cheers
Patrick

My OS is:
Linux-x86-64
Ubuntu 10.04




Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Where are all my "memories" gone? Patrick Scheibe <pscheibe@trm.uni-leipzig.de> - 2011-11-02 11:25 +0000
  Re: Where are all my "memories" gone? Vince Virgilio <blueschi@gmail.com> - 2011-11-10 12:10 +0000

csiph-web