[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: delay before desktop loads



On 30/07/18 07:07, Frank McCormick wrote:
I've been experiencing a long delay - upwards of 2 minutes before
the desktop on my Debian Sid loads and displays.
This happens no matter what desktop I try, Cinnamon,Mate or Icewm.
[...]
I enter my
name and password into the lightdm logon window, the wait is upwards of 2 minutes before the desktop loads.
[...]
Jul 29 12:06:49 franklin kernel: random: crng init done
[...]
Strangely if I click the mouse on the blank desktop several times, then it will start loading, but
if I don't touch it, the 2 minute delay starts
This started a couple of weeks ago, before that all desktops loaded quickly.
How can I debug this ?

Frank, this sounds very much like a hang on an uninitialised kernel crng. Does this only happen after a fresh boot, but the hang stops if you wiggle the mouse? If so, you might be impacted by the change to make the blocking getrandom kernel syscall really block until sufficient entropy is available. Here are some reports I made of other applications that were affected by this change, with detailed analysis and fixes:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897572
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899080

To identify whether this is the problem, you could patch your kernel. Here are the patches I used:
https://github.com/bencaradocdavies/linux/commit/f0dfb0b7b72e38093aeaa67fe1116b409c1db3dc
https://github.com/bencaradocdavies/linux/commit/19e47d7049c6ca94b98cf8c00bbeb2384a9c43b9

When I had identified the application, I used ltrace to identify the library causing the problem.

What is your kernel version?

Kind regards,

--
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand


Reply to: