image
image

|


Go Back   macosx.com > Content & Information > Apple News, Rumors & Discussion

Reply
 
Thread Tools
  #1  
Old December 10th, 2001, 12:42 PM
simX's Avatar
Unofficial Mac Genius
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 2,183
Thanks: 0
Thanked 0 Times in 0 Posts
simX is on a distinguished road
Memory leak in the OS?

OK, so I woke up today, and I heard the disk churning a lot, and so I turned on my computer -- a glance at the memory monitor showed that over half of my memory was active or wired, and that the rest of it was inactive, and not free (I have 896 MB of RAM, so that's a HUGE amount of active+wired memory). So I checked in top to see what might be using all that memory -- Norton, or something. Nothing out of the ordinary using so much RAM. So I quit all of my applications. Still my active+wired memory was over half of my total RAM. But something didn't seem right -- I went back to top to check on the memory usage, and it didn't seem like it added up. So I grabbed a calculator -- and added up all the columns of memory for RPRVT, RSHRD, and RSIZE in top. Now I knew that I would be adding up more memory than was actually being used, because RPRVT and RSHRD are included in RSIZE.

Well, so what did I find? Total, as reported by all the processes individually, including the kernel (process 0 -- I believe process 0 is the first process, so I did include every process), the memory that was being used was 197.9 MB. But total, the top command was reporting an obscene 532 MB active, 603.2 active+wired! I've included a screenshot of the terminal window (it has some text superimposed on it because I need to register Snapz Pro X, but you should be able to read it) so you guys can check my math. Remember, I added up all 3 columns of the top command, so the 200 MB is probably over the actual total by about 50-100 MB.

Clearly something is wrong here. Does anybody know what could be causing this? Every once in a while it seems like it does this to an extent, but it hasn't done it to this degree. As we speak, over half of my memory is being used as active or wired memory, but I can't figure out what!! And the numbers in top still do not add up.

Any information would be appreciated.

P.S. I have to run right now, but I know that the picture of the terminal window looks really gross. I'm going to put the picture on my iDisk when I get back -- my member name is "simX" -- just go to my public folder.
Attached Images
File Type: jpg grossmemorypicture.jpg (67.6 KB, 94 views)
__________________
-- simX

Get Memory Usage Getter, the only Mac OS X utility that graphically displays the memory usage of your open processes! http://homepage.mac.com/simx/

450 MHz G4 Cube | 15" flat-panel Apple Studio Display | 896 MB RAM | Que! Fire 12x10x32x FireWire CD-RW | OS X 10.1.5 Build 5S66 | Mac OS 9.2.2 | Telex M-560 Microphone | Epson Stylus Color 777 | TI-Graph Link USB | Pro Speakers/Mouse/Keyboard | Airport card | iPod

"Some people's minds are like cement: all mixed up and permanently set..." -- Andrew Welch, el Presidente, Ambrosia Software, Inc.

"You know that first hit of heroin is free." -- Scott McNealy, Sun Microsystem's CEO, on Microsoft's .NET .

"The day Microsoft makes a product that doesn't suck is the day they start making vacuum cleaners." -- Unknown

Last edited by simX; December 10th, 2001 at 12:59 PM.
Reply With Quote
  #2  
Old December 10th, 2001, 12:51 PM
fryke's Avatar
Super Moderator
 
Join Date: Sep 2000
Location: macosx.com
Posts: 13,031
Thanks: 2
Thanked 0 Times in 0 Posts
fryke has a spectacular aura aboutfryke has a spectacular aura about
logfile rotation? (n/t)

could be, couldn't it?
__________________
MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.4
MacBook 13" 1.83 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.4
Hackintosh Core2Duo 2.4 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.4
iPhone 3G 16 GB (v2), AppleTV 1G 40 GB (v2)

Mac user since 1987, Apple Product Professional 2007, 2008.
Reply With Quote
  #3  
Old December 10th, 2001, 01:03 PM
simX's Avatar
Unofficial Mac Genius
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 2,183
Thanks: 0
Thanked 0 Times in 0 Posts
simX is on a distinguished road
?

WTF is logfile rotation? Never heard that before.

Oh, by the way, when I logged out and logged back in again, the memory usage was back to normal. Still, something was wrong, and it sounds like a memory leak to me.
__________________
-- simX

Get Memory Usage Getter, the only Mac OS X utility that graphically displays the memory usage of your open processes! http://homepage.mac.com/simx/

450 MHz G4 Cube | 15" flat-panel Apple Studio Display | 896 MB RAM | Que! Fire 12x10x32x FireWire CD-RW | OS X 10.1.5 Build 5S66 | Mac OS 9.2.2 | Telex M-560 Microphone | Epson Stylus Color 777 | TI-Graph Link USB | Pro Speakers/Mouse/Keyboard | Airport card | iPod

"Some people's minds are like cement: all mixed up and permanently set..." -- Andrew Welch, el Presidente, Ambrosia Software, Inc.

"You know that first hit of heroin is free." -- Scott McNealy, Sun Microsystem's CEO, on Microsoft's .NET .

"The day Microsoft makes a product that doesn't suck is the day they start making vacuum cleaners." -- Unknown
Reply With Quote
  #4  
Old December 10th, 2001, 01:08 PM
serpicolugnut's Avatar
OS X Supreme Being
 
Join Date: Mar 2001
Location: Land of the free, home of the braves
Posts: 1,238
Thanks: 0
Thanked 0 Times in 0 Posts
serpicolugnut is on a distinguished road
More ????

First off - are you running any of the following...

Seti@Home, Nav Beta, Adaptec drivers, etc. Basically, anything that acts as a kernel extension or runs as a background process?
__________________
Powerbook G4 17"/1.5ghz/1GB RAM - OS X
iBook 12"/1.2ghz/512MB RAM - OS X
AMD 2200 XP/512MB RAM/WinXP
Visit OS X Factor - OS X News & Resources
Reply With Quote
  #5  
Old December 10th, 2001, 01:31 PM
Klink's Avatar
Member
 
Join Date: Apr 2001
Location: nyc
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Klink is on a distinguished road
Clue?

Your Terminal output of top shows 1 stuck process. This could be significant.
Reply With Quote
  #6  
Old December 10th, 2001, 01:33 PM
simX's Avatar
Unofficial Mac Genius
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 2,183
Thanks: 0
Thanked 0 Times in 0 Posts
simX is on a distinguished road
Yes..

I was running SETI@home and NAV beta at the time, but I closed SETI@home before adding up all the numbers, and it still didn't match up. However, the terminal "top" command lists EVERY SINGLE PROCESS, whether background or not. And NAV was listed in that picture, if you notice. So that wouldn't make a difference -- plus, NAV 8 public beta 2 fixed the problem with CPU hogging, and it still doesn't take up much memory, so that wouldn't be the problem.

I didn't notice the stuck process thing, but could that be taking up 400 MB of my memory? I kind of doubt it.
__________________
-- simX

Get Memory Usage Getter, the only Mac OS X utility that graphically displays the memory usage of your open processes! http://homepage.mac.com/simx/

450 MHz G4 Cube | 15" flat-panel Apple Studio Display | 896 MB RAM | Que! Fire 12x10x32x FireWire CD-RW | OS X 10.1.5 Build 5S66 | Mac OS 9.2.2 | Telex M-560 Microphone | Epson Stylus Color 777 | TI-Graph Link USB | Pro Speakers/Mouse/Keyboard | Airport card | iPod

"Some people's minds are like cement: all mixed up and permanently set..." -- Andrew Welch, el Presidente, Ambrosia Software, Inc.

"You know that first hit of heroin is free." -- Scott McNealy, Sun Microsystem's CEO, on Microsoft's .NET .

"The day Microsoft makes a product that doesn't suck is the day they start making vacuum cleaners." -- Unknown
Reply With Quote
  #7  
Old December 10th, 2001, 03:07 PM
Klink's Avatar
Member
 
Join Date: Apr 2001
Location: nyc
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Klink is on a distinguished road
Unless you know what that stuck process was, I wouldn't doubt it. Could be a stuck kernel_tas, which is somewhere close to the memory that's unaccounted for (469M). I also noticed your kernel_tas process is much larger than mine (mine=357, yours=469), as is your kextd (mine=3.5 yours=5.1). Seems something modified your kernel adding 100+ MB). This all smells somewhat stinky to me, unless you know of some software that you installed that indeed modified the kernel. But only you could give insight to my observations as you are familiar with what has been modified on your system. The myriad of questions I would ask because I'm not familiar with your particular system would be wasteful. I suppose the situation has to rear it's ugly head again for any progress to be made into this problem.

