Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I was working on my computer when suddenly I noticed the hard drive began to make a bit more noise. So I launched System Monitor to observe what was happening, and I noticed in a space of about 1.5 minutes the RAM being used on my machine climbed from about 298 or so to 422 before leveling off. (Just before it leveled off, at about 403 RAM or so I closed applications that I had open like nautilus and vi).
Is this normal for that kind of RAM usage to climb up like that? I hadn't done anything unusual like start an intense application. I was just editing a file in vi as I had been doing for the last 30 minutes or so. Could this be a sign of a bad program on my machine? I don't normally go out to the internet with it, but occasionally I do.
Linux tries to use as much RAM as it can and only starts using swap when it absolutely, positively must. If you think about it, this actually makes sense. Why would you want things in swap, which is dog slow, when you have perfectly good RAM available? The whole idea of "free RAM" is one of those horrible Windows-think ideas that you need to discard when using Linux. As long as your applications are running decently, let Linux worry about how to manage memory.
Yeah thanks I had heard that Linux uses RAM differently than windows. And indeed I do have 1GB of RAM on this machine, a workstation, so there is plenty available. I just wanted to check to be sure that was what was going on.. That this is normal. I should have mentioned too that I had been running another application a few times before the RAM increase began and I can see where Linux may have recalculated and decided to use more RAM since there was more available.
Thank you for your advice about "top". I will look into that.
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Also, be aware that a cron (or anacron) job could have been running to start utilizing system resources like that...
Mandrake especially is prone to do this. Essentially, cron (or anacron) runs jobs in the background that do typical system maintainance. Problem is that the processes occasionally have too much priority and slow down other things you might be doing... You can adjust how much and when cron will do these jobs. Doing so can be a pain though.
Could this be a sign of a bad program on my machine?
someone will correct me if i'm wrong, but no, this is not a concern. it is highly unlikely that you have any sort of spyware or virii hogging your system's resources. most of those are written for the 99% of the world that uses windows, and simply wouldn't know where to begin on a linux box.