Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Hi,
I just installed fedora 2 and for whatever reason, the swap is activated but never gets used, this system just gets slower and slower, I can't even run up2date without it freezing. Also, I find that the web server takes forever to load dynamic pages, I believe that the swap memory is the culprit here as well. When I do free I get:
Mem: 515956 510844 5112
Swap 771112 0 771112
Plus some other stuff about buffers etc, but this shows that the swap just isn't being used. At 510mb out of 512, I would think that swap would kick in, but it doesn't matter what I do, it is never used. Any ideas on how to fix this?
Linux manages memory much differently than Windows, and this article does a great job of explaining it. As you know, the only time swap ever gets used is when the demand on the system pushes RAM past its capacity, and the system is forced to write memory pages to the hard drive. That's not a good thing in terms of performance (consider that access times within RAM are measured in nanoseconds while access times for a hard drive are measured in milliseconds) and therefore, you want your swap usage to be minimal.
If you are experiencing performance degradation, then I'd suggest checking both "top" and "ps ax" to see what else is running. It may be that you've got unnecessary processes running that are eating up CPU cycles, or alternatively, depending on the speed of your Internet connection, the freezing that you describe may just be a function of the traffic on the server you're visiting or the data transmission speed. Either way good luck with it. -- J.W.
I understand that swap is only used when needed, and I'm thinking that it is needed and that the memory is being maxed out constantly. `cat /proc/sys/vm/swapiness` reveals a 60. There really isn't anything unecessary running on the box, I have xwin open, but we need that, and I'm not talking about a major thing, just viewing a webpage that uses mysql db, this takes over a minute to load, my network connection is not the issue, I am within a campus network on the same segment as the server itself, so the traffic shouldn't ever go past the switch since the mac address of the server is local to the switch I'm plugged into.
Top doesn't show much running, and the load average is around .64. Nothing points to poor performance, but up2date will not complete successfully, and my pages take forever to load, I am baffled. Thanks for your help.
It looks like it might just be a huge database causing the problem, the pages aren't taking as long as they used to, but it's kinda wierd that it cannot complete an up2date update at all, it just freezes, and never uses swap, or anything, but the system slows down dramatically. Thanks for the help.
okay, so swap was finally used, and it looks like memory is fine. However, this system is slower than it should be and I have no idea why. 512mb ram, PIII 6xx (not sure exactly), it just took 5 minutes for the system to respond to a "shutdown -r now", mozilla takes longer than 5 minutes to open, openoffice will not open, when I am trying to open mozilla it only uses 10% CPU and 4% memory, yet is unusable cause it's so slow. Everytime I search for something similar the responses are "switch desktop environment, stop services" etc... I have minimal services running, I am running KDE, but it should run fine on this system, and the fact that the cpu spends most of its time below 10% suggests to me that something really wierd is going on. Any other ideas in figuring this one out? There are no errors being shown in the log files except this:
"xf86AllocateGARTMemory: allocation of 1024 pages failed (Cannot allocate Memory).
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
You might want to check your memory. Create a memtest86+ boot disk or on some distros there might be a file called memtest86+*** in your /boot file. If it there add it to grub like this. Example from my /boot/grub/grub.conf file. (hd0,1) is reference to /dev/hda2 where my /boot directory is mounted. Yours my be differnet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.