[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Memory allocation version 10 versus 9

From   Hua Peng <[email protected]>
To   [email protected]
Subject   Re: st: Memory allocation version 10 versus 9
Date   Wed, 12 Sep 2007 13:35:20 -0500

Arne Mastekaasa <[email protected]> asks:
"Under Windows XP 32 bit I am able to allocate 900m of memory under Stata 9,
but only 600m under Stata 10 (-set memory- command). Anybody else experienced
this? Can anything be done? (other than changing to 64 bit system)."

Arne may find the following FAQ providing useful information.

Quoting from the above FAQ,

  "When a typical application loads, there are usually several
   libraries (or DLLs) that are loaded as well. These libraries are
   usually loaded into the 2.1-GB space on the upper end, but not in
   any deterministic order. Microsoft has assured us that there is no
   way to prevent these libraries from loading into arbitrary
   addresses, thus fragmenting the available space. When Stata tries
   to load a dataset, it requests from Windows the largest contiguous
   space in the 2.1-GB range. Depending on where Windows loaded the
   initial libraries, this may be 1.8 GB, 1.3 GB, or even less. You
   may be surprised to find that a 1.4-GB dataset loaded fine one time
   but failed to load later. This is simply an unfortunate side effect
   of Windows memory management."

Since Stata 10 uses more Microsoft libraries than Stata 9, the virtual
memory space in Stata 10 is more fragmented than in Stata 9. Hence
less memory is available.

If Arne often needs more than 1GB memory to work with large dataset, a
64-bit Stata on a 64-bit operating system is the solution.

On the other hand, if Arne only needs around 900MB memory, he may try
to apply the Microsoft hotfix in the FAQ first. If this does not fix
the problem, he may consider moving from 32-bit XP to 32-bit Vista
since the virtual memory management in Vista is much better than in

  Hua Peng, Ph.D.
  Senior Software Engineer              VOICE: 1-979-696-4600
  StataCorp LP                          TOLL : 1-800-782-8272
  4905 Lakeway Drive                    FAX  : 1-979-696-4601
  College Station, TX 77845             EMAIL: [email protected]

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index