[Libreoffice-bugs] [Bug 118346] Slow performance in Draw with (moderately) complex drawings

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 26 11:51:29 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118346

--- Comment #7 from Gessel <gessel at blackrosetech.com> ---
Still slow.

Created "demo_document.odg" as a typical moderately complex drawing.  Some are
more complex and are significantly slower to work with, but I think this is
complex enough to allow profiling and perhaps identify the slug.  I find when
complex documents are open, non libreoffice programs also get slow and it is
possible to freeze the system (perhaps not permanently, but longer than I'm
willing to wait before rebooting).

Testing with Version: 6.0.6.2
Build ID: 1:6.0.6-0ubuntu0.16.04.1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: x11;

System:    Host: iku Kernel: 4.15.0-34-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: MATE 1.18.0 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: Hewlett-Packard (portable) product: HP ZBook 15 G2 v:
A3009DD10203
           Mobo: Hewlett-Packard model: 2253 v: KBC Version 03.12
           Bios: Hewlett-Packard v: M70 Ver. 01.21 date: 04/12/2018
CPU:       Quad core Intel Core i7-4910MQ (-HT-MCP-) cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 23147
           clock speeds: max: 3900 MHz 1: 1176 MHz 2: 1285 MHz 3: 1157 MHz
           4: 1037 MHz 5: 1267 MHz 6: 1093 MHz 7: 1192 MHz 8: 1121 MHz
Graphics:  Card: NVIDIA GK106GLM [Quadro K2100M] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia
           Resolution: 3200x1800 at 59.98hz, 4096x2160 at 50.00hz
           GLX Renderer: Quadro K2100M/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 384.130 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 NVIDIA GK106 HDMI Audio Controller
           driver: snd_hda_intel bus-ID: 01:00.1
           Sound: Advanced Linux Sound Architecture v: k4.15.0-34-generic
Network:   Card-1: Intel Ethernet Connection I217-LM
           driver: e1000e v: 3.2.6-k port: 7040 bus-ID: 00:19.0
           IF: enp0s25 state: down mac: <filter>
           Card-2: Intel Wireless 7260 driver: iwlwifi bus-ID: 3e:00.0
           IF: wlp62s0 state: up mac: <filter>
Drives:    HDD Total Size: 12514.4GB (40.4% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 2000.4GB
           ID-2: /dev/sdb model: Samsung_SSD_850 size: 1000.2GB
           ID-3: /dev/mmcblk0 model: N/A size: 258.6GB
           ID-4: /dev/sdc model: PLEXTOR_PX size: 512.1GB
           ID-5: USB /dev/sde model: My_Passport_259D size: 4000.8GB
           ID-6: USB /dev/sdd model: BUP_SL size: 5001.0GB
Partition: ID-1: / size: 469G used: 22G (5%) fs: ext4 dev: /dev/sdc3
           ID-2: /boot size: 945M used: 522M (60%) fs: ext4 dev: /dev/sdc1
           ID-3: /home size: 1.8T used: 1.6T (91%) fs: ext4 dev: /dev/sda1
           ID-4: swap-1 size: 4.19GB used: 0.00GB (0%) fs: swap dev: /dev/dm-0
           ID-5: swap-2 size: 0.07GB used: 0.00GB (0%) fs: swap dev: /dev/dm-1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 60.0C mobo: 56.0C gpu: 0.0:57C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 325 Uptime: 2:04 Memory: 4113.8/32083.9MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35


 sudo operf libreoffice --draw 
operf: Profiler started
func=xmlSecCheckVersionExt:file=xmlsec.c:line=188:obj=unknown:subj=unknown:error=19:invalid
version:mode=abi compatible;expected minor version=2;real minor
version=2;expected subminor version=25;real subminor version=26
* * * * WARNING: Profiling rate was throttled back by the kernel * * * *
The number of samples actually recorded is less than expected, but is
probably still statistically valid.  Decreasing the sampling rate is the
best option if you want to avoid throttling.

WARNING: Lost samples detected! See
/home/gessel/oprofile_data/samples/operf.log for details.
Lowering the sampling rate may reduce or eliminate lost samples.
See the '--events' option description in the operf man page for help.

$ opreport
Using /home/gessel/oprofile_data/samples/ for samples directory.

WARNING! Some of the events were throttled. Throttling occurs when
the initial sample rate is too high, causing an excessive number of
interrupts.  Decrease the sampling frequency. Check the directory
/home/gessel/oprofile_data/samples/current/stats/throttled
for the throttled event names.


WARNING: Lost samples detected! See
/home/gessel/oprofile_data/samples/operf.log for details.
CPU: Intel Haswell microarchitecture, speed 3900 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask
of 0x00 (No unit mask) count 100000
CPU_CLK_UNHALT...|
  samples|      %|
------------------
  4486710 99.8900 soffice.bin
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
          1014025 22.6006 kallsyms
           969030 21.5978 libcairo.so.2.11400.6
           802664 17.8898 libc-2.23.so
           689899 15.3765 libmergedlo.so
           184466  4.1114 libm-2.23.so
           133239  2.9696 libpthread-2.23.so
           112855  2.5153 libuno_sal.so.3
           109428  2.4389 libX11.so.6.3.0
            80093  1.7851 libvclplug_genlo.so
            74166  1.6530 libxcb.so.1.1.0
            65604  1.4622 libstdc++.so.6.0.21
            65395  1.4575 libsvgiolo.so
            52768  1.1761 libXrender.so.1.3.0
            31787  0.7085 libexpat.so.1.6.0
            28510  0.6354 libuno_cppuhelpergcc3.so.3
            25337  0.5647 libz.so.1.2.8
            12498  0.2786 libpixman-1.so.0.33.6
            10804  0.2408 libuno_cppu.so.3
             7028  0.1566 libharfbuzz.so.0.10000.1
             2983  0.0665 libfontconfig.so.1.9.0
             2400  0.0535 libsdlo.so
             1913  0.0426 libi18nlangtag.so
             1703  0.0380 ld-2.23.so
             1625  0.0362 libicuuc.so.55.1
             1249  0.0278 libxmlreaderlo.so
             1063  0.0237 libjpeg.so.8.0.2
              945  0.0211 libexpwraplo.so
              545  0.0121 nvidia
              362  0.0081 libunoidllo.so
              350  0.0078 libhunspell-1.3.so.0.0.0
              328  0.0073 [vdso] (tgid:26647
range:0x7ffe5bf30000-0x7ffe5bf31fff)
              254  0.0057 libfreetype.so.6.12.1
              235  0.0052 libgcc_s.so.1
              204  0.0045 libucpchelp1.so
              196  0.0044 libboost_locale.so.1.58.0
              146  0.0033 libxml2.so.2.9.3
              108  0.0024 libharfbuzz-icu.so.0.10000.1
               67  0.0015 libGL.so.384.130
               63  0.0014 kvm
               46  0.0010 libnvidia-glcore.so.384.130
               39 8.7e-04 libreflectionlo.so
               32 7.1e-04 libuno_salhelpergcc3.so.3
               31 6.9e-04 libnettle.so.6.2
               30 6.7e-04 hid
               27 6.0e-04 libXrandr.so.2.2.0
               23 5.1e-04 liborcus-parser-0.13.so.0
               17 3.8e-04 libicui18n.so.55.1
               11 2.5e-04 libahci
               11 2.5e-04 libgcc3_uno.so
                9 2.0e-04 libcups.so.2
                7 1.6e-04 iwlwifi
                7 1.6e-04 libdl-2.23.so
                6 1.3e-04 usbhid
                5 1.1e-04 libintrospectionlo.so
                5 1.1e-04 liborcus-0.13.so.0
                5 1.1e-04 librecentfile.so
                4 8.9e-05 libstocserviceslo.so
                4 8.9e-05 libnss3.so
                3 6.7e-05 btusb
                3 6.7e-05 vmmon
                3 6.7e-05 libsal_textenclo.so
                3 6.7e-05 libspelllo.so
                3 6.7e-05 libnssutil3.so
                3 6.7e-05 libtasn1.so.6.5.1
                2 4.5e-05 [vdso] (tgid:26648
range:0x7ffe5bf30000-0x7ffe5bf31fff)
                2 4.5e-05 e1000e
                2 4.5e-05 iwlmvm
                2 4.5e-05 mac80211
                2 4.5e-05 dash
                2 4.5e-05 gpgsm
                2 4.5e-05 libXcursor.so.1.0.2
                2 4.5e-05 libgobject-2.0.so.0.4800.2
                2 4.5e-05 libplds4.so
                2 4.5e-05 libfreeblpriv3.so
                1 2.2e-05 nvidia_modeset
                1 2.2e-05 nvidia_uvm
                1 2.2e-05 x86_pkg_temp_thermal
                1 2.2e-05 libgcrypt.so.20.0.5
                1 2.2e-05 liblzma.so.5.0.0
                1 2.2e-05 libnss_compat-2.23.so
                1 2.2e-05 librt-2.23.so
                1 2.2e-05 gpg2
                1 2.2e-05 gpgconf
                1 2.2e-05 libfwllo.so
                1 2.2e-05 libgpgme.so.11
                1 2.2e-05 libgpgmepp.so.6
                1 2.2e-05 liblnthlo.so
                1 2.2e-05 libxsec_xmlsec.so
                1 2.2e-05 libXext.so.6.4.0
                1 2.2e-05 libkrb5.so.3.3
                1 2.2e-05 libnspr4.so
                1 2.2e-05 libsoftokn3.so
     4368  0.0972 gpgconf
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
             4360 99.8168 kallsyms
                5  0.1145 ld-2.23.so
                2  0.0458 libc-2.23.so
                1  0.0229 libgpg-error.so.0.17.0
      343  0.0076 oosplash
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
              120 34.9854 kallsyms
               73 21.2828 libpng12.so.0.54.0
               33  9.6210 ld-2.23.so
               32  9.3294 libz.so.1.2.8
               30  8.7464 libc-2.23.so
               25  7.2886 oosplash
               12  3.4985 libX11.so.6.3.0
                9  2.6239 dash
                6  1.7493 libuno_sal.so.3
                2  0.5831 libpthread-2.23.so
                1  0.2915 librt-2.23.so
      113  0.0025 javaldx
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
               62 54.8673 kallsyms
               29 25.6637 ld-2.23.so
                9  7.9646 libc-2.23.so
                7  6.1947 libxml2.so.2.9.3
                6  5.3097 libuno_sal.so.3
       29 6.5e-04 ls
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
               20 68.9655 kallsyms
                5 17.2414 libc-2.23.so
                3 10.3448 ld-2.23.so
                1  3.4483 ls
       21 4.7e-04 dirname
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
               16 76.1905 kallsyms
                3 14.2857 ld-2.23.so
                2  9.5238 libc-2.23.so
       20 4.5e-04 sed
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
               13 65.0000 kallsyms
                4 20.0000 ld-2.23.so
                3 15.0000 libc-2.23.so
       16 3.6e-04 grep
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
               11 68.7500 kallsyms
                3 18.7500 libc-2.23.so
                2 12.5000 ld-2.23.so
       13 2.9e-04 paperconf
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
                9 69.2308 kallsyms
                2 15.3846 ld-2.23.so
                2 15.3846 libc-2.23.so
        9 2.0e-04 basename
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
                7 77.7778 kallsyms
                2 22.2222 libc-2.23.so
        8 1.8e-04 uname
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
                6 75.0000 kallsyms
                1 12.5000 ld-2.23.so
                1 12.5000 libc-2.23.so

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180926/4311308b/attachment-0001.html>


More information about the Libreoffice-bugs mailing list