Which services may be shut down to improve peformance ?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Which services may be shut down to improve peformance ?

Postby vincentm77 » Apr 23rd, '14, 13:37

Hi Everyone,

I installed Mageia 4 on my Lenovo B5400 and i really like the new distro. Almost everything (actually: everything except the Realtek 8723 wireless adapter...) works from the box.

I checked the list of services enabled on my system, and the list is even longer than on previous Maegia versions...

I wonder which services may be shut down (e.g. in order to save battery or improve overall performance). Like most users, I just need my computer to surf on the internet... No need for web servers, samba...

Could anyone give a hint at services that can be shutdown without the system to become unusable ?

Best regards
Vincent
vincentm77
 
Posts: 59
Joined: Sep 5th, '13, 16:56

Re: Which services may be shut down to improve peformance ?

Postby Lebarhon » Apr 23rd, '14, 19:00

Hi,
If you are using KDE, have a look here, it is not about services but may be more useful to gain time :
https://wiki.mageia.org/en/Speeding_up_KDE
Lebarhon
 
Posts: 408
Joined: Mar 22nd, '11, 22:24
Location: France

Re: Which services may be shut down to improve peformance ?

Postby doktor5000 » Apr 23rd, '14, 21:32

vincentm77 wrote:Could anyone give a hint at services that can be shutdown without the system to become unusable ?

You will usually not gain much at all by disabling services which start at boot. There's also no web server or samba by default.

Please show the output of the following commands as root:

Code: Select all
systemd-analyze blame
systemd-analyze time
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Which services may be shut down to improve peformance ?

Postby vincentm77 » Apr 24th, '14, 20:47

Hi Doktor, thanks for your reply.

Here we go:
Code: Select all
systemd-analyze blame

         11.574s network-up.service
          9.880s shorewall.service
          9.855s shorewall6.service
          6.439s mandriva-everytime.service
          2.617s network.service
          1.815s systemd-fsck@dev-disk-by\x2duuid-9ed0a685\x2d0be0\x2d49b5\x2d93d9\x2d22976be0c118.service
          1.300s fedora-readonly.service
          1.263s home.mount
          1.019s boot-efi.mount
           878ms plymouth-quit-wait.service
           725ms systemd-fsck-root.service
           581ms systemd-tmpfiles-setup-dev.service
           579ms systemd-modules-load.service
           553ms udisks2.service
           548ms systemd-vconsole-setup.service
           494ms systemd-readahead-replay.service
           493ms systemd-readahead-collect.service
           462ms mdmonitor-takeover.service
           456ms dev-hugepages.mount
           447ms sys-kernel-debug.mount
           444ms kmod-static-nodes.service
           438ms dev-mqueue.mount
           430ms mandriva-kmsg-loglevel.service
           425ms systemd-udev-trigger.service
           418ms systemd-udev-settle.service
           346ms systemd-sysctl.service
           325ms polkit.service
           308ms systemd-tmpfiles-clean.service
           227ms tmp.mount
           174ms systemd-remount-fs.service
           168ms user@500.service
           152ms mandriva-save-dmesg.service
           152ms systemd-tmpfiles-setup.service
           129ms plymouth-read-write.service
           128ms systemd-update-utmp.service
           105ms partmon.service
           102ms bluetooth.service
            87ms systemd-journal-flush.service
            82ms systemd-logind.service
            78ms iptables.service
            75ms upower.service
            73ms udisksd.service
            71ms avahi-daemon.service
            57ms microcode_ctl.service
            53ms acpid.service
            52ms cpudyn.service
            37ms msec.service
            35ms ip6tables.service
            34ms systemd-user-sessions.service
            30ms mdmonitor.service
            26ms preload.service
            24ms cpupower.service
            15ms nscd.service
            14ms fedora-loadmodules.service
            13ms mandi.service
            12ms rtkit-daemon.service
             8ms fedora-wait-storage.service
             8ms dev-disk-by\x2duuid-eefd53d6\x2dcec2\x2d4915\x2dba18\x2de69163ea55d6.swap
             3ms fedora-import-state.service
             2ms systemd-backlight@acpi_video0.service
             2ms systemd-update-utmp-runlevel.service
             1ms systemd-udevd.service
             1ms systemd-random-seed.service
           690us systemd-readahead-done.service



