Page 1 of 1
mageia on small laptop

Posted:
Jan 7th, '13, 09:44
by pmithrandir
Hello.
I recently installed mageia 2 on my eCafe (hercule). It works great.
I have a lot of services enable on startup, and I would like to know if I can disable some of them. Maybe there is some wiki page about it ?
Or maybe first, if there is a way to get the full list of service enable on console to give it to you for advice.
Thanks
Pierre
Re: mageia on small laptop

Posted:
Jan 8th, '13, 11:17
by digigold
Have you used
Mageia's Service Manager located in the
System section of the
Mageia Control Center? It can also be accesed by:
- Code: Select all
$ drakxservices
Re: mageia on small laptop

Posted:
Jan 8th, '13, 11:23
by pmithrandir
Hello,
yes, I went in the MCC and checked my services.
The problem is that a lot of them have name hard to connect to there real description.
I hope some of them would not be very usefull, and will allow me to remove them, but I don't really know which one to disabled.
To get advice from the forum, I was interested to get a linux command to generate the list of services avaliable on my computer in text format, and then, for advice on what to remove.
Mageia 2 works, but it's a little slow, even with 1 GB of memory.
Thanks,
Pierre
Re: mageia on small laptop

Posted:
Jan 8th, '13, 12:47
by djennings
Mageia 2 works, but it's a little slow, even with 1 GB of memory.
Which desktop are you using? If it is KDE, 1GB of memory is not very much at all.
Re: mageia on small laptop

Posted:
Jan 8th, '13, 12:56
by pmithrandir
I'm using KDE, in ultra portable mode. (different presentation)
The memory seems to be not so much used... it's just that the chole system doesn't respond and boot very quickly. (a minute)
usually, small laptop sell in store boot much quickly because a lot of stuff are disabled. I'm trying to reproduce it.
Thanks
Re: mageia on small laptop

Posted:
Jan 8th, '13, 13:24
by djennings
If you are using KDE I think you will find that what is killing your performance are the twin performance hogs akonadi and nepomuk. They will be consuming much more resource than any of the system services.
The only reliable way I found of stopping them running is to uninstall them. That will also rip out applications that depend on them such as Amarok but there are faster and lighter alternatives you can use instead (such as Clementine)
After having been a long time KDE user for many years I finally gave up on KDE when Mageia 2 came out and have switched to XFCE
Re: mageia on small laptop

Posted:
Jan 8th, '13, 13:48
by pmithrandir
thanks for the advice.
I thought that just disabling the index creation was enough.
I will uninstall it on my computer also.
And Amarok is definitly not welcome on my computers, so it's not an issue.
I don't want to switch to XFCE for the moment, I have KDE on another computer and it's enough for me to learn how to set up one desktop environment.
If anyone has other improvment idea, I'm open to suggestion.
Pierre
Re: mageia on small laptop

Posted:
Jan 8th, '13, 21:19
by doktor5000
djennings wrote:The only reliable way I found of stopping them running is to uninstall them. That will also rip out applications that depend on them such as Amarok but there are faster and lighter alternatives you can use instead (such as Clementine)
There are better ways to do it:
https://wiki.mageia.org/en/Speeding_up_ ... _ResourcesThis will remove Akonadi, Nepomuk can be easily disabled and you can still run Amarok (if you want to)
Above mentioned wiki page has some more hints to speed up KDE.
@pmithrandir: Maybe before you start disabling some services, best show which your currently have so others could take a look.
You may also want to analyze system startup via plotting it into an SVG and looking at it afterwards, similar to bootchart:
- Code: Select all
systemd-analyze plot > boot.svg
Re: mageia on small laptop

Posted:
Jan 9th, '13, 00:13
by digigold
systemd-analyze is a hand tool. It is not installed by default, so you must install the systemd-tools package. (I believe this pkg has only one file, systemd-analyze..)
Re: mageia on small laptop

Posted:
Jan 9th, '13, 00:18
by digigold
doktor5000 wrote:djennings wrote:The only reliable way I found of stopping them running is to uninstall them. That will also rip out applications that depend on them such as Amarok but there are faster and lighter alternatives you can use instead (such as Clementine)
There are better ways to do it:
https://wiki.mageia.org/en/Speeding_up_ ... _ResourcesThis will remove Akonadi, Nepomuk can be easily disabled and you can still run Amarok (if you want to)
Even w/o Akonadi and Nepomuk, Amarok is still a memory hog IMHO. Clementine is great and much less resource intensive. (My current favorite audio player in fact.)
Re: mageia on small laptop

Posted:
Jan 9th, '13, 09:37
by pmithrandir
Thank you. I used them yesterday. I didn't have much time to test, but it seems to be a little bit quicker with the advices of your page.
doktor5000 wrote:@pmithrandir: Maybe before you start disabling some services, best show which your currently have so others could take a look.
You may also want to analyze system startup via plotting it into an SVG and looking at it afterwards, similar to bootchart:
- Code: Select all
systemd-analyze plot > boot.svg
Do you know a command to get the list of all services running ?
I don't want to copy paste 50 lies from the MCC if I can avoid it.
As soon as I got the result, I will put it here.
Regarding amarok, I don't use it, for the same reason than other people in this thread. I tried to uninstall it when I was on mageia 1, and it was not possible without removing KDE, but I will eventually try on mageia 2 to see if it's allowed now.
Re: mageia on small laptop

Posted:
Jan 9th, '13, 13:26
by wintpe
chkconfig --list|grep on
Re: mageia on small laptop

