Leap 15.3 some apps take 30 seconds to load on some machines and not on others.

On Wednesday 2021-10-20 00:01, Larry Len Rainey wrote:
https://forums.opensuse.org/showthread.php/561075-Some-Applications-take-30-...
Slow rotating hard disk in 2 of them? :D
Any ideas on how to find the slowness in loading?
top, to see if it's doing something with the CPU, or waiting for I/O. strace, to see if it is waiting on some whacko network request, or if it is opening loads of files / one file and then spending the remainder of its CPU time on that file. If I had $5 to gamble, I'd put it on (blaming) fontconfig.

Am 20.10.21 um 00:01 schrieb Larry Len Rainey:
First of all, does it consume CPU in those 30 seconds or not? * If it does, you could try some profiling with "perf". (From the package of the same name.) So run e.g. "perf record vlc", then close VLC after it has started. Then run "perf report" to get an idea where the most time is spent. * More likely it doesn't and instead waits. That's a bit more difficult but not insurmountable. Install bcc-tools and kernel-devel, then run "sudo /usr/share/bcc/tools/offcputime -p $PID", where $PID is the pid of the relevant process. (The script might be slow to start. If that's the case, run without "-p $PID" and instead filter the stacks after the fact for vlc or whatever program you're running.) Then paste the results here, just the top symbols for perf or the bottom results for offcputime (the longest waits come last) or open a bug right away if you think you know the culprit. In fact opening a bug report isn't the worst idea, even if you don't have any idea what component is at fault. Possibly it's some mutexes though, i.e. user space waiting for user space, which could get a bit harder. Best regards, Aaron

Hi, Am Mittwoch, 20. Oktober 2021, 00:01:30 CEST schrieb Larry Len Rainey:
I have posted in the forum for help but have not gotten anything that helped - I would love to find a way to see why. I know this is not the right way but I hope someone has an idea why and or how to find the problem and fix it.
Maybe a trace/truss could point out the cause of the delay (not my thing trying to understand trace/truss is beyond my knowledge) - my thing is scripting bash to do what is needed without input. I haven't code C in years (1988 was the last year and on 68020 based Unix).
You can try "strace -tT leafpad", if it's a syscall taking that long. It might be something in the event loop though, in which case the output won't be helpful. Usually long timeouts like this are either blocking DBus calls which aren't answered (broken service) or network related. For the former you can try watching "dbus-monitor" while starting an application, for the latter the usual suspects are the X11 display and session management. Is xterm also affected? Does it vanish after "unset SESSION_MANAGER"? Is the machine reachable under its assigned hostname(s)? Cheers, Fabian

On 20/10/2021 00.01, Larry Len Rainey wrote: ...
Any ideas on how to find the slowness in loading?
I have one laptop, upgraded from 15.2 to 15.3, where one application takes 20 seconds to start. I have not tested more applications. The delay appears in the log, related to xdg-desktop-portal-gtk.service. Archived-At: <https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/35NDF7GVNWKZSHVTFD2MV57VFMNC7WG6/> There is another similar thread: Archived-At: <https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/3WQDV4OAYMAV7YHOK3QNVQCZNSS266ZY/> Date: Thu, 18 Nov 2021 16:12:36 +0100 From: Istvan Gabor <suseuser04@gmail.hu> To: <users@lists.opensuse.org> Subject: gtk2 application start delays 25 seconds Message-ID: <feff7d44d161d36049378706c34a0b91@gmail.hu> -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)

On Wednesday 2021-10-20 00:01, Larry Len Rainey wrote:
https://forums.opensuse.org/showthread.php/561075-Some-Applications-take-30-...
Slow rotating hard disk in 2 of them? :D
Any ideas on how to find the slowness in loading?
top, to see if it's doing something with the CPU, or waiting for I/O. strace, to see if it is waiting on some whacko network request, or if it is opening loads of files / one file and then spending the remainder of its CPU time on that file. If I had $5 to gamble, I'd put it on (blaming) fontconfig.

Am 20.10.21 um 00:01 schrieb Larry Len Rainey:
First of all, does it consume CPU in those 30 seconds or not? * If it does, you could try some profiling with "perf". (From the package of the same name.) So run e.g. "perf record vlc", then close VLC after it has started. Then run "perf report" to get an idea where the most time is spent. * More likely it doesn't and instead waits. That's a bit more difficult but not insurmountable. Install bcc-tools and kernel-devel, then run "sudo /usr/share/bcc/tools/offcputime -p $PID", where $PID is the pid of the relevant process. (The script might be slow to start. If that's the case, run without "-p $PID" and instead filter the stacks after the fact for vlc or whatever program you're running.) Then paste the results here, just the top symbols for perf or the bottom results for offcputime (the longest waits come last) or open a bug right away if you think you know the culprit. In fact opening a bug report isn't the worst idea, even if you don't have any idea what component is at fault. Possibly it's some mutexes though, i.e. user space waiting for user space, which could get a bit harder. Best regards, Aaron
participants (5)
-
Aaron Puchert
-
Carlos E. R.
-
Fabian Vogt
-
Jan Engelhardt
-
Larry Len Rainey