LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-22-2011, 12:52 PM   #1
kcredden
LQ Newbie
 
Registered: Jul 2006
Posts: 26

Rep: Reputation: 0
memory manager for ubuntu or debian


Hey folks: In Ubuntu there is a little program for the panel called system monitor. Put it on, and it answered one major question; why does the system nearly stop when transferring large numbers of files via Nautilus. Reason? Memory leaks.

I do use a simple batch program I wrote that does this:

sudo sync
sudo echo 3 | sudo tee /proc/sys/vm/drop_caches

But it's only a stop-gap. Within seconds, the memory is stuffed again.

I know in windows, you have to have a memory manager to keep the system from crashing. It automatically cleans out memory when it reaches a certain level. But I haven't seen anything like this in Ubuntu. Is there anything that I can do to transfer files, or other things without the memory leaks, or at least keep the memory leaks down automatically?
 
Old 01-22-2011, 01:49 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,608

Rep: Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517
http://www.linuxatemyram.com/

Linux is SUPPOSED to use all your RAM. It's not leaking, it's putting your memory to good use. Empty RAM is wasted RAM. Windows Vista and 7 do this too, by the way.

You are approaching this wrong and are "fixing" a non-problem with something that will actually make your case worse. When you drop the file caches, the system has to get the ex-cached files from (super slow) disk instead of (very fast) RAM again.

Quote:
Why does the system nearly stop when transferring large numbers of files via Nautilus.
Probably because your disk is getting hammered. Less likely, your CPU is getting fully used. In either case, you observe a decrease of speed in your interactions with the system.

You should reduce the CPU and I/O priority of your transfer process. Do this by starting Nautilus with "nice" and "ionice -c3". You didn't say what version Ubuntu, but if it's within the past few years, "ionice" will be available. Something like this in a terminal:
Code:
ionice -c3 nice nautilus &
 
  


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
LXer: Keryx: Portable, Cross-Platform Offline Package Manager For Ubuntu / Debian LXer Syndicated Linux News 0 01-03-2010 06:00 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Debian 5 05-29-2009 02:02 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 08:51 AM
Recommendations for a Ubuntu or Debian live cd / iso with small memory footprint ? uncle-c Linux - Newbie 2 05-06-2009 11:34 AM
Flash memory as Video memory in Ubuntu? caa1980 Ubuntu 6 10-25-2007 11:55 AM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration