saving files on local disk in VIM/EMACS taking 5+ seconds
Hi all,
I am not sure what happened, but all of the sudden saving files to a local disk in VIM/EMACS is taking around 5 or more seconds. It's extremely frustrating for obvious reasons :) I am not sure how to begin debugging this, it seems as though my disk performance is ok: Code:
gnychis@cyprus:~$ sudo hdparm -t -T /dev/sda1 Thanks! George |
All files? Particular files? How big are the files in question?
|
i only notice this in text editors, not while trying to save a file from the web or something but that's hard to determine because of network transfer time
to give you an idea, i open up vim, create a brand new file, type the letter 't' and hit save and it takes 5 seconds. That's like 5 seconds to save a 1 byte file. |
The only debugging suggestion I can make is to strace the process ...
Cheers, Tink |
thanks for the suggestion.
I did: Code:
$ strace -o slog vim test Here is the strace: http://www.andrew.cmu.edu/user/gnychis/slog |
Sorry, but could you do that again with the -r -f switches?
Cheers, Tink |
done, refresh :)
|
oh, I also added timestamps, it seems as though an fsync is taking slightly more than 3 seconds
|
solved, LPD was causing the hang
|
Wow ... how did you determine that? I wouldn't have thought it would be involved
in this process at all .... Cheers, Tink |
All times are GMT -5. The time now is 01:57 AM. |