You are not logged in.

#1 2012-08-27 19:55:03

ajes
Member
Registered: 2010-10-29
Posts: 12

systemd and systemd-vconsole-setup.service (long time)

Hi,

today I switched to systemd. It's amazing.

I have problem. one of 'service' start very long. Can someone help my figurout how to reduce boot time for: systemd-vconsole-setup.service?

# systemd-analyze blame
  4646ms systemd-vconsole-setup.service
   927ms dev-hugepages.mount
   924ms dev-mqueue.mount
   907ms sys-kernel-debug.mount
   889ms wicd.service
   759ms systemd-udevd.service
   705ms systemd-udev-trigger.service
   459ms systemd-sysctl.service
   306ms systemd-remount-fs.service
   296ms ip6tables.service
   233ms systemd-logind.service
   226ms iptables.service
   209ms console-kit-log-system-start.service
   181ms var.mount
   167ms console-kit-daemon.service
   116ms systemd-tmpfiles-setup.service
   115ms systemd-readahead-collect.service
    99ms home.mount
    93ms systemd-user-sessions.service
    85ms systemd-readahead-replay.service
    18ms boot.mount
     4ms tmp.mount
     4ms proc-sys-fs-binfmt_misc.mount
# systemd-analyze
Startup finished in 1583ms (kernel) + 2946ms (initramfs) + 12669ms (userspace) = 17200ms

My /etc/vconsole.conf doesn't exist (I don't need it). But nothing change if I create it with proper conent.
Any ideas?

Regards

Last edited by ajes (2012-08-27 20:00:30)

Offline

#2 2012-08-28 21:05:29

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: systemd and systemd-vconsole-setup.service (long time)

Can you please post your configured vconsole.conf?

Offline

#3 2012-08-29 06:08:46

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

/etc/vconsole.conf:

$ cat /etc/vconsole.conf 
KEYMAP="pl"
FONT="lat2-16"

My new 'systemd-analyze blame' (I changed wicd to NetworkManager, because I added my GSM modem):

# systemd-analyze blame 
  2657ms systemd-vconsole-setup.service
  2291ms bootchart.service
  1681ms dev-hugepages.mount
  1652ms dev-mqueue.mount
  1617ms sys-kernel-debug.mount
  1383ms NetworkManager.service
  1200ms systemd-udevd.service
  1119ms systemd-udev-trigger.service
   559ms systemd-logind.service
   490ms systemd-sysctl.service
   452ms systemd-remount-fs.service
   300ms var.mount
   296ms systemd-tmpfiles-setup.service
   206ms console-kit-log-system-start.service
   164ms iptables.service
   151ms systemd-readahead-collect.service
   131ms systemd-readahead-replay.service
   123ms tmp.mount
   116ms ip6tables.service
    94ms console-kit-daemon.service
    45ms modem-manager.service
    31ms home.mount
    24ms wpa_supplicant.service
    15ms systemd-user-sessions.service
    14ms boot.mount
     3ms proc-sys-fs-binfmt_misc.mount

and # systemd-analyze:

Startup finished in 1597ms (kernel) + 3243ms (initramfs) + 11042ms (userspace) = 15883ms

Offline

#4 2012-08-29 07:46:56

useradded
Member
From: Edinburgh, UK
Registered: 2010-05-15
Posts: 77

Re: systemd and systemd-vconsole-setup.service (long time)

I have also noticed this service taking a long time at boot.  Like ajes I have a pretty minimal vconsole.conf, with only keymap and font defined.

Offline

#5 2012-08-29 07:55:37

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

So perhaps it is a bug?

Offline

#6 2012-08-29 10:03:02

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: systemd and systemd-vconsole-setup.service (long time)

In my vconsole.conf there are no " " characters surrounding the values, maybe that makes a difference?

KEYMAP=de-latin1-nodeadkeys
FONT=ohsnap7x14r

In the wiki:

KEYMAP=us
FONT=lat9w-16

This is not a recommendation to change your keymap to us  or de .

Offline

#7 2012-08-29 10:19:29

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

