|
#1
| ||||
| ||||
| 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.
__________________ -- 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. |
|
#2
| ||||
| ||||
| 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. |
|
#3
| ||||
| ||||
| ? 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 |
|
#4
| ||||
| ||||
| 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 |
|
#5
| ||||
| ||||
| Clue? Your Terminal output of top shows 1 stuck process. This could be significant. |
|
#6
| ||||
| ||||
| 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 |
|
#7
| ||||
| ||||
| 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. |
|
#8
| ||||
| ||||
| 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 |
![]() |
| Thread Tools | |
|
|
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 |