Very slow start

Bug #35337 reported by Tero Karvinen
6
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

'vim' starts very slowly - more than 5 seconds to start on a modern desktop computer. Breezy, vim-gnome 6.3-078+1ubuntu3. Not using a ~/.vimrc.

$ time vim -c :q foo
real 0m6.391s
user 0m0.190s
sys 0m0.039s

Clocking manually, the 5 seconds is wasted before debug mode (and parsing of vimrc?) starts.
$ vim -D
[5 s wasted]
Entering Debug mode. Type "cont" to continue.
/usr/share/vim/vimrc
line 2: set runtimepath=~/.vim,/etc/vim,/usr/share/vim/vimfiles,/usr/share/vim/addons,/usr/share/vim/vim63,/usr/share/vim/vimfiles,/usr/share/vim/addons/after,~/.vim/after
>

Revision history for this message
Matt Zimmerman (mdz) wrote :

mizar:[~] time vim -c :q foo
vim -c :q foo 0.07s user 0.01s system 86% cpu 0.096 total

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

It works now, both in Breezy and in Dapper Flight 6.

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

Being the original reporter, I close this as I can't reproduce it anymore.

Changed in vim:
status: Unconfirmed → Rejected
Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote : Strace of a very slow start of vim

The problem occurred again, so I took strace of it.

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

Occurred again, got strace.

Changed in vim:
status: Rejected → Unconfirmed
Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

Bypassed the bug with
$ sudo apt-get --purge remove vim
$ sudo apt-get install vim
and it works now
$ time vim -c :q foo
real 0m0.083s
user 0m0.039s
sys 0m0.015s

Don't know if it is related, but some other ubuntu packages can be fixed with --purge too, such as firefox after installation of enigmail (bug #34574).

Revision history for this message
Barry deFreese (bddebian) wrote :

I'm a little confused now. Is this a bug or is it not? Any chance you have some filesystem corruption? Thank you.

Changed in vim:
status: Unconfirmed → Needs Info
Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

I assume it is a bug. I can have a look if I can see this problem on other machines too. What do you think about the strace?

Revision history for this message
Florian Boucault (fboucault) wrote :

Not reproduceable anymore. Bug vanished.

Changed in vim:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.