systemd-analyze time

Code: Select all
Startup finished in 3.356s (firmware) + 37.631s (loader) + 7.473s (kernel) + 36.836s (userspace) = 1min 25.297s
Last edited by doktor5000 on Apr 24th, '14, 22:15, edited 1 time in total.
Reason: added code tags
vincentm77
 
Posts: 59
Joined: Sep 5th, '13, 16:56

Re: Which services may be shut down to improve peformance ?

Postby doktor5000 » Apr 24th, '14, 22:29

Hmmm, don't see any blocker or something that seems worth disabling at all. Probably caused by I/O-bound boot - you do use a traditional harddisk?
Although for the second command I see ~38 seconds for loader - not sure what that is, do you use (U)EFI? You should investigate that.

What you can do is have a look at the boot altogether how the services start in parallel and in which order.
Code: Select all
systemd-analyze plot > boot.svg

And then look at the resulting graphic, but beware, it is huge ;)


Looks like this here with an SSD, not optimized much and even some services running more compared to your box.
Only thing I always completely remove is iptables and shorewall.

Code: Select all
[doktor5000@Mageia4 ~]$ systemd-analyze time
Startup finished in 5.084s (kernel) + 10.820s (userspace) = 15.904s

Code: Select all
[doktor5000@Mageia4 ~]$ systemd-analyze blame
          5.848s avgd.service
          4.489s network-up.service
          3.155s plymouth-quit-wait.service
          2.412s mandriva-everytime.service
          1.272s network.service
          1.071s postgresql.service
           377ms partmon.service
           317ms virtualbox.service
           209ms resolvconf.service
           198ms systemd-logind.service
           189ms media-win_c.mount
           178ms wine.service
           168ms smb.service
           160ms lm_sensors.service
           159ms systemd-readahead-replay.service
           156ms upower.service
           151ms systemd-readahead-collect.service
           151ms systemd-udev-trigger.service
           147ms ip6tables.service
           142ms preload.service
           141ms iptables.service
           138ms systemd-user-sessions.service
           136ms auditd.service
           135ms cpupower.service
           128ms acpid.service
           122ms avahi-daemon.service
           120ms microcode_ctl.service
           105ms sensord.service
           104ms mandi.service
            97ms dev-hugepages.mount
            97ms sys-kernel-debug.mount
            94ms kmod-static-nodes.service
            93ms proc-sys-fs-binfmt_misc.mount
            93ms fedora-loadmodules.service
            92ms mandriva-kmsg-loglevel.service
            91ms plymouth-read-write.service
            88ms fedora-readonly.service
            88ms dev-mqueue.mount                                                                                                                                       
            84ms udisksd.service                                                                                                                                       
            78ms NetworkManager.service                                                                                                                                 
            73ms mandriva-save-dmesg.service                                                                                                                           
            71ms fedora-import-state.service
            66ms udisks2.service
            60ms systemd-tmpfiles-setup-dev.service
            53ms systemd-journal-flush.service
            51ms systemd-udev-settle.service
            43ms polkit.service
            42ms user@500.service
            41ms systemd-random-seed.service
            39ms systemd-vconsole-setup.service
            33ms systemd-fsck@dev-disk-by\x2duuid-2d072f85\x2d753f\x2d492c\x2db1bb\x2db87a047bc492.service
            31ms teamviewerd.service
            30ms nscd.service
            30ms systemd-modules-load.service
            29ms autofs.service
            20ms fedora-wait-storage.service
            20ms systemd-remount-fs.service
            19ms sys-fs-fuse-connections.mount
            19ms systemd-udevd.service
            14ms systemd-tmpfiles-setup.service
            13ms tmp.mount
            12ms systemd-sysctl.service
            10ms systemd-hostnamed.service
            10ms home.mount
            10ms dev-disk-by\x2duuid-3d760264\x2d99f4\x2d4363\x2da4dd\x2d860f705bf7a5.swap
             9ms wpa_supplicant.service
             7ms rtkit-daemon.service
             5ms systemd-backlight@acpi_video0.service
             3ms systemd-readahead-done.service
             3ms bluetooth.service
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron