vim takes long time to start
I'm having trouble with Vim in any terminal emulator I use. I have a link (vi) to vim. Occasionally it will take very long to load, whether I use 'vi' or 'vi file'. Before, if I could I would restart X, and then it would load instantly again, but I waited this time and it did load, after a minute or so. Is this a problem with X or vim?
|
Difficult to tell... try leaving 'top' running in another window and check it if it happens again.
|
I was able to trigger it by doing, from ~, "vi .fvwm/.fvwm2rc". I am watching top and nothing is coming up related to vim. I counted 168 seconds from ~30sec after I hit enter (with a while loop), and when it finally loaded the text area of vim had nothing in it, but :quit'ing and then pressing up->enter to repeat the command came up with the full file and it loads instantly now, everytime.
|
Super slow/super busy disk subsystem?
What does IO-stat tell you about the disk? Next time the problem occurs try tunning vim under strace w/ timing information enabled. |
iostat:
Code:
root - 'MindStation': $ iostat |
What mount point lives on hda1?
|
root,/home,etc. everything. hda1 and hda2 are Slackware, hda3 swap, hda4 storage
|
Whats the size of the file your trying to open? If I open up a 1G file with vim it just takes it time copying everything into memory.
|
It's only 7.6K
|
I finally had it happen again and did strace on it. I only noticed one part,
Code:
rt_sigaction(SIGUSR1, {0x815e1e0, [], 0}, NULL, 8) = 0 Eventually it shows up, but my strace doesn't go this far. it is at http://pastebin.ca/1821695 |
All times are GMT -5. The time now is 12:41 PM. |