LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-02-2008, 06:04 PM   #1
pronuncer
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: 0
Help: rhel4->rhel5==>Matlab consumes more memory


I upgraded my workstation from rhel4 to rehl5 (both x86_64) and then the matlab simulations consume much more memory than before. It used to be only 3 Gig and now more than 4 Gig. I traced down (maybe just partially) the problem to difference in loading mat files (saved variable files).

In rhel4, I load several mat files (total ~800M) and then clear them from memory, the memory used by matlab (as told by top) will be the same as a fresh start (~30M).

But in rhel5, I do the same thing, load then clear, the memory used by matlab is much higher than a fresh start, about 600M is still used by matlab. This is strange because the workspace in matlab is empty.

I think this must be due to some changes in memory management in the kernel from 2.6.9 to 2.6.18. So I am seeking help here from your kernel experts. I know you may not be matlab experts, but an insight into kernel may help a lot.

Thanks a lot

Lianqi
 
Old 01-02-2008, 07:09 PM   #2
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
I use Matlab R2007a on Debian. Did you reinstall Matlab after upgrading? Try doing that. This may be due some of the configurations by Matlab. Again, I am just guessing. It is definitely not a problem of the kernel. Just reinstall, and if the problem persists, post the details.
 
Old 01-02-2008, 09:00 PM   #3
pronuncer
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I did a reinstallation, but it seems doesn't help. I posted a file which I am having problem with at http://download.yousendit.com/31ACB2492BFE7695 . If you have time, can you have a test, just load the file and then clear, and compare memory consumption.
Thanks a lot

Lianqi
 
Old 01-03-2008, 12:38 AM   #4
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Please give me sometime. I have work and will put it for download. I shall reply by tonight or next morning.
 
Old 01-18-2008, 05:40 PM   #5
pronuncer
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I have found the problem. It has nothing to do with the linux kernel, but has to do with the glibc. I use gentoo 2007.0 with glibc 2.4 and the problem is gone. The problem seems to be in the memory allocation system call changes in glibc 2.5 or 2.6.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to uninstall rhel4 &rhel5 O/S jagadeesh.nagireddy Linux - Enterprise 2 10-17-2007 08:53 PM
Rhel4/ Rhel5 rehan999 Linux - Software 2 08-31-2007 11:42 PM
Mystery memory usage - what consumes my RAM? Z038 Linux - General 9 03-20-2006 10:17 PM
How to display how much memory resources consumes an app guarriman Linux - Newbie 1 12-17-2004 04:52 AM
How much Linux consumes memory? Eits0 Linux - General 5 09-02-2002 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration