https://bugs.kde.org/show_bug.cgi?id=378227

--- Comment #2 from Deepak Mittal <dpac.mitt...@gmail.com> ---
Yes pretty sure. This doesn't just happen on dialog boxes, so you may change
the "product" for this bug. This happens with every KDE application. I thought
dolphin and gwenview were generally slow, but when I moved bulk of my fonts
outside of /usr/share/fonts, everything became snappy. 

Every KDE application is parsing the fonts directory, which is making the
system unusably slow.

This is first few lines from strace -C dolphin:
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 55.31    0.000521           1       850           getdents
 17.52    0.000165           0     55772      5920 stat
  7.11    0.000067           0     24605       127 lstat
  5.20    0.000049           0     11790           read
  4.46    0.000042           0      6217           close
  3.93    0.000037           0      7943      1735 open
  3.61    0.000034           0      6343      1654 readlinkat
  1.06    0.000010           0     11007           fstat
  0.85    0.000008           0      3742       359 access
  0.53    0.000005           0      2277           getrandom
  0.42    0.000004           0      1277           lseek
  0.00    0.000000           0      1299           write
  0.00    0.000000           0       802           poll
  0.00    0.000000           0       597           mmap
  0.00    0.000000           0       358           mprotect
  0.00    0.000000           0       111           munmap
  0.00    0.000000           0        67           brk
  0.00    0.000000           0        10           rt_sigaction
  0.00    0.000000           0         2           rt_sigprocmask
  0.00    0.000000           0        54           ioctl
  0.00    0.000000           0       453           writev
  0.00    0.000000           0        15           select

Bulk of the stat calls are because of the fonts in /usr/share/fonts.

I saved the strace output in /tmp/dolphin and then ran:
grep 'usr/share/fonts' /tmp/dolphin | wc -l                                    
                                                                               
            ⏎
47834

Clearly it's a big issue and it needs to be fixed.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to