Bug 104463
Summary: | System memory is leaked with no way of recovering it | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Michael Lee Yohe <michael> | ||||||||
Component: | kernel | Assignee: | Dave Jones <davej> | ||||||||
Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 9 | CC: | mattdm, pfrields, riel | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i686 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2004-09-30 15:41:32 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Michael Lee Yohe
2003-09-15 21:29:23 UTC
cat /proc/slabinfo will show where the memory was allocated to. You fact that memory seems to disappear when you lock X would suggest theres a memory leak in whatever screensaver you are running. Are you running a specific one, or do you have it set to random ? If its set to random, try setting it to just blank screen for a few days, and see if the problem goes away. If it does, its an xscreensaver bug Another bug I filed relating an X resources leak problem was solved by Mike Harris eluding to a buggy screensaver problem. Locking X just blanks the screen. I was merely stating the routine - all the while, memory was problem disappearing into the blue yonder and just hadn't noticed it. Nonetheless, I'll hammer at this machine for the next day or two. Go to init 3 and check the numbers. If they are sufficiently bad (like before I rebooted it previously), I'll post the slabinfo information for all to decipher. BBL... Also, screensavers that have been leaking memory usually free up all memory once X disappears from existence (CTRL+ALT+BKSP or init 3). Again, in runlevel 3 - I have the same suite of resident apps as I did when I first booted into Red Hat Linux, but a whole lot more memory was tied up. Again... BBL. Created attachment 95638 [details]
/proc/slabinfo before init 3 (while still in init 5)
Created attachment 95639 [details]
/proc/slabinfo after going into init 3
All X-related apps were killed. I shutdown all non-essentially services to
recover as much memory as possible.
Created attachment 95640 [details]
/proc/slabinfo after a fresh boot
This problem is getting worse. The last time I had to reboot, I had only 60M
in the page cache, buffers was about 5M, and free memory was about 20M. There
was about 150M still tied up in swap (from what, who knows). The machine was
so slow because of having to page in and out of swap that it took even forever
for reboot.
Lastly - I have found that compiling large projects (in-house or stuff like Mozilla, OpenOffice.org, etc.) will drain the available memory and increase the amount of memory considered "active". This is the only way I've been able to duplicate the problem. I would switch to the rawhide kernel, but util-linux hasn't been updated to 2.12 yet, and I require something out of util-linux 2.12 if I move over to the 2.4.22 rawhide kernel. I found a way to recover some of the memory. If you write a C program to malloc() a quantity of memory, the page file does not grow very much when the page cache is low/buffers are low/free mem is low. The amount of active memory begins to decrease and get allocated to the application. Once the malloc() program quits, the free memory eventually gets returned to the page cache and buffers, thus speeding up the machine. This method does not appear aggressive enough to free up all the "missing" memory. Thanks for the bug report. However, Red Hat no longer maintains this version of the product. Please upgrade to the latest version and open a new bug if the problem persists. The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, and if you believe this bug is interesting to them, please report the problem in the bug tracker at: http://bugzilla.fedora.us/ |