[Linux][i915] Shutdown takes 18s

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

[Linux][i915] Shutdown takes 18s

Post by MF- »

Minor thing - game shutdown takes too long (~18s).
That's it.
Is it normal, or me-specific?
Last edited by MF- on Tue Feb 26, 2013 3:16 pm, edited 1 time in total.

User avatar
Narc
Filter Inserter
Filter Inserter
Posts: 278
Joined: Mon Feb 11, 2013 7:25 am
Contact:

Re: [Linux] Shutdown takes 18s

Post by Narc »

It's not just you. Clocked my testbed at 14 seconds from hitting the Quit button to the window actually closing -- note I hadn't done anything other than starting the game.

Waiting for a timeout, maybe? Or just deallocating stuff? Either way, for responsiveness, the window should probably be closed as early as possible, even if the process hangs around a bit after that.

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [Linux] Shutdown takes 18s

Post by MF- »

Out of curiosity I looked at it's strace.
The entire delay is caused by one ioctl on the FD 6 (/dev/dri/card0)

Fun part:
The first argument of the ioctl matches the first argument of the last ioctl before the crash/stall on startup.
But that ioctl actually returns and the stall occurs after that.

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [Linux] Shutdown takes 18s

Post by MF- »

UPDATE:
If I disable DRI access, the shutdown is almost instant.
I guess it's an libgl-v.s.-i915 problem

Game loading is slower, but does not stall in the middle (thus overall faster)

Gameplay framerate is greatly impaired by software rendering (~5 FPS) of course.

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [Linux][i915] Shutdown takes 18s

Post by MF- »

UPDATE:
A new libGl driver has arrived though the updates yesterday, bringing 50MB of extra code. [ubuntu 13.04-dev]
I saw some hints that LLVM is now supported (something about translating requested operations into GPU-supported operations)

Both the startup and shutdown stalls are gone! :) Hooray! (however, the sigbus crash is not)

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [Linux][i915] Shutdown takes 18s

Post by MF- »

Wrong.. After a very long game session (whole day, but interleaved with gaps and VT switches) it didn't shutdown in what I think was at least 5 minutes.
(I got impatient and killed it)

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [Linux][i915] Shutdown takes 18s

Post by MF- »

This should be probably moved out of unresolved bugs section (resolved in libllvm3.2)
I expect the freeze from the post above to be completely unrelated.

Post Reply

Return to “1 / 0 magic”