Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I'm trying to run a heavy physics software that requires much memory on the PC. I'm using Ubuntu 8.0 32-bit. I have 2GB RAM and 9GB swap space. When ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    1

    Ubuntu does not use swap space

    Hi,

    I'm trying to run a heavy physics software that requires much memory on the PC. I'm using Ubuntu 8.0 32-bit. I have 2GB RAM and 9GB swap space. When I run the program, the total RAM usage rapidly becomes 2GB and then the program gives the error: Out of memory and it stops. However, I expect to utilize swap space but it seems that I have to tell Ubuntu to be able to use swap space when RAM is finished. How can I solve this problem?

    Cheers,
    carbon9
    Last edited by carbon9; 04-04-2009 at 07:22 PM. Reason: type

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Hello and Welcome.
    Open a terminal window and issue this command.
    Code:
    free
    It will tell you if the swap is even being used at all. Another thing, I think 9GB of swap is a bit much, but if you think you need that much then that's ok. You should not have to "tell Ubuntu to use the swap space" as long as the swap space is active and running.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    The old swap format didn't address more than 2 GB anyway. I don't know if the current swap format can, I've never tried it.

    I use XOSview to watch the memory usage and other things. I don't think ubuntu installs it by default, but it's easily to install via Synaptic. It's good for watching just how much usage you have at the point something fails.

    If need be, it is also possible to create a swapfile, instructions are in the man pages, I think in man mkswapfs... I'm being rushed, sorry for the lack of detail.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...