Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Increasing the default memory settings in STATA 13,

    I´m trying to run a file about 5,4 KB in size but when i try to open the file I get following message:

    op. sys. refuses to provide memory
    Stata's data-storage memory manager has already allocated 4672m bytes and
    it just attempted to allocate another 32m bytes. The operating system
    said no. Perhaps you are running another memory-consuming task and the
    command will work later when the task completes. Perhaps you are on a
    multiuser system that is especially busy and the command will work later
    when activity quiets down. Perhaps a system administrator has put a
    limit on what you can allocate; see help memory. Or perhaps that's all
    the memory your computer can allocate to Stata.
    r(909);

    The file contains 20 Variables so the variable number should not be the problem. For my data analysis i´l be using STATA/SE 13. I checked on the memory of the program and it seemed to me to be sufficient for my file

    . query memory
    -------------------------------------------------------------------------------
    Memory settings
    set maxvar 5000 2048-32767; max. vars allowed
    set matsize 400 10-11000; max. # vars in models
    set niceness 5 0-10
    set min_memory 0 0-1600g
    set max_memory . 32m-1600g or .
    set segmentsize 32m 1m-32g


    I read on "FAQ" the recomendation to allocate an amount of memory that is larger than the file in use and tried to increase the memory to 10m, but stata ignored my command with following message:
    Code:
    set memory 10000
    set memory ignored.
    Memory no longer needs to be set in modern Statas; memory adjustments are
    performed on the fly automatically.

    My computer has 4 GB of RAM, I´m wondering if there is an alternative possibility to increase or change the memory settings to make it work.

    Thank you


  • #2
    Have you closed all instances of Stata?

    Comment


    • #3
      I have.....

      Comment


      • #4
        Originally posted by Grettel Romero View Post
        I have.....
        Can you open different datasets? E.g.
        Code:
        sysuse auto, clear

        Comment


        • #5
          yes I can oppen that dataset
          I can also open a dataset with about 1.5 KB in size....

          Comment


          • #6
            Originally posted by Grettel Romero View Post
            yes I can oppen that dataset
            I can also open a dataset with about 1.5 KB in size....
            Have you tried opening your dataset on a different computer? Can you perhaps also attach the dataset you can't open?

            Comment


            • #7
              It seems an obvious step, but since you didn't mention doing so, have you tried rebooting your computer? Perhaps some other program or process did not free memory it had allocated. Rebooting can be the easiest way of clearing that sort of problem.

              Comment


              • #8
                I rebooted my computer, let Stata work throug the hole night and it finally read my file!
                Thank you all for your advices!

                Comment


                • #9
                  Hi, I have Stata 13 for Mac and 64 GB of memory total on my computer. I gather memory can no longer be set in Stata. However, Stata runs very slowly on many operations (fine on simple things with small data sets). Right now I am appending 454 small datasets to each other using a loop, and it's been running for 10 minutes and not done, even while the system says 45 GB are available. Is there anything I can do? Many thanks, Deborah
                  Last edited by Deborah Weiss; 24 Mar 2019, 13:44.

                  Comment


                  • #10
                    Your CPU is probably the bottleneck - the only three solutions are buying a better CPU (very expensive), optimising your code (sometimes very difficult) or doing something else while you let Stata do its thing (cheap and productive).

                    Comment

                    Working...
                    X