As for a memory leak, I would think if some app or subsystem wasn't releasing it's occupied memory it would show in your top output as a larger than normal memory value and would grow as you used the offending app/subsys. Would it (memory) just disappear? That would be very odd indeed.

Good luck and let us know if you find something interesting.
Reply With Quote
  #8  
Old December 10th, 2001, 03:39 PM
simX's Avatar
Unofficial Mac Genius
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 2,183
Thanks: 0
Thanked 0 Times in 0 Posts
simX is on a distinguished road
Hmm...

I'll see what happens when I leave my computer on overnight tonight.
__________________
-- simX

Get Memory Usage Getter, the only Mac OS X utility that graphically displays the memory usage of your open processes! http://homepage.mac.com/simx/

450 MHz G4 Cube | 15" flat-panel Apple Studio Display | 896 MB RAM | Que! Fire 12x10x32x FireWire CD-RW | OS X 10.1.5 Build 5S66 | Mac OS 9.2.2 | Telex M-560 Microphone | Epson Stylus Color 777 | TI-Graph Link USB | Pro Speakers/Mouse/Keyboard | Airport card | iPod

"Some people's minds are like cement: all mixed up and permanently set..." -- Andrew Welch, el Presidente, Ambrosia Software, Inc.

"You know that first hit of heroin is free." -- Scott McNealy, Sun Microsystem's CEO, on Microsoft's .NET .

"The day Microsoft makes a product that doesn't suck is the day they start making vacuum cleaners." -- Unknown
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Authoritative Partitioning Discussion mr. k Mac OS X System & Mac Software 13 November 11th, 2003 06:26 PM
memory issues (please help!) laboboy Mac Classic System & Software 2 April 30th, 2003 05:00 PM
memory leak? me281 Mac OS X System & Mac Software 5 May 24th, 2002 02:42 AM
apache memory leak? cody Mac OS X System & Mac Software 1 January 17th, 2002 06:34 PM
Disabling VM musey79 Apple News, Rumors & Discussion 4 October 8th, 2001 08:27 AM


All times are GMT -5. The time now is 11:39 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.