Extremely slow startup time on Debian /sid with Gnome and Wayland
I am loathe to open an issue. I'm hoping to assist with this but I'll need instruction on what more to do to find the reasons for slow startup times. I'd need help with:
- Should I be submitting this to the Debian Bug tracker system instead of here?
- Help on how to get outputs and details needed to take this a step further.
- Running unstable Debian Sid may be the cause... in which case maybe Gthumb will need changes in time for stable release?
- Answer: when running gthumb on a new Debian 10 testing (bullseye/sid) container and forwarding GUI to host X11 server it works and starts as expected.
sudo docker run --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" weleoka/debian10testing:gthumb gthumb
.
Summary: I think this could be a local issue to my machine. So, close this issue now as it seems to work as expected on a fresh OS.
-
-
- To debug my problem I have the following - - -
-
The following is the ltrace
time spent on opening gthumb in a folder aaa
with .jpeg
and a .png
image of 256x256 pixels all black (1KB file sizes).
user@debian10:~/Pictures/aaa$ ltrace -bc gthumb ajpeg.jpeg
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
46.43 46.587391 46587391 1 g_application_run
27.59 27.684001 153800 180 g_file_query_info
5.73 5.754209 11151 516 g_object_new
4.80 4.815642 123478 39 g_module_open
2.84 2.850029 129546 22 g_hook_list_marshal
1.24 1.242065 329 3770 g_type_check_instance_cast
0.93 0.935090 467545 2 g_option_context_parse
Or if just opening the directory view we have the same extremely slow startup times.
user@debian10:~/Pictures/aaa$ ltrace -bc gthumb .
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
48.55 51.982446 51982446 1 g_application_run
28.55 30.570753 160898 190 g_file_query_info
5.03 5.381350 10153 530 g_object_new
4.36 4.666340 119649 39 g_module_open
2.48 2.655656 156215 17 g_hook_list_marshal
1.10 1.173171 302 3874 g_type_check_instance_cast
0.85 0.905072 452536 2 g_option_context_parse
Running the same with root user results in better startup time, still very slow:
root@debian10:~/Pictures/aaa$ ltrace -bc gthumb .
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
48.76 21.350713 21350713 1 g_application_run
12.43 5.441061 139514 39 g_module_open
10.61 4.646709 11473 405 g_object_new
2.63 1.151773 310 3705 g_type_check_instance_cast
1.88 0.821782 410891 2 g_option_context_parse
The strange thing is that when runnng perf
as root (obviously) the startup time is excellent!
root@debina10:/home/deppi/Pictures/aaa# perf stat -e cpu-clock,faults gthumb
Performance counter stats for 'gthumb':
808.91 msec cpu-clock # 0.544 CPUs utilized
9,091 faults # 0.011 M/sec
1.488208897 seconds time elapsed
0.748369000 seconds user
0.065911000 seconds sys
Kind regards,
Weleoka
System details
$ dpkg --list gthumb
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-==============-============-=================================
ii gthumb 3:3.8.0-2.1+b2 amd64 image viewer and browser
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (600, 'unstable'), (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.7.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gthumb depends on:
ii gsettings-desktop-schemas 3.36.1-1
ii gthumb-data 3:3.8.0-2.1
ii libbrasero-media3-1 3.12.2-6
ii libc6 2.31-3
ii libcairo2 1.16.0-4
ii libclutter-1.0-0 1.26.4+dfsg-1
ii libclutter-gtk-1.0-0 1.8.4-4
ii libexiv2-27 0.27.3-3
ii libgcc-s1 10.2.0-5
ii libgdk-pixbuf2.0-0 2.40.0+dfsg-5
ii libgl1-mesa-dri 20.1.5-1
ii libglib2.0-0 2.64.4-1
ii libgstreamer-plugins-base1.0-0 1.16.2-4
ii libgstreamer1.0-0 1.16.2-2
ii libgtk-3-0 3.24.22-1
ii libjpeg62-turbo 1:2.0.5-1.1
ii libjson-glib-1.0-0 1.4.4-2
ii liblcms2-2 2.9-4+b1
ii libpango-1.0-0 1.46.1-1
ii libpangocairo-1.0-0 1.46.1-1
ii libpng16-16 1.6.37-2
ii libraw20 0.20.0-4
ii librsvg2-2 2.48.7-1
ii libsecret-1-0 0.20.3-1
ii libsoup2.4-1 2.70.0-1
ii libstdc++6 10.2.0-5
ii libtiff5 4.1.0+git191117-2
ii libwebkit2gtk-4.0-37 2.28.4-1
ii libwebp6 0.6.1-2+b1
ii zlib1g 1:1.2.11.dfsg-2
Versions of packages gthumb recommends:
ii libgphoto2-6 2.5.25-3
ii libgphoto2-port12 2.5.25-3