Friday, September 28, 2012

Optimizing KDE

Running LinuxMint 13 (Linux Maya 3.2.0-23-generic) with KDE Development Platform: 4.8.4 on a Mac-Mini (with 1GB RAM).

I tried to use Krita and create document template comics (European) - this particular operation is very resources demanding and causes the system to get slower and slower and finally crash everything.

so I made some optimization - and here's the list (before I forget to put them in writing and will have to struggle to find all the steps back, if I ever have to reinstall someday).
First step was to disable Nepomuk, Strigi and Akonadi - this will prevent you to use KMail afterward - but you will have a lot more memory free 

Second step getting rid of cups, bluetooth, modem-manager, and a few other little things 
echo manual | sudo tee -a /etc/init/tty3.override
echo manual | sudo tee -a /etc/init/tty4.override
echo manual | sudo tee -a /etc/init/tty5.override
echo manual | sudo tee -a /etc/init/tty6.override
echo manual | sudo tee -a /etc/init/bluetooth.override
echo manual | sudo tee -a /etc/init/cups.override
echo manual | sudo tee -a /etc/init/modemmanager.override

sudo mv /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service.disabled
sudo mv com.hp.hplip.service com.hp.hplip.service.disabled
NB : I have to thanks Linuxmint forum helps for that list of command

Now the whole KDE4 environment run with less than 250MB 
$ initctl list | grep running |sort
acpid start/running, process 1008                                                     
atd start/running, process 1022
avahi-daemon start/running, process 750
cron start/running, process 1021
dbus start/running, process 725
irqbalance start/running, process 1016 
kdm start/running, process 1013      
network-interface (eth0) start/running 
network-interface (lo) start/running  
network-interface-security (networking) start/running 
network-interface-security (network-interface/eth0) start/running 
network-interface-security (network-interface/lo) start/running
network-interface-security (network-interface/wlan0) start/running   
network-interface-security (network-manager) start/running    
network-interface (wlan0) start/running                     
network-manager start/running, process 746       
nmbd start/running, process 1445
resolvconf start/running
rsyslog start/running, process 752
smbd start/running, process 715
ssh start/running, process 717
tty1 start/running, process 1189
tty2 start/running, process 980
udev start/running, process 335
ufw start/running
upstart-socket-bridge start/running, process 635
upstart-udev-bridge start/running, process 332
And now I can open that comics template in Krita!

No comments: