LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2011, 06:21 AM   #1
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
Keeping Mem. Usage Down


I am running into a bit of lag while using internet. It happens mostly while watching youtube or something that uses alot of flash. The browser I am using is Google Chrome. I relate the problem to memory, Here is how my logic works. Before Chrome (with nothing running but desktop and whatever starts at login) my mem. is at 48%, Which is around what it usually is. But after I start chrome it fluctuates somewhere between 80-90%, Sometimes more. Now as far as I understand Linux stores most info into ram so it doesn't have to load from the HDD, Thus saving me time, So I am fine with it being at 48%. But it running at 80-90% seems off, as prior (about a week ago) it was only bumping up to 65-70%.

I have 2 256-DDR2 giving me 512MB, But I have 25 set aside for the system to use when it needs it. So running free -m yields:
Code:
hevithan@hevithan-LifeBook-S6240:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           487        472         14          0         13        171
-/+ buffers/cache:        286        200
Swap:         1070        143        927
That is with Terminal, and Chrome running (only thing open in chrome is LQ).

so here are my questions:

1.) Is there a way for me to gain more memory so everything runs a bit smoother when I am online?

2.) I am currently using GNOME, Would using a different DM use less memory? IF SO, Which one is best for most memory? (Xfce uses less right?)

3.) Was setting aside 25Mb too much or too little?

Any answer, solution, tip, or form of suggestion is much appreciated. Also if you can think of anything I may not have mentioned.

Thanks.

Last edited by Hevithan; 06-08-2011 at 06:24 AM.
 
Old 06-08-2011, 06:58 AM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by Hevithan View Post
I am running into a bit of lag while using internet. It happens mostly while watching youtube or something that uses alot of flash.
Very likely the problem is in your internet service provider, not in your own computer. If it is in your own computer, it could be many things other than lack of memory.

Quote:
I understand Linux stores most info into ram so it doesn't have to load from the HDD, Thus saving me time, So I am fine with it being at 48%. But it running at 80-90% seems off, as prior (about a week ago) it was only bumping up to 65-70%.
The value you seem to be looking at is not meaningful, so the comparison is not meaningful. As long as the "cached" amount is fairly high, it doesn't matter how high the total used is.

Quote:
-/+ buffers/cache: 286 200
That is the best simple memory measure to look at. If you consider all of buffer and cache as equivalent to free then your system has 286MB used and 200Mb free. Most buffer and cache memory is effectively free, but not all. So this gives a slightly more optimistic view of memory than is true. But it is closer to true than any of the other simple statistics you might look at.

Quote:
1.) Is there a way for me to gain more memory so everything runs a bit smoother when I am online?
I don't know whether you could significantly reduce your true memory use nor whether doing so would improve your online performance.

Quote:
2.) I am currently using GNOME, Would using a different DM use less memory?
Certainly.

Quote:
Which one
Way outside my expertise.
 
1 members found this post helpful.
Old 06-08-2011, 07:01 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
1.) Is there a way for me to gain more memory so everything runs a bit smoother when I am online?
With only 512MB total, thinking about adding some physical RAM is probably the way to go. Even bumping it to 1GB would make a very noticeable difference. If physical memory isn't a possibility, go through and make sure that you don't have any unnecessary programs running. A lot of distros will start a variety of daemons at boot time. Make sure you know what is running and if you need it.

Quote:
2.) I am currently using GNOME, Would using a different DM use less memory? IF SO, Which one is best for most memory? (Xfce uses less right?)
Absolutely use a different X environment. Xfce is a step in the right direction, and I'd even think about one of the *box environments like Openbox or Fluxbox. I've got a P4 machine with 1GB RAM and with Fluxbox performance is surprisingly good.


Quote:
3.) Was setting aside 25Mb too much or too little?
To be honest, I wouldn't "set aside" anything. Let Linux deal with the memory.

Now one other thing, no matter what Flash is just a pig. With only 512MB of RAM, even tweaking your machine to the max is probably not going to bring a ton of relief.
 
1 members found this post helpful.
Old 06-08-2011, 07:19 AM   #4
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Original Poster
Rep: Reputation: 40
Quote:
The value you seem to be looking at is not meaningful, so the comparison is not meaningful. As long as the "cached" amount is fairly high, it doesn't matter how high the total used is.
Yeah, What I was looking at was the 487-472, I'll keep in mind to look at the buffer-cache in the future.
Quote:
With only 512MB total, thinking about adding some physical RAM is probably the way to go.
I had plans for this in the near future, But until those funds are freed up (priorities and all), I'm stuck with 512.

Quote:
Absolutely use a different X environment. Xfce is a step in the right direction, and I'd even think about one of the *box environments like Openbox or Fluxbox.
Xfce sounded good, Because I am running a dual boot, and my other distro has it and I like it alot. I am looking at the fluxbox site as we speak, as well as flux-wiki, and it is looking like a good bet. I'll probably install it on my second distro just to see if I like it first.

Thank you both for your input and suggestions. I have found something to keep me busy today. Seeing as how my major concerns where addressed I am marking as solved.

Last edited by Hevithan; 06-08-2011 at 07:20 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
processes/CPU Usage/Mem Usage desktop wallpaper ceantuco Linux - Newbie 2 04-13-2009 01:14 PM
Lowering Mem usage DropHit Red Hat 2 12-20-2003 10:36 PM
XWindosw - 1G (and more) mem usage!! drand Linux - General 2 12-02-2003 12:28 PM
High Mem Usage miketheninja Linux - General 2 11-05-2003 04:26 PM
post your mem usage... zeky Linux - General 36 12-10-2002 12:41 AM


All times are GMT -5. The time now is 07:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration