You are not logged in.

#1 2012-10-31 11:43:35

sim590
Member
Registered: 2012-07-22
Posts: 31

[SOLVED]HUGE lag since systemd installed

Hello,

I've been on Arch Linux for a while now and I like it. Now, I'm having a problem. Since I switched from initscripts to systemd, the graphical desktop (gnome 3) and all it's children are taking an enormous amount of time to execute their tasks like I've never seen when I was using initscripts configuration.

I don't know what's going on, may be there are two daemons conflicting each other?

I need help, I don't have that much experience to understand completly what's happening.

Last edited by sim590 (2012-11-02 07:52:08)

Offline

#2 2012-10-31 11:51:25

sim590
Member
Registered: 2012-07-22
Posts: 31

Re: [SOLVED]HUGE lag since systemd installed

Here's the output of

# systemctl
UNIT                                                                                                                  LOAD   ACTIVE SUB       JOB DESCRIPTION
proc-sys-fs-binfmt_misc.automount                                                                                     loaded active running       Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:03.0-0000:01:00.1-sound-card1.device                                                   loaded active plugged       Juniper HDMI Audio [Radeon HD 5700 Series]
sys-devices-pci0000:00-0000:00:1a.0-usb1-1\x2d1-1\x2d1.5-1\x2d1.5:1.0-bluetooth-hci0.device                           loaded active plugged       /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/bluetooth/hci0
sys-devices-pci0000:00-0000:00:1b.0-sound-card0.device                                                                loaded active plugged       5 Series/3400 Series Chipset High Definition Audio
sys-devices-pci0000:00-0000:00:1c.1-0000:03:00.0-net-wlan0.device                                                     loaded active plugged       AR9285 Wireless Network Adapter (PCI-Express)
sys-devices-pci0000:00-0000:00:1c.5-0000:04:00.0-net-eth0.device                                                      loaded active plugged       AR8131 Gigabit Ethernet
sys-devices-pci0000:00-0000:00:1d.0-usb2-2\x2d1-2\x2d1.4-2\x2d1.4:1.0-host5-target5:0:0-5:0:0:0-block-sdb-sdb1.device loaded active plugged       USB_DISK_2.0
sys-devices-pci0000:00-0000:00:1d.0-usb2-2\x2d1-2\x2d1.4-2\x2d1.4:1.0-host5-target5:0:0-5:0:0:0-block-sdb.device      loaded active plugged       USB_DISK_2.0
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device                              loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device                              loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda3.device                              loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda4.device                              loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda5.device                              loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda6.device                              loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda7.device                              loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda.device                                   loaded active plugged       ST9500420AS
sys-devices-pci0000:00-0000:00:1f.2-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device                                   loaded active plugged       TSSTcorp_CDDVDW_TS-L633C
sys-devices-platform-serial8250-tty-ttyS0.device                                                                      loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device                                                                      loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device                                                                      loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device                                                                      loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS3
sys-module-fuse.device                                                                                                loaded active plugged       /sys/module/fuse
sys-subsystem-bluetooth-devices-hci0.device                                                                           loaded active plugged       /sys/subsystem/bluetooth/devices/hci0
sys-subsystem-net-devices-eth0.device                                                                                 loaded active plugged       AR8131 Gigabit Ethernet
sys-subsystem-net-devices-wlan0.device                                                                                loaded active plugged       AR9285 Wireless Network Adapter (PCI-Express)
-.mount                                                                                                               loaded active mounted       /
boot.mount                                                                                                            loaded active mounted       /boot
dev-hugepages.mount                                                                                                   loaded active mounted       Huge Pages File System
dev-mqueue.mount                                                                                                      loaded active mounted       POSIX Message Queue File System
home.mount                                                                                                            loaded active mounted       /home
proc-sys-fs-binfmt_misc.mount                                                                                         loaded active mounted       Arbitrary Executable File Formats File System
run-user-1000-gvfs.mount                                                                                              loaded active mounted       /run/user/1000/gvfs
sys-fs-fuse-connections.mount                                                                                         loaded active mounted       FUSE Control File System
sys-kernel-debug.mount                                                                                                loaded active mounted       Debug File System
tmp.mount                                                                                                             loaded active mounted       /tmp
systemd-ask-password-console.path                                                                                     loaded active waiting       Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path                                                                                        loaded active waiting       Forward Password Requests to Wall Directory Watch
accounts-daemon.service                                                                                               loaded active running       Accounts Service
colord-sane.service                                                                                                   loaded active running       Daemon for monitoring attached scanners and registering them with colord
colord.service                                                                                                        loaded active running       Manage, Install and Generate Color Profiles
console-kit-daemon.service                                                                                            loaded active running       Console Manager
console-kit-log-system-start.service                                                                                  loaded active exited        Console System Startup Logging
dbus.service                                                                                                          loaded active running       D-Bus System Message Bus
getty@tty1.service                                                                                                    loaded active running       Getty on tty1
NetworkManager.service                                                                                                loaded active running       Network Manager
rtkit-daemon.service                                                                                                  loaded active running       RealtimeKit Scheduling Policy Service
syslog-ng.service                                                                                                     loaded active running       System Logger Daemon
systemd-binfmt.service                                                                                                loaded active exited        Set Up Additional Binary Formats
systemd-journald.service                                                                                              loaded active running       Journal Service
systemd-logind.service                                                                                                loaded active running       Login Service
systemd-remount-fs.service                                                                                            loaded active exited        Remount Root and Kernel File Systems
systemd-sysctl.service                                                                                                loaded active exited        Apply Kernel Variables
systemd-tmpfiles-setup.service                                                                                        loaded active exited        Recreate Volatile Files and Directories
systemd-udev-trigger.service                                                                                          loaded active exited        udev Coldplug all Devices
systemd-udevd.service                                                                                                 loaded active running       udev Kernel Device Manager
systemd-user-sessions.service                                                                                         loaded active exited        Permit User Sessions
systemd-vconsole-setup.service                                                                                        loaded active exited        Setup Virtual Console
udisks2.service                                                                                                       loaded active running       Storage Daemon
upower.service                                                                                                        loaded active running       Daemon for power management
wpa_supplicant.service                                                                                                loaded active running       WPA supplicant
dbus.socket                                                                                                           loaded active running       D-Bus System Message Bus Socket
syslog.socket                                                                                                         loaded active running       Syslog Socket
systemd-initctl.socket                                                                                                loaded active listening     /dev/initctl Compatibility Named Pipe
systemd-journald.socket                                                                                               loaded active running       Journal Socket
systemd-shutdownd.socket                                                                                              loaded active listening     Delayed Shutdown Socket
systemd-udevd-control.socket                                                                                          loaded active listening     udev Control Socket
systemd-udevd-kernel.socket                                                                                           loaded active running       udev Kernel Socket
basic.target                                                                                                          loaded active active        Basic System
bluetooth.target                                                                                                      loaded active active        Bluetooth
cryptsetup.target                                                                                                     loaded active active        Encrypted Volumes
getty.target                                                                                                          loaded active active        Login Prompts
graphical.target                                                                                                      loaded active active        Graphical Interface
local-fs-pre.target                                                                                                   loaded active active        Local File Systems (Pre)
local-fs.target                                                                                                       loaded active active        Local File Systems
multi-user.target                                                                                                     loaded active active        Multi-User
network.target                                                                                                        loaded active active        Network
remote-fs.target                                                                                                      loaded active active        Remote File Systems
sockets.target                                                                                                        loaded active active        Sockets
sound.target                                                                                                          loaded active active        Sound Card
swap.target                                                                                                           loaded active active        Swap
sysinit.target                                                                                                        loaded active active        System Initialization
syslog.target                                                                                                         loaded active active        Syslog
systemd-tmpfiles-clean.timer                                                                                          loaded active waiting       Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
JOB    = Pending job for the unit.

83 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Oh! I've just noticed I don't have sound anymore..... mad The sound devices don't appear anymore in gnome sound configuration panel..

Offline

#3 2012-10-31 11:52:41

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED]HUGE lag since systemd installed

No mention in your post that you've read the systemd wiki page, specifically "Analyzing the boot process"

Offline

#4 2012-10-31 11:55:10

sim590
Member
Registered: 2012-07-22
Posts: 31

Re: [SOLVED]HUGE lag since systemd installed

I have red this. I figured it was about the "boot process" only. I mean this section shouldn't have to do with lag out side of boot. Lag in gnome.

Offline

#5 2012-10-31 15:27:56

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED]HUGE lag since systemd installed

Your post and title suggest you suspect systemd. How have you ruled out something in the boot process not completing and slowing your system?

If your hard drive lights aren't continually on and "top" shows nothing untoward, I'd try booting with the network disconnected (hostname/resolve problems?).

Offline

#6 2012-10-31 20:39:35

sim590
Member
Registered: 2012-07-22
Posts: 31

Re: [SOLVED]HUGE lag since systemd installed

vacant wrote:

Your post and title suggest you suspect systemd. How have you ruled out something in the boot process not completing and slowing your system?

If your hard drive lights aren't continually on and "top" shows nothing untoward, I'd try booting with the network disconnected (hostname/resolve problems?).

You're right. Something not completing it's job may cause this problem. I've figured out it's something related to gnome-shell. Look at this:

