LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-25-2008, 01:19 AM   #1
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Rep: Reputation: 16
Why is Linux so resource hungry?


I'm into the idea of Linux for old & low power PCs (e.g. see Low cost computer guide on Appropedia - focused on the needs of the third world). But I'm finding that regular distros of Linux are more resource hungry than I expected.

Any thoughts on why Mandriva (& I think other distros) uses up memory so easily? "User memory" use is about 400 MB even before any programs are running. Is that normal? (Note that I don't have Compiz/Beryl switched on.)

With Firefox & a bunch of other programs running I can easily get to above 700 MB of my 1 GB RAM and things slow down a lot. The memory use seems comparable to Windows XP, though probably not quite as bad.

I'd rather not have to go to DSL (not a solution I can suggest for newbies) or Puppy (unstable in my experience and less secure than other distros as you run as root).

Thanks!
 
Old 04-25-2008, 01:25 AM   #2
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
You don't have to go as drastic as DSL, something with Xfce would be just fine. Also, a lot of mainstream distros have a lot of services running to make the end user's life as easy as possible, whether they need the services or not.

I'm using about 600mb of my 2gb of RAM in this laptop at the moment, and I have quite a bit running. Switching to Firefox 3 was a major help, they fixed a lot of the memory issues 2.0 had.
 
Old 04-25-2008, 03:43 AM   #3
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
Post Try Freeduc!

As said by others, Mandriva has bad reputation about this point because a lots of things are loaded at boot time. You might try Freeduc http://www.ofset.org/freeduc-cd-presentation
 
Old 04-25-2008, 04:09 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Use a low-resource Gui. Linux itself is quite low resource, but linux itself is a kernel and not much else. The stuff you put on top to make it into a friendly computer use a whole lot more resource.

So, you want to avoid KDE and Gnome, and think more in terms of Xfce, Fluxbox, Enlightenment,... As these are often either 'love it or hate it' experiences, you will need to try them out to see which floats your boat.

And even then, you have to be a bit careful about which apps you use: Using KDE apps, like konqueror, for example, can drag in great swathes of the kde infrastructure in order for it to run under a 'foreign' environment, so do 'before' and 'afters' on starting them up to get an idea.
 
Old 04-25-2008, 05:24 AM   #5
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Quote:
Originally Posted by Chriswaterguy View Post
With Firefox & a bunch of other programs running I can easily get to above 700 MB of my 1 GB RAM and things slow down a lot. The memory use seems comparable to Windows XP, though probably not quite as bad.
[/SIZE]
Linux does by default cram as much into RAM as possible.That doesn't mean it wouldn't work with less RAM.

Get something configureable like a Debian netinstall or anything similar that doesn't install a lot of things by default and then just install what you need.

I did run Puppy on a laptop with 256 Mb RAM w/o harddrive and even there firefox (which is a recource hog) worked.
But I wouldn't go the Puppy or dsl route either.

There is nothing stopping you from installing only the same apps Puppy comes with with a different distro.

You also might want to stick to apps from one gui environment so you don't have gtk and qt loaded all the time.

Last edited by crashmeister; 04-25-2008 at 05:28 AM.
 
Old 04-25-2008, 06:29 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You don't understand how it works, that's why.

Today, I'm going to write this on my site and put it in my sig so that everyone will understand.

The RAM is being used for the disk cache in order to SPEED UP THE SYSTEM. It is not draining resources. It could be a leak tho. If you would post the output of 'free', it would help.

Also, different distros require different minimum hardware, because some features require more resources to run. Even within a distro you can customize it to be much less resource hungry. However, most distros, especially popular ones come bloated by default.
 
Old 04-25-2008, 09:18 AM   #7
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
This depends on how old the PC's in question are and what you want to do with it in the 3rd world. You could omit the X server and with it all GUI applications, stop a lot of services and be able to run it within 16 MB of RAM - chances are that no one will want to use it, not even in the 3rd world. Maybe even more in the 3rd world, as they really feel the need to catch up in terms of technology.

It's the same problem as with donating old PC's to schools: in the end all the kids show up with their new game CD's, just to find out that those old PC's (even W2k is already "ancient" to them) will not play these games. It's either the video card, video RAM, system RAM or hard disk space that is not sufficient enough. So you end up with disgruntled remarks and the need for up-to-date PC hardware.

Linux

Last edited by marquardl; 05-01-2008 at 04:16 AM.
 
Old 04-25-2008, 10:29 AM   #8
czarr
Member
 
Registered: Apr 2008
Distribution: Arch
Posts: 36

Rep: Reputation: 15
I use Archlinux which installs with nothing other than the bare essentials to boot + package manager. adding the things you need are as simple as pacman -S packageA packageB packageC (deps are handled automatically) and my system boots with around 100mb of ram used. After having it on all day/night (kind of uncommon for me cause its a laptop) and with bout 10 tabs on firefox my ram is in the low 400's and the system is snappy (900 mhtz eee pc). No bloat for the win =). Ah and i'm using Openbox as my DE/WM

edit: why do things slow down for you when your ram usage goes up? i thought that unused memory was essentially just wasted memory and you woudlnt' experience slowdowns until you ran out and had to start using the HDD.

Last edited by czarr; 04-25-2008 at 10:30 AM.
 
Old 04-25-2008, 03:28 PM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Here's how I see the use of ram memory.
And as previously mentioned, Debian gives you the option of installing a base minimal system, then you add what you want. It's not as flashy as other distros, but you can dress it up like the rest if you want, flashy comes with a price. I run Debian when I need a OS to work hard and fast with large tasks. If I'm in a relaxed mode, I like my Mandriva, mostly because I have nicer photos displayed on the multiple desktops in it. Both with KDE desktop. Here's how I install the rocket with a desktop (Debian).
I have 4GB of ram memory. With Compiz-fusion running in Debian with KDE and all the software I use on a regular basis installed, kinfocenter sees 3.8GB of ram, 3.23GB of it is free. But when running compiz-fusion, you only have one desktop photo displayed.
 
Old 04-25-2008, 04:00 PM   #10
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I disagree with the suggestions to use a lightweight desktop environment or wm like XFCE or IceWM or fluxbox, unless you're using a computer with less than 128megs of RAM.

One thing to understand about linux is that it doesn't swap out stuff out of RAM unless it really has to. During boot up, it will load up a lot of stuff and leave it in the RAM disk cache even though it doesn't really need it anymore. That RAM is considered "used" even though it can be reallocated at any time at a moment's notice. It's just that linux doesn't do it unless you really are running out of RAM.

I don't know how "bloated" Mandriva is, but I really can't imagine its all THAT much more bloated than Ubuntu (which doesn't have a reputation for leanness either). I can run Ubuntu out-of-box with its heavyweight GNOME desktop environment on a 128meg machine. With Debian (a distribution with a reputation for leanness), I can load up a full GNOME desktop environment on a 64meg machine (but trying to run the relatively bloated Firefox will be uber-sluggish).

For someone new to linux, I never recommend starting with a lightweight desktop environment. Full blown GNOME or KDE is easier to ease into, with their copious GUI tools and more mainstream support. If your computer has 128megs or more or RAM, it'll run either of them. It might not be the zippiest thing, but IMHO it's better to start with a slow desktop than one where you don't know how to do what you want to do.
 
Old 04-25-2008, 05:22 PM   #11
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
Xfce is a full blown desktop environment, it is more of a middleweight than lightweight. It isn't in the same class as IceWM, or any of the *box window managers. Honestly, I prefer Xfce over Gnome, regardless of system resources, there is really nothing it can't do that Gnome can. It isn't that different from Gnome, it is just a little simpler, less uselss "features" to get in the way.

Just because Ubuntu can run in 128mb of RAM, doesn't mean it is going to be an enjoyable experience.

Last edited by elliott678; 04-25-2008 at 05:24 PM.
 
Old 04-26-2008, 03:34 AM   #12
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
But the OP seems to have 1 gig or more... that seems to be fine. If his system becomes sluggish after a couple of programs are open, the ram usage is probably not the problem, and a lightweight desktop won't make much of a difference.
 
Old 04-26-2008, 04:13 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by oskar View Post
and a lightweight desktop won't make much of a difference.
That's cuz you've never tried one.
 
Old 04-26-2008, 05:35 AM   #14
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
No, actually I did use quite a lot of them for quite some time.
It does make a difference once the PC's resources would cringe under a standard gnome installation. But that doesn't seem to be the case with the OP.
 
Old 04-26-2008, 07:31 AM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I think this article may help the OP understand why Linux seems to use up a lot of memory. Unless the system starts swapping a lot, then I personally would not be worried. Firefox is always sluggish for me even on a system with 1GB ram, so sometimes I use Opera or Konqueor.
 
  


Reply

Tags
memory



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hungry Computer ruxban Linux - Security 23 12-25-2006 01:59 PM
Are you a hungry Linux user? Try this sandwich! polarbear20000 General 20 12-19-2006 10:48 AM
while loop too cpu hungry unholy Programming 6 09-07-2004 06:01 PM
RH9 Memory Hungry? Can I SLim it down? tombomb300 Red Hat 2 11-23-2003 04:01 AM
x server is cpu hungry ? juby Linux - General 2 02-17-2003 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration