LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Red Hat Memory Utilization (https://www.linuxquestions.org/questions/linux-general-1/red-hat-memory-utilization-48209/)

chewy 03-04-2003 11:27 AM

Red Hat Memory Utilization
 
I've noticed with Red Hat 7.3 and 8.0 that top and free report almost 100% of the physical RAM in my box is in use. For example: boot into rc3, after boot 55 process running roughly 60 mg of ram top reports as in use. Run top 8 hrs later, 124 mg of ram in use, same 55 processes running. My question is, does RH cache available memory, which commands like top and free show as physical memory in use?

Q*Bert 03-04-2003 12:21 PM

Hello chewy, welcome to LQ.org.

If you like, post the output of

ps -aux > output.txt

here, and we can see what services you're running which you don't need. BTW there's no inherent security risk in showing us the output of ps -aux - just so you feel safe.

Q*Bert

kaiserfro 03-05-2003 05:50 PM

Yep. On a fresh boot up usually you'll see that ram is mostly free...but linux uses RAM to cache up filesystems. If you have one of those cool little programs that indicate for RAM usage (top, free, or x equiv) you'll see that things start with low ram usage and low cached data.

All you have to do is a copy of a large file and BAM are your ram gets sucked up. Watch the RAM usage go up and the cached data go up.

Not to worry though. If the system needs memory for user programs, it will writeback the cached info back to the physical device and allow that ram to be freed.

Q*Bert 03-05-2003 07:22 PM

I'm having a real problem with Redhat 8.0 and memory at the moment. I've been reading that others have the problem too - it seems to be the well documented kswapd bug.

When the system transfers large files the swap suddenly starts thrashing and won't stop. And it *really* slows the system right down to the point where it's completely unusable. Even the login stops working (times out).

It happens consistently when large files are copied between directories, and frankly, this bug is a real liability.

I'm not happy.

Q*Bert


All times are GMT -5. The time now is 08:52 PM.