You are not logged in.

#1 2015-10-10 09:59:24

mareex
Member
From: Oldenburg, Germany
Registered: 2014-08-27
Posts: 28

[SOLVED] zsh starts extremly slow

Hello folks,

since yesterday the startup time of my zsh is really slow. When I open a new terminal window zsh shows up after 1 Minute.

Measuring with

time /bin/zsh -i -c exit

gives me

/bin/zsh -i -c exit  62,84s user 0,97s system 92% cpu 1:08,75 total

My system is up to date. I already tried to remove ~/.zshrc and ~/.zsh_history but to na avail.
Any ideas?

Last edited by mareex (2015-10-10 19:16:40)

Offline

#2 2015-10-10 16:09:16

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,720

Re: [SOLVED] zsh starts extremly slow

No solid answers.  Have you tried it as a different user?  If you are doing that inside of Xorg, have you tried it at the console?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2015-10-10 17:22:48

mareex
Member
From: Oldenburg, Germany
Registered: 2014-08-27
Posts: 28

Re: [SOLVED] zsh starts extremly slow

Thanks for your answer. I tried with another user from group "users" and with root - In Yakuake, Konsole and tty. The problem is omnipresent. I also had no success with reinstalling zsh. Downgrading zsh would lead into a big mess because of ncurses dependency. Is there a way to debug zsh by profiling its method calls (measure time)?

Edit: I think I have found the culprit. It was my /etc/hosts file. Besides that zsh was starting slow I noticed ntpd was going crazy in cpu usage. So I remembered that I installed hostsblock from AUR yesterday which I used to manipulate my /etc/hosts file. After I restored my /etc/hosts file to its original state zsh is starting normal again.

Last edited by mareex (2015-10-10 19:08:44)

Offline

Board footer

Powered by FluxBB