$ top
%Cpu(s): 14,1 us,  1,6 sy,  0,0 ni, 84,3 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem:   8104744 total,  1537064 used,  6567680 free,    56028 buffers
KiB Swap:        0 total,        0 used,        0 free,   770116 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                                                                              
  623 simon     20   0 1635m 214m  38m S 111,2  2,7   4:52.85 gnome-shell                                                                                                                                          
  506 root      20   0  132m  31m 6296 R  18,9  0,4   0:39.47 X                                                                                                                                                    
  670 simon     20   0  554m  20m  11m S   2,3  0,3   0:01.01 gnome-terminal                                                                                                                                       
   18 root      20   0     0    0    0 S   1,4  0,0   0:06.23 ksoftirqd/2                                                                                                                                          
  954 simon     20   0  459m  10m 4660 S   0,7  0,1   6:21.71 cmus                                                                                                                                                 
  455 simon      9 -11  497m 8736 5336 S   0,2  0,1   7:13.65 pulseaudio                                                                                                                                           
  540 simon     20   0  875m  18m  13m S   0,2  0,2   0:04.22 gnome-settings-                                                                                                                                      
  612 simon     20   0 17412 1564 1208 S   0,2  0,0   0:00.26 dbus-daemon                                                                                                                                          
  615 simon     20   0  123m 3452 2732 S   0,2  0,0   0:00.11 at-spi2-registr                                                                                                                                      
 1235 root      20   0     0    0    0 S   0,2  0,0   0:00.40 kworker/2:1                                                                                                                                          
 1277 simon     20   0 14456 1784 1132 R   0,2  0,0   0:00.12 top                                                                                                                                                  
 1281 root      20   0     0    0    0 S   0,2  0,0   0:00.01 kworker/3:0                                                                                                                                          
    1 root      20   0 32568 3320 1864 S   0,0  0,0   0:01.43 systemd                                                                                                                                              
    2 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kthreadd                                                                                                                                             
    3 root      20   0     0    0    0 S   0,0  0,0   0:04.55 ksoftirqd/0                                                                                                                                          
    5 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/0:0H                                                                                                                                         
    7 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/u:0H                                                                                                                                         
    8 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/0                                                                                                                                          
    9 root      rt   0     0    0    0 S   0,0  0,0   0:00.20 watchdog/0                                                                                                                                           
   10 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/1                                                                                                                                          
   12 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/1:0H                                                                                                                                         
   13 root      20   0     0    0    0 S   0,0  0,0   0:04.25 ksoftirqd/1                                                                                                                                          
   14 root      rt   0     0    0    0 S   0,0  0,0   0:00.20 watchdog/1                                                                                                                                           
   15 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/2                                                                                                                                          
   17 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/2:0H                                                                                                                                         
   19 root      rt   0     0    0    0 S   0,0  0,0   0:00.20 watchdog/2                                                                                                                                           
   20 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/3                                                                                                                                          
   22 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/3:0H                                                                                                                                         
   23 root      20   0     0    0    0 S   0,0  0,0   0:04.85 ksoftirqd/3                                                                                                                                          
   24 root      rt   0     0    0    0 S   0,0  0,0   0:00.20 watchdog/3                                                                                                                                           
   25 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/4                                                                                                                                          
   26 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kworker/4:0                                                                                                                                          
   27 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/4:0H                                                                                                                                         
   28 root      20   0     0    0    0 S   0,0  0,0   0:00.10 ksoftirqd/4                                                                                                                                          
   29 root      rt   0     0    0    0 S   0,0  0,0   0:00.18 watchdog/4                                                                                                                                           
   30 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/5                                                                                                                                          
   32 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/5:0H                                                                                                                                         
   33 root      20   0     0    0    0 S   0,0  0,0   0:00.12 ksoftirqd/5                                                                                                                                          
   34 root      rt   0     0    0    0 S   0,0  0,0   0:00.09 watchdog/5                                                                                                                                           
   35 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/6                                                                                                                                          
   36 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kworker/6:0                                                                                                                                          
   37 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/6:0H                                                                                                                                         
   38 root      20   0     0    0    0 S   0,0  0,0   0:00.03 ksoftirqd/6                                                                                                                                          
   39 root      rt   0     0    0    0 S   0,0  0,0   0:00.09 watchdog/6                                                                                                                                           
   40 root      rt   0     0    0    0 S   0,0  0,0   0:00.00 migration/7                                                                                                                                          
   41 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kworker/7:0                                                                                                                                          
   42 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kworker/7:0H                                                                                                                                         
   43 root      20   0     0    0    0 S   0,0  0,0   0:00.04 ksoftirqd/7 

gnome-shell using 111,2% of cpu........... When I look at it for some time I see it around 50% and peeking at ridiculous numbers. There's clearly something wrong. I'll try booting without networkmanager daemon not running. And I'll look if the steps described in wikipage for boot and optimization can help me.

Offline

#7 2012-11-01 00:05:05

sim590
Member
Registered: 2012-07-22
Posts: 31

Re: [SOLVED]HUGE lag since systemd installed

No step from the wiki page seems to help and booting without connection to network doesn't change anything.

Since gnome-shell takes so much of cpu% of use, the problem is likely to be related to it.

Offline

#8 2012-11-02 07:47:17

sim590
Member
Registered: 2012-07-22
Posts: 31

Re: [SOLVED]HUGE lag since systemd installed

Good news!

I've red on gnome wiki page that gdm.service had to be enabled.  It has solved the problem..

There seems to have a huge dependency between gnome and gdm when you use systemd. It's kind of sad because I like the idea of not running my graphical interface when I don't need it and start it if I do. Anyway, I'm happy that gnome-shell doesn't use 300% of my cpu anymore smile.

Offline

Board footer

Powered by FluxBB