You are not logged in.

#1 2009-05-01 17:30:01

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Preload - Run after KDM login?

Hi,

I wanted to make my system a little bit faster by tuning the swappiness of the kernel:

vm.swappiness = 10
vm.vfs_cache_pressure = 50

and by using preload.
But I have a problem with this daemon. It sure starts user applications faster, BUT it slows down the boot a lot.
I added KDM to the end of the DAEMON list, and removed the "start in background" option, so that the preload daemon will start after KDM is ready.

DAEMONS=(syslog-ng net-profiles hal !bluetooth @crond !cpufreq !cups @autofs @alsa @pommed kdm preload)

But it doesn't help.
I'd like to start preload after I am logged into KDM / KDE. So when the actual desktop is visible, preload should start and load everything I need for my daily work. Is this possible? If so, how?


digiKam developer - www.digikam.org

Offline

#2 2009-05-01 17:47:38

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Preload - Run after KDM login?

Add it to KDE's autostart?

Offline

#3 2009-05-01 18:10:15

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: Preload - Run after KDM login?

Doesn't it have to run as root?


digiKam developer - www.digikam.org

Offline

#4 2009-05-01 18:28:42

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Preload - Run after KDM login?

Use sudo.

I have added NOPASSWD:/etc/rc.d/preload using visudo, created a file in .kde4/Autostart with

#!/bin/bash

sudo /etc/rc.d/preload start

made it executable, set it to start on startup in System Settings -> Autostart and it works.

Last edited by lucke (2009-05-01 18:29:04)

Offline

#5 2009-05-01 18:33:32

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: Preload - Run after KDM login?

Ok, I will try this... thanks.


digiKam developer - www.digikam.org

Offline

Board footer

Powered by FluxBB