@teateawhy I tried your options (de and us) but both makes pretty the same results.
I tried also on my second machine (diffrent hardware, but VGA's in both case are from Intel (MSI Wind U100 and Toshiba Satellite PRO S500-150), but with the same list of packages, and the result are the same. So for me it is hardware independent.

Perhaps I am missing some packages?

Here is my list of 'pacman -Qet':

alsa-utils 1.0.25-3
aspell-pl 20111117-1
autoconf 2.69-1
automake 1.12.3-1
bash-completion 2.0-2
bootchart2-git 20120829-1
calibre 0.8.66-1
cdrdao 1.2.3-6
chromium 21.0.1180.81-2
clamav 0.97.5-2
cups-pdf 2.6.1-1
djview4 4.8-2
dnsutils 9.9.1.P2-1
dosfstools 3.0.12-1
dvd+rw-tools 7.1-4
fakeroot 1.18.4-1
firefox 15.0-1
flashplugin 11.2.202.238-1
fontconfig-infinality 1-20120615
git 1.7.12-1
gnu-netcat 0.7.1-4
google-talkplugin 3.5.1.0-2
gpicview 0.2.3-1
grub-bios 2.00-1
gstreamer0.10-bad-plugins 0.10.23-2
gstreamer0.10-ffmpeg 0.10.13-1
gstreamer0.10-ugly-plugins 0.10.19-2
hdparm 9.39-1
hunspell-pl 20111216-1
hyphen-pl 20060726-1
intel-ucode 20120606-1
iptables 1.4.15-1
iputils 20101006-4
k3b 2.0.2-6
kdegraphics-okular 4.9.0-1
keepass 2.19-1
ktorrent 4.2.1-1
less 444-3
libdvdcss 1.2.12-1
libreoffice-calc 3.5.6-1
libreoffice-extension-languagetool 1.8-2
libreoffice-impress 3.5.6-1
libreoffice-writer 3.5.6-1
libtool 2.4.2-6
lvm2 2.02.97-1
lxappearance-obconf 0.2.0-1
lxde-common 0.5.5-2
lxdm 0.4.1-14
lxinput 0.3.2-2
lxlauncher 0.2.2-1
lxpanel 0.5.10-1
lxrandr 0.1.2-2
lxsession-edit 0.2.0-2
lxshortcut 0.1.2-1
lxtask 0.1.4-3
lxterminal 0.1.11-2
make 3.82-4
man-db 2.6.2-1
man-pages 3.42-1
mc 4.8.4-1
modemmanager 0.5.2.0-4
mtr 0.82-1
mythes-pl 1.5-1
network-manager-applet 0.9.6.2-1
nmap 6.01-2
ntp 4.2.6.p5-11
obconf 2.0.3.git20100309-3
openssh 6.1p1-1
pacbuilder-svn 138-2
patch 2.6.1-3
pcmanfm 1.0-1
pkg-config 0.27.1-1
qnapi 0.1.6_rc2-1
rpmextract 1.0-5
skype 4.0.0.8-1
smartmontools 5.43-1
subtitleeditor 0.40.0-1
sudo 1.8.5.p3-1
systemd-sysvcompat 189-3
ttf-liberation 2.00.0-1
ttf-microsoft-tahoma 5.10-1
ttf-ms-fonts 2.0-9
ttf-ubuntu-font-family 0.80-3
unrar 4.2.4-1
unzip 6.0-6
usb_modeswitch 1.2.4-1
usbutils 006-1
vim 7.3.600-1
virtualbox-ext-oracle 4.1.20-1
vpnc 0.5.3.svn516-3
wget 1.14-1
which 2.20-5
wine 1.5.11-1
wireshark-gtk 1.8.2-1
wvdial 1.61-4
xdotool 2.20110530.1-1
xf86-input-synaptics 1.6.2-1
xf86-video-intel 2.20.5-1
xlockmore 5.40-1
xorg-utils 7.6-8
yaourt-git 20120829-1
zip 3.0-3

and my /etc/makeinitcpio.conf (if it will help):

# grep -v ^# /etc/mkinitcpio.conf 
MODULES="ext4 i915 ahci sd_mod"
BINARIES=""
FILES=""
HOOKS="base udev lvm2 autodetect timestamp"
COMPRESSION="xz"
COMPRESSION_OPTIONS="-9"

Offline

#8 2012-08-29 13:20:38

George
Member
Registered: 2011-05-11
Posts: 165

Re: systemd and systemd-vconsole-setup.service (long time)

Well this is a bit of a stab in the dark but my mkinitcpio.conf has the keymap and consolefont hooks included and for me systemd-vconsole-setup.service takes 128ms.

Offline

#9 2012-08-29 13:40:11

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: systemd and systemd-vconsole-setup.service (long time)

George wrote:

Well this is a bit of a stab in the dark but my mkinitcpio.conf has the keymap and consolefont hooks included and for me systemd-vconsole-setup.service takes 128ms.

It's likely that this just moves the slowness from when these others are seeing it, to when the hooks are run during the initramfs. (You can use the "timestamp" hook to have systemd-analyze report how long the initramfs takes.)

That said, it's probably a bit silly to care too much about this small delay. What does a couple of seconds really matter?

Offline

#10 2012-08-29 13:45:00

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

It doesn't help:

# systemd-analyze blame 
  3732ms systemd-vconsole-setup.service
  3684ms bootchart.service
  1963ms dev-hugepages.mount
  1960ms dev-mqueue.mount
  1929ms sys-kernel-debug.mount
  1859ms systemd-udev-trigger.service
  1775ms systemd-udevd.service
  1415ms NetworkManager.service
   885ms systemd-tmpfiles-setup.service
   390ms systemd-logind.service
   378ms systemd-remount-fs.service
   343ms var.mount
   329ms systemd-sysctl.service
   273ms console-kit-log-system-start.service
   269ms iptables.service
   246ms ip6tables.service
   147ms systemd-readahead-collect.service
   124ms systemd-readahead-replay.service
   109ms tmp.mount
   107ms console-kit-daemon.service
    54ms home.mount
    37ms modem-manager.service
    25ms wpa_supplicant.service
    19ms systemd-user-sessions.service
# systemd-analyze 
Startup finished in 1598ms (kernel) + 3122ms (initramfs) + 11026ms (userspace) = 15746ms

Offline

#11 2012-08-29 18:56:26

Thanoulis
Member
From: Lamia, Greece
Registered: 2009-05-03
Posts: 33
Website

Re: systemd and systemd-vconsole-setup.service (long time)

It seems you are not alone. My systemd-vconsole-setup.service is slow too:

# systemd-analyze blame
  4302ms systemd-vconsole-setup.service
  1806ms systemd-remount-fs.service
   663ms systemd-udev-trigger.service
   633ms dev-mqueue.mount
   623ms systemd-udevd.service
   618ms sys-kernel-debug.mount
   617ms dev-hugepages.mount
   436ms systemd-sysctl.service
   240ms console-kit-daemon.service
   213ms wicd.service
   123ms console-kit-log-system-start.service
    85ms systemd-readahead-collect.service
    85ms systemd-readahead-replay.service
    85ms systemd-logind.service
    56ms systemd-tmpfiles-setup.service
     9ms systemd-user-sessions.service
     6ms boot.mount
     3ms tmp.mount
     1ms proc-sys-fs-binfmt_misc.mount
# systemd-analyze
Startup finished in 491ms (kernel) + 3857ms (initramfs) + 9564ms (userspace) = 13913ms

My /etc/vconsole.conf looks like this:

KEYMAP=us
KEYMAP_TOGGLE=
FONT=ter-v16b
FONT_MAP=8859-1_to_uni

Also, i have consolefont hook on /etc/mkinitcpio.conf


-- Beware of he who would deny you access to information, for in his heart he dreams himself your master.

Offline

#12 2012-08-29 19:07:22

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

Offline

#13 2012-08-30 08:54:29

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

I don't resolve this problem, but I reduced time for kernel from 1500ms to ~850ms by changing compression method for initramfs in /etc/mkinitcpio.conf

COMPRESSION="cat"
Startup finished in 852ms (kernel) + 3156ms (initramfs) + 11150ms (userspace) = 15160ms

Last edited by ajes (2012-08-30 08:55:04)

Offline

#14 2012-08-30 11:28:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: systemd and systemd-vconsole-setup.service (long time)

ajes wrote:

I don't resolve this problem, but I reduced time for kernel from 1500ms to ~850ms by changing compression method for initramfs

What was your previous compression method?

Offline

#15 2012-08-30 11:45:14

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

Ok, you asked, so I make test on all available methods, and here are results:

cat:
Startup finished in 852ms (kernel) + 3156ms (initramfs) + 11150ms (userspace) = 15160ms
gzip:
Startup finished in 1019ms (kernel) + 3286ms (initramfs) + 11388ms (userspace) = 15693ms
bzip2:
Startup finished in 2985ms (kernel) + 3302ms (initramfs) + 12139ms (userspace) = 18427ms
lzma:
Startup finished in 1918ms (kernel) + 3265ms (initramfs) + 12076ms (userspace) = 17260ms
xz:
Startup finished in 1736ms (kernel) + 3505ms (initramfs) + 11567ms (userspace) = 16810ms
lzop:
Startup finished in 939ms (kernel) + 3273ms (initramfs) + 11250ms (userspace) = 15463ms

I have MSI Wind U100 with 2GB RAM, orginal HDD, and orginal Arch kernel.

Offline

#16 2012-09-02 16:26:16

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: systemd and systemd-vconsole-setup.service (long time)

On my Laptop running Fedora 17 + XFCE which has native systemd (Core 2 Duo T6400 2 GHz + 4Go RAM), "systemd-vconsole-setup.service" takes 1904 ms.

After a fresh install on my Desktop with pure systemd (Phenom II X4 955 BE + 8Go RAM), "systemd-vconsole-setup.service" takes 3889 ms.

Here my /etc/vconsole:

KEYMAP=fr-pc
FONT=lat9w-16

Github -- My terminal font Envypn

Offline

#17 2012-09-20 06:12:37

ajes
Member
Registered: 2010-10-29
Posts: 12

Re: systemd and systemd-vconsole-setup.service (long time)

Ok,
I changed my HDD to SSD (INTEL SSDSC2CT120A3K5) and here are my results (fresh Arch install):

   660ms NetworkManager.service
   320ms systemd-udev-trigger.service
   257ms systemd-logind.service
   186ms console-kit-log-system-start.service
   179ms ip6tables.service
   172ms systemd-sysctl.service
   159ms systemd-vconsole-setup.service
   157ms sys-kernel-debug.mount
   153ms iptables.service
   143ms dev-mqueue.mount
   139ms dev-hugepages.mount
   132ms polkit.service
   127ms bootchart.service
    90ms systemd-remount-fs.service
    63ms systemd-tmpfiles-setup.service
    61ms systemd-udevd.service
    45ms console-kit-daemon.service
    43ms home.mount
    26ms systemd-user-sessions.service
    23ms wpa_supplicant.service
    23ms tmp.mount
    13ms var.mount
    11ms boot.mount
     3ms proc-sys-fs-binfmt_misc.mount
Startup finished in 851ms (kernel) + 1649ms (initramfs) + 1939ms (userspace) = 4440ms

So only changing disk to SSD (currently I'm not using systemd-readahead) drastically change my boot time.

Offline

#18 2013-01-04 11:25:17

Steffo
Member
Registered: 2012-10-27
Posts: 34

Re: systemd and systemd-vconsole-setup.service (long time)

Hi,
could I disable systemd-vconsole-setup.service or will rise any problem? I'm not using virtual console, so I don't care, if it is configured or not.

Best regards
Steffo

Offline

#19 2013-01-09 01:16:57

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: systemd and systemd-vconsole-setup.service (long time)

How can you not be using it? Headless server?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB