Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All!! I am facing the same memory problem in linux. I am running a matlab code which reads series of files. Each file size is around 1GB. When I ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    2

    Problem with the memory

    Hi All!!
    I am facing the same memory problem in linux. I am running a matlab code which reads series of files. Each file size is around 1GB. When I read the first file every thing works fine. Moment I switch to reading the second file, after processing of the data from the first file is over, it hangs the system and I can not perform any activity. After some time it automatically kills the matlab. What I understand is that it has something to do with the memory. I have 4GB RAM in the system. If anybody has any idea what is going on here please help me !!!

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Do you have a swap partition ? Try running df -h in a terminal before & after processing the first file ... what happens to % use figures ?
    You could also run top in a terminal and monitor this while you run matlab on each file.
    Last edited by Jonathan183; 01-19-2008 at 06:57 PM. Reason: added comment - run top as well

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    2
    Thanks for replying Jonathan!!

    I have swap partition which says it is 6GB. I will make you more clear about what I am doing actually. I am trying to create an animation where I am capturing the frame and adding it to media file. I think it is not only to do with the file size but also with the frame capturing process. I guess it keeps all the frames in buffer, only after completing the process it actually writes to file. Here I am not saying that this is what actually happens but this is what I am suspecting. Even if some body can tell any better way of doing it so that i don't encounter this memory problem, my job is done.
    As far as the memory uses are concerned, afer running my matlab file I am not able to do anything because it simply hangs and exits automatically by killing matlab. This way I can not see what is the memory use after running the matlab file.

Posting Permissions

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