Jump to content

MDK is eating my memory


kmc77
 Share

Recommended Posts

Is it normal for Mandrake to use over 220 meg of memory with no programs running. I'm new to Linux and only have 256 meg of mem installed in my computer. The listed system requirements and even sugested memory is much lower that what mine is using now.

 

Anybody have any idea what is going on?

If this is norm, then I guess I'll have to go get more memory.

 

I appreciate any help on this.

Link to comment
Share on other sites

It's perfectly normal, and does not mean you need extra memory.

 

Linux will keep parts of the kernel, recent programs and libraries in memory until you need that memory for something else - such as running a new program.

 

The kernel will then free up the memory you need.

 

As long as your system is still responsive, and no excessive disk swapping (thrashing) is occurring there is no need for concern

Link to comment
Share on other sites

Is it normal for Mandrake to use over 220 meg of memory with no programs running.

Pretty normal. Linux loves ram, but is very good at flushing out unused to make room as needed.

 

sure there is programs (processes) running, open a terminal and run

top

or

ps -auxf

 

try and cut back on unneeded services at boot with the commands

service

and

chkconfig

or in mcc?System>DrakXServices

Link to comment
Share on other sites

I don't know the specifics, but liek told linux keeps programs that you used rece,tly in ram or somethiung like that. So, when you start those programs again they will load faster since (a part of them/ ) tehy are already in memory. Maybe they do it some other way, but I suppose the purpose it that programs load faster. Ram memory is faster than loading from secondary storage like harddisk, .... You know that I suppose...

 

As long as you don't use too much swap it is ok. It is indeed normal that your swap is fully used. Your ram may also be used ofcourse ..that's what it is there for, but if it is used really a lot, then you maybe could thinkg of adding mroe ram, but I use 128 MB ram (900Mhz cpu) and use Mandrake 9.1 and it runs fine with me.. Ofcourse we maybe have different needs, althoufgh I can run things like eclipse ((big) java IDE= written in java I mean with JAVA IDE), mozilla, music and gaim at the same time sometimes.... When switching virtual desktops I maybe have to wait for mozilla to redraw or saw when I use my computer heavily, but that happens quick enough. Depends on the apps and how heavy they are. couple of secs or so I think, but that is under quite heavy use..for me anyway. The linux 2.6.x kernel has improved memory usage quite some I thought, maybe trying out that if you want more responsiveness or maybez even the multimedia-kernel ..but am not sure about the stability of it yet.

 

So, looking at ram, is not raellly an indication you need ore memory, it is more an indication when you have "too" mcuh, when linux doesn't use a lot of it :).

Edited by Michel
Link to comment
Share on other sites

Also just noticed that I have my swap file set at 2gig.  Is that too much?

too much? Not if you don't need the space for something else. With 256mb RAM you won't need a swap over 500mb for sure and I've had a 200mb swap now for 6 months. It has gotten full a few times though with mem leak apps like mplayer and version or 2 of XFree86. 500mb is a good/safe amount for 256mb RAM

Edited by bvc
Link to comment
Share on other sites

kmc77: It's ok when free says that 200 MB are used, here's what the output of free should look like:

[martin@Mandrake_AMD64 martin]$ free

            total          used            free          shared    buffers  cached

Mem:  1021432 1011128      10304          0          5532      583512

-/+ buffers/cache:  422084  599348

Swap:    488872        384  488488

As you can see, almost 1 gig of my RAM is used but the part to focus on is "cached". That's what actually is not used but cached hence free.

Edited by D'Espice
Link to comment
Share on other sites

As long as

free

tells you that swap is used, add ram.

If you can't add ram anymore, it's time for a new system; amd-64 systems should allow for over 64GB of ram.

I just started to save money for that :P

 

All kidding aside, from 256 to 512 you will likely get quite nice performance boost if you're a heavy multitasker.

I start upon (auto) login the following programs (with .kde/Autostart) :

evolution, xmms, opera, gkrellm 2x (one for my server, one for my workstation), bluefish, konqueror with java to my server vnc sessions (2 of those).

(And since I autologin, I run 'xlock' as well, so basically I boot the machine, make some tea or grab my notes, and when I come back, presto, my desktop is ready and only needs my password to unlock and unleash..)

 

On top of those programs, I usually also run quanta plus, and xine or mplayer, and sometimes xsane, kuickshow, gimp, OOo writer (or other OOo app), and I rarely close 'productivity' programs (anything but multimedia playback programs) -- and usually, no diskswap gets used.

That's how it should be.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...