LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-19-2011, 08:52 AM   #1
banuazizi
LQ Newbie
 
Registered: Jul 2011
Location: Jönköping, Sweden
Distribution: Ubuntu 11
Posts: 5

Rep: Reputation: Disabled
Which services can I close on a low memory system ?


In system monitor, there are numerous processes. Some such as metacity and nautilus are using 12-21 mb memory. Since my server is a 512 mb computer, which services or processes can I safely remove or end ?
Attached Thumbnails
Click image for larger version

Name:	Screenshot-System Monitor-1.png
Views:	19
Size:	44.6 KB
ID:	7609   Click image for larger version

Name:	Screenshot-System Monitor.png
Views:	32
Size:	206.8 KB
ID:	7610  
 
Old 07-19-2011, 09:15 AM   #2
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
The short answer is "Whatever processes you don't need." Unfortunately, the only one who can answer that is you.

1) Identify a process you think you can live without.
2) Learn what it does.
3) Decide if you can live without it, or if it's worth looking for a leaner alternative.

Metacity is probably your window manager, and nautilus is probably your default file manager, which would be needed for certain desktop functions, so those are probably not good candidates. But I'm willing to bet you don't need that bluetooth app.
 
Old 07-19-2011, 10:11 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
There are much lighter weight distros than Ubuntu; if you want to stay with Ubuntu, there a much lighter weight desktops (window manager +) solutions than Gnome ...
 
Old 07-19-2011, 10:14 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
What you really need is a much lighter desktop environment, such as LXDE.

GNOME is just not going to run properly with your amount of RAM.

You should remove the ubuntu-desktop package and install the lubuntu-desktop package.

Then you can reboot and select lubuntu as the session in your desktop manager.

To get rid of unnecessary gnome packages

Code:
sudo apt-get update && sudo apt-get autoremove
 
Old 07-19-2011, 10:58 AM   #5
reverend_hh
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
Starting to sound like a broken record here but you'll be needing a lighter desktop, try xfce.
 
Old 07-19-2011, 11:40 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Distribution can be as important as desktop when it comes to memory requirements. For example, Xubuntu with Xfce uses 50% more memory than Debian with Gnome! For a compact, stable Xfce distro you could try Salix or Vector Standard.
 
Old 07-19-2011, 12:21 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
In system monitor, there are numerous processes. Some such as metacity and nautilus are using 12-21 mb memory. Since my server is a 512 mb computer, which services or processes can I safely remove or end ?
Seeing as you're referring to it as a server: get rid of the (ANY) GUI.
That should make a good start.


Cheers,
Tink
 
1 members found this post helpful.
Old 07-19-2011, 12:38 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Is that computer only a server? In other words, do you need a desktop running on it?

If that's only a server you should not need X for anything at all, and much less a desktop environment like Gnome. If you also use that computer as a desktop, you should look for a lighter overall solution. With that amount of ram you shouldn't have problems with any distro, as long as you don't use kde, gnome or xfce and you know how to configure the services that are running.

Either way (if you use it dedicated or also as a desktop) what kind of server is it? What is it supposed to serve? Printing, files, web, ssh, ....? Let us know so we can give better advice.
 
1 members found this post helpful.
Old 07-19-2011, 02:29 PM   #9
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
Unless you are using vino and vinagre together and are using a bluetooth device I would disable the vino server and the bluetooth daemon as they are always starting, also if your not using evolution you could disable the evolution background process.
 
1 members found this post helpful.
Old 07-19-2011, 03:56 PM   #10
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
servers shouldn't ever need a gui, i would backup my config files, install a server distribution (such as ubuntu server), without the desktop, install webmin if you need a gui type access (webmin is a web based management), then put your config files back into place. the server install should install a base system + whatever daemons (server services) you need + dependencies, guis on server machines eat more resources than necessary for server management and provide security holes at that, which is why you will almost NEVER, if ever, see a desktop of ANY kind installed on a server farm. After that, as suggested, learn what each service does and (if you have installed webmin, go to the system/bootup/shutdown, checkmark the ones that you don't need and click 'disable now and on startup', this way if it breaks something you can usually go back in and turn them back on)
 