Posted:
Jan 9th, '13, 21:24
by doktor5000
wintpe wrote:chkconfig --list|grep on
Doesn't list all services ...
With systemd you can do something like
- Code: Select all
systemctl list-unit-files --type=service
or
- Code: Select all
ls -a /lib/systemd/system/*.service /etc/systemd/system/*.service
You may want to look at
http://fedoraproject.org/wiki/Systemdor
http://fedoraproject.org/wiki/SysVinit_ ... Cheatsheet
Re: mageia on small laptop

Posted:
Jan 9th, '13, 21:49
by pmithrandir
Bonjour
Voici la liste des services :
- Code: Select all
UNIT FILE STATE
accounts-daemon.service disabled
acpid.service enabled
alsa-restore.service static
alsa-store.service static
alsa.service masked
atd.service enabled
autovt@.service disabled
avahi-daemon.service enabled
avahi-dnsconfd.service disabled
canberra-system-bootup.service disabled
canberra-system-shutdown-reboot.service disabled
canberra-system-shutdown.service disabled
colord.service disabled
console-kit-daemon.service disabled
console-kit-log-system-restart.service static
console-kit-log-system-start.service static
console-kit-log-system-stop.service static
console-shell.service disabled
cpufreq.service enabled
crond.service enabled
dbus-org.freedesktop.Avahi.service enabled
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.timedate1.service static
dbus.service static
display-manager-failure.service static
display-manager.service static
dm.service static
dracut-shutdown.service static
emergency.service static
fedora-autorelabel-mark.service static
fedora-autorelabel.service static
fedora-configure.service static
fedora-loadmodules.service static
fedora-readonly.service static
fedora-storage-init-late.service static
fedora-storage-init.service static
fedora-wait-storage.service static
fsck-root.service static
fsck@.service static
getty@.service enabled
halt-local.service static
halt.service static
ip6tables.service disabled
iptables.service enabled
irqbalance.service enabled
kexec.service static
lm_sensors.service disabled
mandriva-boot-links.service static
mandriva-clean-var-run-lock.service static
mandriva-everytime.service static
mandriva-kmsg-loglevel.service static
mandriva-save-dmesg.service static
mdmonitor-takeover.service disabled
mdmonitor.service disabled
messagebus.service static
netfs.service masked
NetworkManager-wait-online.service disabled
NetworkManager.service enabled
networkmanager.service disabled
ntp-wait.service disabled
ntpd.service enabled
ntpdate.service static
plymouth-halt.service static
plymouth-kexec.service static
plymouth-poweroff.service static
plymouth-quit-wait.service static
plymouth-quit.service static
plymouth-read-write.service static
plymouth-reboot.service static
plymouth-start.service static
polkitd.service disabled
poweroff.service static
prefdm.service static
proc-bus-usb-setup.service static
quotacheck.service static
quotaon.service static
rc-local.service static
readahead-collect.service static
readahead-replay.service static
readahead-sort.service static
reboot.service static
remount-rootfs.service static
rescue.service static
rpcbind.service enabled
rsyslog.service enabled
rtkit-daemon.service disabled
sensord.service enabled
serial-getty@.service static
sound.service masked
speech-dispatcherd.service disabled
sshd.service disabled
syslog.service enabled
systemd-ask-password-console.service static
systemd-ask-password-plymouth.service static
systemd-ask-password-wall.service static
systemd-binfmt.service static
systemd-hostnamed.service static
systemd-initctl.service static
systemd-journald.service static
systemd-localed.service static
systemd-logind.service static
systemd-modules-load.service static
systemd-random-seed-load.service static
systemd-random-seed-save.service static
systemd-readahead-collect.service enabled
systemd-readahead-done.service static
systemd-readahead-replay.service enabled
systemd-remount-api-vfs.service static
systemd-shutdownd.service static
systemd-sysctl.service static
systemd-timedated.service static
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp-shutdown.service static
systemd-user-sessions.service static
systemd-vconsole-setup.service static
udev-configure-printer.service disabled
udev-settle.service disabled
udev-trigger.service static
udev.service static
udisks2.service static
udisksd.service disabled
upowerd.service enabled
user@.service static
xdm.service disabled
129 unit files listed.
Vous en pensez quoi ?
Merci pour votre aide,
Pierre
Re: mageia on small laptop

Posted:
Jan 9th, '13, 22:27
by doktor5000
pmithrandir wrote:Bonjour
Voici la liste des services :
[...]
Vous en pensez quoi ?
Merci pour votre aide,
Please don't forget this is an english forum

This is what i'd disable, as i don't use any of those:
pmithrandir wrote:- Code: Select all
UNIT FILE STATE
atd.service enabled
avahi-daemon.service enabled
avahi-dnsconfd.service disabled
crond.service enabled
dbus-org.freedesktop.Avahi.service enabled
dbus-org.freedesktop.NetworkManager.service enabled
iptables.service enabled
NetworkManager.service enabled
rpcbind.service enabled
sensord.service enabled
If you use NFS shares, you may want to keep rpcbind.service though! Also you should take a look what is maybe autostarted within KDE,
regarding KDE's own services (systemsettings -> Startup and Shutdown -> Service Managemen) and also other stuff which is desktop-agnostic
-> check
~/.config/autostart
~/Autostart
and also
/etc/xdg/autostart/
Re: mageia on small laptop

Posted:
Jan 10th, '13, 13:49
by pmithrandir
Sorry for the french. i'm keeping switching from one langage to another... my mistakes.
I will try to disable these servcies, except networkmanager because I use it.
Hoping it will result in some improvments.
Another question would be, is there any service / process at the startup that check the hardware present in the computer ? I mean, my ecafe is never going to change, except more memory maybe, do I need to check at each boot that the config is the same(if mageia does it)
Thank you,
Pierre
PS : It start to be more fluid, even if desktop effect are now enable.
Re: mageia on small laptop

Posted:
Jan 10th, '13, 23:05
by doktor5000
pmithrandir wrote:Another question would be, is there any service / process at the startup that check the hardware present in the computer ? I mean, my ecafe is never going to change, except more memory maybe, do I need to check at each boot that the config is the same(if mageia does it)
Yes, the mandrake_everytime service launches harddrake during boot. You may need to edit /etc/init.d/mandrake_everytime or /etc/rc.d/init.d/mandrake_everytime i always forget which is which.
Re: mageia on small laptop

Posted:
Jan 13th, '13, 13:03
by pmithrandir
Hello,
I used the MCC service panel to disable them.
Does it work like that ?
(I remember that it was not so sure after the migration to the new init system)
Re: mageia on small laptop

Posted:
Jan 13th, '13, 15:08
by doktor5000
Well, it should, but best check via systemctl / ps -ef if they are really disabled.