FAQ   Search   Memberlist   Usergroups   Register   Profile   Log in to check your private messages   Log in 

THIS FORUM IS NOW CLOSED FOR ALL NEW POSTING. PLEASE GO TO THE NEW PSUBUNTU FORUMS TO POST NEW TOPICS.

This forum will still be available and searchable, but no posting is allowed. We encourage all users to sign up for an account on the new forums.

You can help us maintain valuable information from this forum by copying it over to the new forums or adding it to the PSUbuntu Wiki.

How To: Free Up System RAM To Increase Performance

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PSUbuntuForums Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
tcrroadie



Joined: 12 Nov 2007
Posts: 7
Location: Michigan, USA

PostPosted: Wed Nov 14, 2007 12:53 am    Post subject: How To: Free Up System RAM To Increase Performance Reply with quote

This guide will explain how to easily free up some system ram by disabling unneeded services and the graphical login manager GDM. This guide focuses on the Gnome desktop and Fluxbox window manager. As we already know, the PS3 has a rather limited amount of system ram that can at times cause system slow downs. By disabling unneeded background services such as the print server CUPS and the system task scheduler CRON, we can free up some needed ram. We will also be disabling Gnome's graphical login manager GDM, which alone will free up about 30megs of RAM. The use of the Fluxbox window manager over Gnome will free up an additional 80 megs of RAM. So lets begin.

Step 1

Log into Gnome and disable any services that you may not need by going to System > Administration > Services. Simply uncheck the check box next to any service that you do not want started when you boot Linux. You will also need to uncheck the check box next to GDM since we will be setting up the system to launch your Gnome desktop from a text log in screen. Just ignore the message you receive about data loss.

Step 2

Disable any Gnome specific utilities such as Network Manager and Update Notifier that run in the background by removing them from your session startup list. System > Preferences > Sessions. Again uncheck the check box next to each service that you do not want to start when you log into Gnome.

Step 3

Now we will create a simple text file which will enable us to start our preferred desktop environment from the command line after we log into our system. The name of the file we need to create is called .xinitrc. Working in your users home directory, open a terminal and launch the terminals text editor nano.
Code:
nano .xinitrc

Within this file we need to place the path to the launch script for our preferred desktop environment. To start up the Gnome desktop environment we need to add this line to our .xinitrc file.
Code:
exec /usr/bin/gnome-session

Now save the file and exit nano by pressing ctrl+x.

Step 4

Now you can test out your work by restarting your PS3 and booting into your Linux installation. Now instead of GDM starting up, you will receive a text terminal to log into your system with. Simply login with your user name and password. Now to start Gnome simply issue the command startx.
Code:
startx

Step 5

Now we will install a low resource window manager called Fluxbox. To install Fluxbox from your terminal run
Code:
sudo apt-get install fluxbox

To launch Fluxbox in place of the Gnome desktop, replace the line you entered in your .xinitrc file earlier with this one.
Code:
exec /usr/bin/fluxbox

As an added tip when editing your .xinitrc file, you can have multiple entries in your .xinitrc and simply comment out the lines that you want to disable with the # symbol. For example to launch Fluxbox instead of Gnome, your .xinitrc file would look like this.
Code:
# Start the Gnome Desktop
# exec /usr/bin/gnome-session

# Start the Fluxbox Window Manager
exec /usr/bin/fluxbox

You can also use an alternative lighter weight file manager from the XFCE desktop called Thunar.
Code:
sudo apt-get install thunar

You can find more information on the configuration of Fluxbox at the links below.

http://fluxbox-wiki.org/index.php/Category:English_howtos

http://fluxbox.sourceforge.net/docbook/en/html/

You can download themes and wallpapers for Fluxbox from book-look.org

http://www.box-look.org/
Back to top
View user's profile Send private message
fusionisthefuture



Joined: 28 Oct 2007
Posts: 21

PostPosted: Fri Nov 16, 2007 12:03 am    Post subject: Reply with quote

in feisty i had the option to uncheck gdm in the sessions manager. but in gutsy i dont. am i the only one? how do i change this with a terminal?

thanks,
-arne
_________________
mythtv + PS3 + hdhomerun = so much unused potential Sad

dell 2407wfp-hc
Back to top
View user's profile Send private message
tcrroadie



Joined: 12 Nov 2007
Posts: 7
Location: Michigan, USA

PostPosted: Fri Nov 16, 2007 5:41 pm    Post subject: Reply with quote

Hi fusionisthefuture,

That is odd. The option was in my Gutsy install. Regardless, this is how to disable GDM from your terminal.

You need to disable GDM in your current runlevel. Ubuntu's default runlevel is 2. You can find out what runlevel you are currently in, using the runlevel command.

Code:
kris@T23:~$ runlevel
N 2


All of the startup scripts (which are actually symbolic links) are stored in your /etc/rc2.d directory. The directory rc2.d is for runlevel 2. Lets move to this directory.

