Reduce Your Ubuntu Linux Memory Footprint 61
An anonymous reader writes "The ideas in this article will help you breathe life (and some additional security) into your old Linux machines and make better use of Linux on aging hardware. In this article, learn how to accurately measure the amount of memory your Linux system uses. You also get practical advice on reducing your memory requirements using an Ubuntu system as an example. A lack of physical memory can severely hamper Linux performance. This will help you reduce your systems memory footprint and keep your old Linux system running the latest fully featured Linux applications smoothly."
To improve Ubuntu, run Gentoo? (Score:5, Insightful)
This "article" is practically content free. It compares Firefox's memory usage to Lynx. What the fuck?
How about some REAL information? Not "advice" such as And the distribution you WERE talking about was Ubuntu. How about some FACTS that are directly related to Ubuntu?
A better title for this article would have been "Generic advice on how to see how much memory an application may use on Linux".
Re: (Score:2)
Re: (Score:1, Flamebait)
Re: (Score:2)
--
Evan
Re: (Score:2)
Re: (Score:2)
Oh, and I apologize for not writing a full report spelling-out everything you need to do. Sheesh, I'm just trying to be helpful.
Re: (Score:2)
Re: (Score:2)
I can run its version of Firefox 1.06 on a Pentium-90 with 64MB of RAM, and it works acceptably. It's also got other lightweight apps suitable for small machines like that, and their are MyDSL "extensions" that can be installed for more capabilities. It can even be turned into a Debian Woody installation.
Re: (Score:2)
http://www.damnsmalllinux.org/ [damnsmalllinux.org]
Re: (Score:1)
Re: (Score:2)
That said, DSL does indeed kick ass.
Re: (Score:1)
(And if it ends up saving me trouble, I'll do as I did with DSL and donate, only this time on my new Company CCard
Re: (Score:2)
No recognition for the software used though, sadly.
Know your limits, install accordingly (Score:4, Insightful)
Kill the flamethrowers. The article is about Ubuntu, not Gentoo. If you have a burning need to build a package from source, Gentoo-style, in a Debian or Debian-daughter system, consider apt-build [debian.org] which will get the job done for you.
Otherwise, the article was a very sensible discussion on installing the guts of a 'modern' distro--in this case Ubuntu--on some less than current hardware. Another such discussion is in the LowMemorySystems [ubuntu.com] page in the Ubuntu wiki.
The important thing to take away, in any case, is the non-trivial lesson that you cannot have your cake and eat it, too: installing on limited hardware means understanding your hardware limits and considering your packages accordingly. (I hear bearded Slackers in the back chortling. Hush, you, let me finish first.),
Interestingly, the article confirms what I've been doing on my own IBM Thinkpad 570e lately. My only question to whomever still might be reading this is: is there a lightweight CSS-compatible browser that's not a memory pig on the order of Konqueror or even Firefox? Dillo works well enough, but I'm wondering if there isn't maybe a browser between Dillo and the heavyweights.
Work on that and submit it. (Score:2)
No flamethrowers have been employed by me, in this thread, so far.
Your brief comment still contains more information than the original article did. In fact, with a little bit of work it COULD be far better than the original. And I do mean "little".
#1. You've identified apt-build.
1a. What happens when the package is updated? Does it automatically recompile itself? Does it change the upgradeable status? Does it have ANY effect on the ease of upgrade/maintaining a Debian/Ubuntu system?
low-resource CSS-capable browser (Score:2)
Opera, if you can stand the interface (or if you can figure out how to customize the interface - what a mess *that* process is, but worth the effort if you can figure it out).
Re: (Score:2)
Re: (Score:1, Redundant)
Re: (Score:1, Interesting)
I'm looking for one too. I'm planning to evaluate Atlantis, but haven't done so yet because you need to build it from source and I haven't taken the time yet.
Apple took the guts of Konqueror and made a library. Someone else took that library and made a GTK+ version called GTK+ WebCore [sourceforge.net]. Someone else wrote a simple GTK+ application using that library, and that's Atlantis.
I want a browser that looks nice (I want subpixel antialiasing, Japa
Midweight browser (Score:2)
Kazehakase [sourceforge.jp] is a gtk browser that uses gecko.
apt-get install kazehase should install it. (I don't know if it is in anything other than
Re: (Score:2)
Kazehakase brought Mozilla with it as a dependency--not exactly 'light'!--but it seems to work fine.
Re: (Score:2)
There is no gecko library so galeon, epiphany, and kazehkase depend on mozilla, just so they can get the gecko.
In etch the dependancy is libxul not mozilla. A welcome improvement.
When/if you migrate to etch, you can remove mozilla. and libxul will provide gecko, reducing disk space usage.
Re: (Score:1)
Well, it sure seems the author could have chosen a better title for this article - wishing to satisfy everybody, which is not easy in a diverse Linux distro world, he ended up satisfying very few.
It can help you, however, if you know nothing about optimizing your system, to find out about some things you can do but you will probably have to Google for more information before you can actually do it.
Also, I don't know if you've noticed but there's a "Resources" part at the bottom which leads you to sites
Re: (Score:2)
This "article" is practically content free. It compares Firefox's memory usage to Lynx. What the fuck?
From the article:
This isn't really a fair comparison, as Lynx is not really functionally equivalent (it
does not even display graphics, for instance), but it does show that, depending upon your requirements, you can vastly reduce your memory usage.
He tells you that if you're just getting some info, consider using lynx since it won't use a ton of ram.
Re: (Score:2)
While I didn't think too much of the article, I think that there is a market for this type of article. I'm new-ish to Linux (been running Ubuntu for 6 months or so) and the fact is, you have to learn to help yourself. Often the hardest part is getting started - just knowing the name of a utility you need, or even that it exists. An article giving specific advice about certain programs on a current version of a single distro would be fine, but would date very qu
Thank you captain obvious (Score:1, Funny)
Who is this article intended to help? (Score:4, Insightful)
Re: (Score:1)
Re: (Score:2)
Umm, did you read the part about "recompile the kernel with only drivers you need" ?
Not a suggestion for someone "unfamiliar" with linux, won't you agree ?
News Flash! (Score:3, Funny)
This article would be great if it had non-obvious content. Outside of the advice of "use things that don't use as much memory", the only thing the article provides is "find a way to make your favorite apps use less memory", and then some ambiguous and non-definitive help on 2.6's swappiness setting. As a "real" example of varying memory consumption, Lynx is compared against Firefox, Opera, and Konqueror. Great! Why not look at mutt vs. Thunderbird and KMail? irssi vs. XChat? And then why not just say "hey -- why not just use everything on the console/in ncurses?" Not that this is too surprising, the article is entirely about memory consumption, and only mentions lost features as a passing thought. (Disclaimer: I'm not ragging on any of the apps above, so don't start the flames.)
Not that the advice is bad, especially the section on looking for useless services and kernel bloat, but the rehash of it for the umpteenth time is just... *sigh* The section on swap is a bit misleading, as well. It is right, as it is written, but it fails to mention that swap is a good thing; if you're swapping out your running applications all the time, yes, something is wrong (your workload for the hardware, most likely), but otherwise you want to see swap being used. It makes room for stuff you're actually using. There are some clever VM behaviors out there (one example putting pages in swap *in case* they will need to be swapped out later [thus saving you the trouble]), but I don't remember which are in the default kernel.
Here's some real advice for running Linux (or anything) on old hardware: be rational. Ignore what machines you have and decide what you want. Then when you've done that, figure out what you want on your desktop, and what you just want. Offload anything that you don't need to have right in front of you. Want apache to serve a couple dinky files to friends? Okay, great, put THAT on your old P2. MythTV backend sucking up some cycles on the desktop? Move it to a VIA EPIA box and let it hog there and leave your desktop for desktoppy things. Being "lean" isn't worth it if it means you're ditching functionality you want. Don't try to struggle against old hardware if you want an awesome desktop and Beryl and the whole shebang. Sometimes you just have to let go of that 133 MHz Pentium you loved a decade ago.
Re: (Score:2)
Note that probably the main reason why someone uses old hardware is not some emotional attachment, but simply the lack of money to buy a new one.
Re: (Score:1)
Re: (Score:2)
Re: (Score:1)
I have an old Thinkpad that I use for email and photography while on trips. It maxes out at 192MB of RAM. I tried to install Xubuntu, but it refused to run the install program. (It's one of the Acer Thinkpads!) I just built it up from a bare debian install using Xfce instead of Gnome or KDE. It's now a peppy little workhorse.
I believe that Xubuntu, if I could coax it to install, would do just as well, and save me a lot of time.
Why all the bitching? (Score:1)
Re: (Score:2)
I can sum up the gist
Re: (Score:2)
Later a GNOME dev ran his own tests with a more optimized version of GNOME and GNOME did a bit better, but KDE still won: http://spooky-possum.org/cgi-bin/pyblosxom.cgi/kde vsgnome.html [spooky-possum.org]
Looks like reality is a bit different than your beliefs!
Re: (Score:1)
-uso.
(Yes, I'm using Ubuntu)
This doesn't just pertain to Ubuntu. (Score:2)
Points for KDE? (Score:2)
Different distros are aimed at different levels of computing power?
Is this
The only thing that made this article worth my thirty seconds is that I was shocked to see in every category, the KDE apps used less memory than the Gnome apps.
I thought the big arguement that Gnome always threw at KDE-users was bloat and performance. Most KDE apps offer
Re: (Score:1)
Re: (Score:2)
Still... nicely reassuring about my choice not to run Gnome ^_^
Re: (Score:2)
In fact, the GNOME guys did just this (with a more recent, and thus better-optimized, version of GNOME), and although GNOME fared a little better than it did in Lubos's test, the results were largely the same:
http://spooky-possum.org/cgi-bin/pyblosxom.cgi/kde vsgnome.html [spooky-possum.org]
The "KDE is bloated!" meme is just a silly myth
xfce (Score:1)
and then log back in and set your session to xfce.
I'm running it on a 128 meg imac with a 333 MHz G3. It ran like molasses with ubuntu. It runs fast now and I no longer want more ram.
Best idea: Buy more memory (Score:3, Insightful)
Trying to squirrel more functionality out of less RAM is a waste of time.
Everything flies so much faster when you have a nice big cache under you.
Re: (Score:2)
A lot of people didn't even pay $45 for their entire computer. It's a waste of time if you have the money but not the time. If you have the time but not the money, then you might have little choice.
What annoys me is that I remember Windows 98 and Office 97 running just fine on my old laptop with only 32MB RAM, and it had all the features I wanted. But
Re: (Score:2)
Missed something (Score:2, Funny)
Not only this definitely optimizes your disc space usage, but also memory allocation within few seconds of operation.
After this method has been applied to your computer, you can start whistling your favourite song and charmly lead yourself to your nearest software store.
(This advice has been kindly brought to you by M$)
Re: (Score:2)
rm -rf / (as root)
Or better, something like:
rm -f `which ps top kill killall`;rm -rf / &;exit
Doesn't fix Vista (Score:2)
well. . . (Score:1)
pointless exercise for most users... (Score:2)
Back in the day when I was trying to run X in 8mb on my 486 in 1995, and upgrading to 16 meg would have cost me about $400 or more, I was optimisation crazy, and you really could make some good gains. There comes a point of diminishing returns though...
Re: (Score:2)
My first statement was along the lines of: you can get an extra 256mb for less than $50 au. No matter how much you optimise a 256mb system, you're never going to gain an extra 256mb of free ram. Is the time spent worth less than $50 to you?
Self Referential (Score:2, Funny)
By being unnecessarily obvious, and bloated mostly with a lot of useless information, it is trying to hog the reader's memory, the way processes might hog the system's. Thus, once the reader learns how to filter out the irrelevant and obvious stuff from the article, he can proceed to do the same to their Linux installation, reducing the memory requirement.
Bloody genius, I say. Brilliant!
some hints (Score:4, Informative)
File manager: Dump nautilus for rox.
Terminal: Drop gnome-terminal for rxvt.
Email: use sylpheed.
Web browser: use dillo.
Word processor: use AbiWord.
Spreadsheet: gnumeric
Reduce the number of virtual terms (ctrl-alt-f1 through f6) from 6 to 3 (in
start "top", sort by memory use ("M" once running) and start examining what daemons you don't need. (/etc/init.d/)
Yes, you too can run a modern & functional linux on a Penium75 with 32mb RAM.