Tuesday, November 14, 2017

Re: Vim surprisingly slow?

Dominique Pellé <dominique.pelle@gmail.com> wrote:
 

Using my attached io.pl script which summarizes the trace.log file
and shows where I/Os come from, I get this:

$ strace -f -e open,close,read,write,fsync -otrace.log \
    ./vim -u NONE data.json -S old_engine.vim

$ io.pl < trace.log
read_bytes   #read  write_bytes  #write  #open  #fsync  filename
----------   -----  -----------  ------  -----  ------  --------
   1612897      27          0       0       2       0  data.json
    135992      35          0       0       2       0  /usr/share/X11/locale/locale.alias
     36864       9          0       0       1       0  /usr/share/X11/locale/locale.dir
     16720       8          0       0       4       0  /home/pel/.ICEauthority
      4250       3          0       0       1       0  /usr/share/X11/locale/en_US.UTF-8/XLC_LOCALE
      3361       2          0       0       1       0  /lib/terminfo/x/xterm
      3171      16        216       7       1       0  /usr/share/locale/locale.alias
       832       1          0       0       1       0  /lib/x86_64-linux-gnu/libnss_nis.so.2
...snip many files with little amount of I/Os...
         0       0          0       0       1       0  .data.json.swx
         0       0     179281    5004    5004    5004  20150425.txt
         0       0          0       0       5       0  /etc/ld.so.cache
         0       0          0       0    5004       0  .
         0       0      16384       4       2       0  .data.json.swp
         0       0          0       0       1       0  /usr/lib/locale/locale-archive
----------   -----  -----------  ------  ------  -----  TOTAL
   1883068     191     195881    5015   15121    5004



Oops, I forgot to attach my io.pl script used to produce
above I/O summary.  Here it is attached this time.

Dominique

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: