Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Where are all my "memories" gone?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122796] Re: Where are all my "memories" gone?
  • From: Vince Virgilio <blueschi at gmail.com>
  • Date: Thu, 10 Nov 2011 06:56:42 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j8r9c7$3ig$1@smc.vnet.net>
  • Reply-to: comp.soft-sys.math.mathematica at googlegroups.com

Happens to me frequently, as long as I can remember. I have found a persistent disparity between the host OS (Windows XP or 7) resource monitor and Mathematica's report of similar via MemoryInUse[]. Sometimes the disparity is very large, other times it is not. The host report matters most to me, since I often share other users' desktop CPU and memory via gridMathematica.

I certainly do not know how to reduce Mathematica's total memory footprint to align it with what MemoryInUse[] gives. Seems like a deep problem that WRI should address. Perhaps they're being lazy with their caches.

Rather, knowledge is power. My workaround on Windows is to make an external call to "typeperf" from within Mathematica. Such as the following. It's not Linux, but the idea might help.

counters =
  "\"\\\\" <> # <>
      "\\Memory\\Available Bytes\" " & /@ {"your host1 name here",
     "your host2 name here", "etc"} // StringJoin;
free = ReadList["!typeperf " <> counters <> "-sc 1",
     Word, RecordLists -> True, WordSeparators -> {","}][[2, 2 ;;]] //
    ToExpression // ToExpression

Vince Virgilio



  • Prev by Date: Re: How to use SeriesCoefficient to define new functions
  • Next by Date: Re: Import files on accessible URL and save in
  • Previous by thread: Re: Where are all my "memories" gone?
  • Next by thread: How to eliminate noises?