1 members found this post helpful.
Old 07-19-2011, 09:29 PM   #11
banuazizi
LQ Newbie
 
Registered: Jul 2011
Location: Jönköping, Sweden
Distribution: Ubuntu 11
Posts: 5

Original Poster
Rep: Reputation: Disabled
Wow thank you everyone for your prompt and informative replies. It is a server, I am going to learn how to instal and configure openVPN server on it. That should be its main purpose. But since I am comfortable on windows and new to linux, I thought I could do things easier in gnome. However the last couple of days have been extra ordinary, I have done a lot of tasks and all in terminal, so I think I am going to remove gnome . Thank you for your collective answers. How do I remove gnome and all its updates ?

Last edited by banuazizi; 07-19-2011 at 09:35 PM. Reason: Corrections
 
Old 07-19-2011, 11:01 PM   #12
David Triebwasser
LQ Newbie
 
Registered: Jul 2011
Location: Richmond, CA
Posts: 7
Blog Entries: 1

Rep: Reputation: Disabled
check to see what services are running

# chkconfig --list

you might do a little web searching to find out what these services do. You probably don't print from your server, or want to run an ftp server, etc... for example:

turn off printing
$ /sbin/chkconfig –level 0123456 cups off

turn off rpc, nfs stuff
$ /sbin/chkconfig –level 0123456 portmap off
$ /sbin/chkconfig –level 0123456 nfslock off
$ /sbin/chkconfig –level 0123456 netfs off
 
1 members found this post helpful.
Old 07-20-2011, 12:00 AM   #13
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by banuazizi View Post
However the last couple of days have been extra ordinary, I have done a lot of tasks and all in terminal, so I think I am going to remove gnome . Thank you for your collective answers. How do I remove gnome and all its updates ?
You don't need to remove Gnome to reduce memory usage; if you change the run level so the system does not start the GUI (sorry, IDK how to do that on Ubuntu but it should be easy enough to find the answer by netsearching) the memory usage will be much reduced. Uninstalling Gnome etc. is only necessary to reduce file system usage.
 
1 members found this post helpful.
Old 07-21-2011, 11:19 AM   #14
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by banuazizi View Post
However the last couple of days have been extra ordinary, I have done a lot of tasks and all in terminal, so I think I am going to remove gnome. How do I remove gnome and all its updates ?
Congratulations! Have a look for /etc/inittab and if you have that it should have a line
id:5:initdefault:
Replace the "5" by a "3" and next time you will boot into the CLI. Keep Gnome, just in case. If you ever want it, you can use the command "startx".
 
1 members found this post helpful.
Old 07-21-2011, 12:35 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by DavidMcCann View Post
Congratulations! Have a look for /etc/inittab and if you have that it should have a line
id:5:initdefault:
Replace the "5" by a "3" and next time you will boot into the CLI. Keep Gnome, just in case. If you ever want it, you can use the command "startx".
And that will make no difference in Ubuntu (or most other debian based distros).
They consider x a service, and its started in all runlevels from 2 to 5 by default,
and has nothing to do with inittab.



Cheers,
Tink
 
  


Reply

Tags
end, services, system



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
looking for free database that has low memory usage and innodb and memory like engin golden_boy615 Linux - Software 8 05-08-2011 07:05 AM
Memory corruption detected in low memory chris1274 Linux - General 2 08-23-2010 10:27 PM
low memory!!HOW to RUN SYSTEM EFFICIENTLY vinnie_vinodh Fedora 8 02-04-2009 11:52 PM
Virtualization solution for low memory system ernetas Linux - Server 3 02-01-2009 10:18 AM
using iptable to close port instead of stopping services Emmanuel_uk Linux - Newbie 1 07-07-2005 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 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