Hello, I have installed red hat 9.0 on my laptop (a Pentium 4 2400 with 512M of RAM). Periodically, I run of the command "free" or "top" and it shows that the amount of the used memory grows gradually until 512M without any reason (I'm not working with anything)! When I try to launch a JavaIDE (intellij, for example), linux starts to use the swap memory and even I kill the IDE, the memory usage remains at big level. Looking in the "Start" men�, I found an application called "KSim" which is another kind of system monitor. It shows more confortable levels about used memory (150 - 250 M). Anyone knows the reason of this? What's the real usage of the memory?? Thanks in advance...
I don't use KDE, so I can't tell what KSIM monitors. You can use top/vmstat/free to check for your memory, I believe they are the most accurate monitors. KSIM might not be counting KDE usage itself. What version KDE are you running? I know all X-Windows consumes rather large amount of memory.
I'm using GNOME instead of KDE but I also experience the same problem. I have 512MB of memory and I'm not running that much processes. But at certain time, my swap files don't seem to be enough. I discovered later that if I stop my Mozilla browser, the swap file usage decreases considerably. So it seems that Mozilla is the culprit. Are you using Mozilla when this things happen? [ September 30, 2003: Message edited by: Alton Hernandez ]
posted 15 years ago
Hello, I've readv your posts...no, I haven't anything running on my notebook (only the processes that linux runs on startup). If I run System Monitor (With the "All processes" choice)and I sum the whole "Memory" column, the result is not equals to the amount of the used memory. another thing: At the start up, linux use about 160 M; If I run some application, for example nautilus or mozilla, the amount of the used memory grows (about 180M). If I close the application the used memory remains at the same level(180M)...and continue to grows gradually from here. Last note: when I work, I use my laptop with Eclipse or Intellij as IDE and PostGresql as database. With these application open, (even the "free" command shows that there is'nt free memory), the development is sufficiently fast and when the free command shows me that the swap memory is in use, It seems to me that my hard disk isn't working (there is a green light on my pc that shows the hard disk work). ...help!! Thanks
I have noticed that free reports a fairly high used memory level after my computer has been on for some amount of time, but I have not noticed excessive swap paging after that time, nor have I run out of memory and had the kernel crash on me (except that one time, and that was entirely my fault...). I think that this growth in the memory usage reported by free must have something to do with the kernel marking memory free when a process dies, but not actually cleaning it up until a new process starts. If I knew more about the kernel, I might know the reason for this, but I do not think it's a memory leak in the kernel because I have not had problems even after running my system for several months without rebooting. I've also tried running a fairly recent kernel (2.4.18) on a system with fairly limited memory (64 Meg) and it runs fine for an extended period of time without crashing. And "free" reports once again almost all the memory used up almost all the time. So what we really need is a kernel guru to explain exactly what free is reporting, how that relates to the actual amount of memory the user processes and kernel processes are using, and why those may be different.