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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
ugge -
Thank you for your advice about "top". I will look into that.
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.