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.
For some reason, my SuSE 9.3 OS has been going quite slow lately. I opened up a RAM monitor...and noticed that my swap drive is actually being used. 13 % of it. I've heard that a swap drive being used can slow things down majorly.
I only have 256MB of RAM. Should I get more? Is more needed?
..anyway, as I said I opened up a monitor...and it says...
Total memory free 71%
Used physical Memory: 17% Used
For the physical memory...58 percent of it is used by program data, and 28% of it is disk cache. There's only 5% free of physical memory.
More importantly though, my swap drive is being used.
Theoretically, no matter how much ram you have, adding swap can make your system faster. That being said, you may want to get a little worried when your swap drive starts to show a lot of useage. Some swap use is fine, but obviously, a lot is bad.
It does look like you are using a lot of ram. You can call the "buffers" and "cached" ram free if you want to. Those buffers will be freed whenever an application needs more memory. So, you have about 17MB of "free" ram out of 256, and you have 143MB of swap used. Yeah, it does look like you can use some more ram. I think you would notice a speed bump from another 256 or so.
Also, I like the "free -m" output a little better. Here is what mine looks like. This is in MB.
I'll decipher this as an example. My sytem as 2GB of ram. 1.921GB is used, 87MB is free, 373 is used for buffers, and 910MB is used for cache. This means, that for all intents and purposes, I have 87+918+373 ~= 1378MB of "free" ram. I like the "free" output because it will give this summary for you on the (-/+) line:
total used free shared buffers cached
-/+ buffers/cache: 629 1379
So, you can see that while I only have 87MB free, I really don't have anything to worry about because my system can have a total of 1379MB available whenver my apps need it. I hope this example helps.
I likewise would recommend adding more RAM assuming your budget allows it. As you said, anytime swap is actually used, your system performance tends to go down the drain because of the simple fact that reading/writing to the hard drive is measured in milliseconds, while accessing RAM is measured in nanoseconds. The more your system has to manage memory using the hard drive, the worse your response times will be. Some intermittant swap usage is no big deal, but if you're consistently using 13% of a 1G swap (yipes!) then it's no wonder your response times are poor.
Overall, I'd suggest boosting RAM to 512Mg and to reduce swap to 256Mg tops (even today, where you are using a lot of swap, keep in mind that only about 130Mg of that 1G space is being used, and the rest is sitting around not doing anything.) Lastly, the more RAM you have, the less likely swap will come into play and with 512Mg most likely both your swap usage will drop dramatically and your system performance should improve significantly. Good luck with it -- J.W.
NewEgg. Great prices, amazing service. Pretty much for me, I buy everything from NewEgg. (FYI - I have no connection or affiliation with them, I'm just always had excellent experiences with them and would recommend them without hesitation -- J.W.
Now my understanding of RAM use and SWAP in Linux is clearer.
But to dig in a little deeper, please help me with the following.
My box has 2 GB of ram, Mandrake 9.2. When booting I get the following available linux boot systems..
Linux and Linux Enterprise.
I understand that Linux Enterprise is for systems that have more than 1 GB Ram.
If I boot in Linux, I only get a reporting of 1GB of Ram.
Of which in the KDE Memory Control Module I get the following usage report..
Application Data 10%
Disk Cache 11%
Free Physical Memory 77%
Also under the KDE Information Processor Control, this boot process shows the single processor that I have in the box,
In the case of the Enterprise boot, below, I get a false report of 2 processors onboard.
In this case is the computer only recognizing and using 1 of the 2 GB's available to it?
and what's with the false reporting on the processor?
and what's with the Application Data using 62%?(below)
If I boot in Linux Enterprise I get the 2GB of Ram and in the KDE Memory Control Module I get the following usage report..
Application Data 62%
Disk Cache 7%
Free Physical Memory 31%
Any information on this would be greatly appreciated.
Well, it depends on how your kernel is configured. In order to get my computer to "see" all of my ram, I have to enable "high memory support" when configuring the kernel. I think you need highmem enables to use more than 1GB of ram. I'm guessing whatever kernel you have doesn't have this feature enable, and therefore can't see you all your memory. As for reporting two processors, do you have a HTT(Hyper Threading) enabled pentium4 or Xeon chip? Linux does support HTT, and that may be why you see an extra "logical" processor.
Now..any suggestions on where to purchase *low cost* RAM?
1) eBay. Even paying top eBay dollar for memory is cheaper than the retail options.
2) Any time you see significant swap partition usage (significant = more than a few percent), itís time to add memory. And if you canít add memory because of physical limitations, then you should think about replacing your system. Significant swap usage just kills performance.
Regarding the old rule of swap size = twice memory size, thatís so out of date, it isnít even funny with modern systems (modern = P-III or newer), but you read it every day in this forum. The most swap I ever enable is 500MB, regardless of how much memory is in the system. And even that is a waste of disk space in most cases.
Guys, this isnít windows, which would fall over dead without ďswapĒ.
That's a yes on the HTT(Hyper Threading), I have a P4 3.60, HTT is enabled in the BIOS.
As far as the "enable "high memory support" " I'll have to dig into that.
Thanks for the great information.
p.s. fyi to past posts
I'm printing out large format prints with images in the range of 250Mb to 500Mb, and I just barely get into my swap area. I'm assuming at this point that my 2GB of Ram is being used. But I'll have to do further checks.
I've also learned that it was only some printers that have issues with starting with the Linux mode.
From this point I am going to Run with Linux Enterprise to see how it goes.
Ahhh 35% of my swap is being used now! Well, hopefully I'll get some RAM soon . I wonder why my swap is being used though? Other distros I haven't had much problem..but possible it's the new KDE...or different programs. Most of it's application data that's eating up my physical memory.
yea it's also really the application data that ever ends up in swap because it's really the only thing in ram that can't get reread off the disk like executables and libs can. User application data goes into the swap cue as soon as it's created so when memory preasure comes along it can get saved without alot of thought and everything else just gets tossed out