Code:
cd /etc/rc2.d/


Now if you run the command ls, you will see the link to the GDM startup script within this directory.

Code:
kris@T23:/etc/rc2.d$ ls
K20wifi-radar                S11klogd          S20powernowd
K89cron                      S12dbus           S20rsync
README                       S13gdm            S90binfmt-support
S05vbesave                   S20apmd           S98usplash
S10acpid                     S20apport         S99acpi-support
S10powernowd.early           S20hotkey-setup   S99rc.local
S10sysklogd                  S20makedev        S99rmnologin
S10xserver-xorg-input-wacom  S20nvidia-kernel  S99stop-readahead


In my example, it is S13gdm. Now simply rename this file to K13gdm using the mv tool.
Code:

sudo mv S13gdm K13gdm

Now restart your PS3 and you should be all set.

Code:
sudo reboot


Last edited by tcrroadie on Sat Feb 23, 2008 2:34 pm; edited 2 times in total
Back to top
View user's profile Send private message
EdgarS



Joined: 10 Dec 2007
Posts: 10

PostPosted: Mon Dec 10, 2007 7:36 pm    Post subject: Reply with quote

men can you expand the tutorial please, i´m a newbie in linux i followed all the tutorial step by step but when i log in in fluxbox i dont know waht to do plz help
Back to top
View user's profile Send private message
Nergar



Joined: 26 Dec 2007
Posts: 1

PostPosted: Fri Dec 28, 2007 8:02 am    Post subject: Reply with quote

This should be in a wiki or something, and if you could explain how a little more about linux desktops,

maybe having IceWM or FVWM would be lighter than gnome/kde/xfce and not as confusing as *box window managers
Back to top
View user's profile Send private message
Radical Dreamer



Joined: 04 Mar 2008
Posts: 4

PostPosted: Thu Mar 06, 2008 2:25 pm    Post subject: Reply with quote

I did everything you said and it worked great, speed is way up.... now if only I had sound. I've tried various things on i found from google, but none of them worked.

So frankly I have no sound at all, not when watching a video and not when playing an SNES game. Any sugestions?
Back to top
View user's profile Send private message
drwells



Joined: 14 Oct 2007
Posts: 2

PostPosted: Sat Mar 08, 2008 5:32 pm    Post subject: Reply with quote

I'd like to start off saying great guide. It worked very well, you could give a warning that unchecking GDM will kill your current gnome session. This was unexpected, but fortunately I have a laptop I could pull your guide up on.

I followed the guide and booted up to a terminal did the startx. However, running Gnome I still use basically all of my system ram. What is the point of disabling GDM if Gnome uses up all of my system RAM anyways? I might as well leave GDM running, eh?

Correct me if I'm mistaken, but you could just leave GDM installed and install alternate desktop managers XFCE/fluxbox/KDE4 and boot those via GDM or XDM. This would skip dumping the user to a terminal (oh noez!) and apparently costs no more ram than remove the desktop manager.
Back to top
View user's profile Send private message
jms



Joined: 30 Dec 2007
Posts: 109
Location: Tre

PostPosted: Sat Mar 08, 2008 7:57 pm    Post subject: Reply with quote

drwells wrote:

Correct me if I'm mistaken, but you could just leave GDM installed and install alternate desktop managers XFCE/fluxbox/KDE4 and boot those via GDM or XDM. This would skip dumping the user to a terminal (oh noez!) and apparently costs no more ram than remove the desktop manager.

Yes, that's correct. Installing for example fluxbox should create a fluxbox session to gdm's session list. But you could also create a script which launches xsession at boot and you wouldn't need gdm at all. Like it used to be at ancient times...
Back to top
View user's profile Send private message
WeeBaldFella



Joined: 13 Mar 2008
Posts: 1
Location: Poole, UK

PostPosted: Thu Mar 13, 2008 1:36 pm    Post subject: Reply with quote

Hi,

I have a fresh install of Gutsy (just set up the resolution and internet connection) on my PS3 and have followed your tutorial up to the part where i go get fluxbox (sudo apt-get install fluxbox).

Unfortunately i can't give the exact message (posting from work .. shhh Razz) but i basically get told that fluxbox is not found.

I can browse the internet so i know my connection is ok. What can i do from here?

Also when I tried to compile from the source tarball for some reason gcc failed. I think i am missing something important but not sure what.

Hope you can help,

<=S=>
Back to top
View user's profile Send private message MSN Messenger
jordan



Joined: 25 Mar 2008
Posts: 3

PostPosted: Tue Mar 25, 2008 8:53 am    Post subject: Reply with quote

You need to disable GDM in your current runlevel. Ubuntu's default runlevel is 2. You can find out what runlevel you are currently in, using the runlevel command.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PSUbuntuForums Forum Index -> Tutorials All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Theme xand created by spleen.