PDA

View Full Version : Fedora handles memory very well


fc_jeff
18th March 2005, 08:14 PM
A few weeks ago, I started a small thread soliciting ideas to minimize memory usage while running Fedora. I made the comment that it seemed to use more memory than other distros running comparable software and services (Mandrake comes to mind). A fresh boot into Gnome with Fedora seemed to be running memory in the 210meg to 215meg region, while Mandrake was in the 150meg to 155meg region. This made me think that Fedora would constantly go into swap, thrashing the hard drive, while running any programs of decent size.

But what I've discovered with regular usage (and running "Free -m" in a console), and doing a bit of research, is that Fedora is configured to run a service that preloads a lot of stuff (like support libs, config files, etc) that other distros won't by default, to speed up start up times. And I've discovered, while starting up programs and then checking free -m again, that either Fedora or the service is judiciously deallocating unneded stuff from memory, making room for the new stuff starting up, and avoiding going into swap. It also seemed to decrease the overall memory usage as it went. It is as if it is adjusting what it needs to keep in memory, based on what the user is using.

This rocks. And it turns out that with Mandrake, initializing into a Gnome desktop at about 150megs, will continually add stuff into memory, and seemingly not deallocate unneeeded stuff as much as it should, and eventually go into swap more often.

So with Fedora, I don't know if it is the aforementioned service, or if it's Red Hat kernel patches, or some init configuration. But I know it works, and works quite efficiently.

The trade off is that you need a machine that has at least 200megs of memory or so (The Fedora website says minimum for GUI mode is 192megs). A 128meg machine will constantly be in swap (and be very sluggish). Fedora is not a distro for legacy, slower hardware with minimum memory - there are other "lighter", more highly optimized distros for that, like Vector, Yoper, and Ubuntu (I have Ubuntu running on my 128meg machine, quite nicely). But for fairly decent modern hardware specs (200meg + of memory), Fedora is extremely efficient.

And, as with most other distros, the cpu does not have to be a screemer. I'm running Fedora on a Pentium II (300MHz), and it is quite snappy.

I had thought that I stepped into an inefficient distro. But I was wrong.

So kudos to the Fedora/RH devs. :)

Heon2574
18th March 2005, 08:49 PM
A good read, thanks for the info.

t3gah
18th March 2005, 09:11 PM

I wish the installer for FC would give the installer a chance to decide for themselves about that because there is a way around that 192MB or the 128MB that ubuntu says you must have to install the X-Windows System with FC and ubuntu.

I used a live cd from the debian area and used cfdisk to make multiple swap partitions on the two hard disks that my Compaq Deskpro 2000 had with it's 64MB of RAM and it wasn't slow and sluggish to me as it was working. Sluggish or slow is a Windows 95 or 98 system with 4MB of RAM. THAT i've witnessed first hand. FC has a funny way of understanding. They have to realize that there is a huge gray area when they come to the term "slow". Many people have different views of just how slow is slow. As for their kudos for making it run on systems that have more than 192MB of RAM they are sounding like a certain operating system that required that you had money before embarking and that O/S is NetWare! But at least NetWare is memory efficient. The licensing is what it killing off NetWare versus Linux, etc.

FC lost out with me and the millions of other people in the world that aren't going to buy new pc's to play with Linux. They are going to use what they have because they have already lost their shirts buying M$ compatible software for their, 'old' by FC standards, PC's.

But then we are still fighting the old mentality that if you don't RTFM we don't want to know you from many distro's. Point and click is not a M$ innovation. The more this thing with RH progresses the worse it gets for the little guy. Which I think is the reason why LFS is gaining ground. http://www.linuxfromscratch.org/

fc_jeff
19th March 2005, 12:06 AM
Yeah, I prefer a more efficient Linux distro. Ubuntu is fast (and not super memory intensive), and I'll be checking out Vector and Yoper before long.

I'm liking Fedora Core for some things, like the installer, the extra GUI tools, good Gnome support, good speed if you have enough memory, and the fact that I have an excellent book on Red Hat/Fedora (Sobell's book) that I'm getting more detail on system administration and using the services.


My point was that Fedora does a good job of allocating and deallocating memory, and avoiding swap.

ShizlacTheGreat
18th August 2006, 12:18 AM
Running FC5 on an old gateway with a p2@350 mhz, and about 384 megs of RAM, with moderate eye candy (KDE). Edit an image (kcolorpaint, not gimp), have a firefox window open, and then a few shells open usually, stuff like epic and an ssh connection... never reboot.. Attempting the same with mandriva would definitely lead to runlevel FUBAR pretty quick. As a matter of fact, I keep putting off a new computer.. want one, runs so smoothly doing what I do now, just havent get around to it.

ihavenoname
18th August 2006, 03:32 AM
Would a 128mb ram computer not run fedora at all?? Or just really slowly? Because if it will run then it's simply a matter stopping the unneccesary services.

Finalzone
18th August 2006, 06:49 AM
Would a 128mb ram computer not run fedora at all?? Or just really slowly? Because if it will run then it's simply a matter stopping the unneccesary services.

Yes without running a heavy desktop environment and heavy application. I have succesfully run Fedora Core 4 with a Pentium 166 that has only 128 MB RAM using Fluxbox and application that doesn't require more memory.