QEMU refusing to die on FreeBSD host
Hello,
On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. It is stuck so badly that even kill -9 fails to stop it. I looked in top to see what it was doing that would cause it to lock so badly:
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemu
I believe the problem is that qemu for some reason refuses to stop trying to use the kqemu device.
I am running the latest qemu (0.9.1). I can provide a backtrace on request (I'm really busy right now with other things, so I didn't have time to attach one).
Regards
Jacob Myers
Quoted 9 lines · Jake Myers
Hello,
On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. It is stuck so badly that even kill -9 fails to stop it. I looked in top to see what it was doing that would cause it to lock so badly:
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemu
Quoted 6 lines
I believe the problem is that qemu for some reason refuses to stop trying to use the kqemu device.
I am running the latest qemu (0.9.1). I can provide a backtrace on request (I'm really busy right now with other things, so I didn't have time to attach one).
Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already got reports of (refcount problem, similar to what has already been fixed once, only this time it seems to be a race...)
If it is, you should be able to work around it by using an uniprocessor
host kernel until a fix is known.
Sorry...
Juergen
In message: <[email protected]>
Juergen Lock <[email protected]> writes:
: On Sun, Apr 06, 2008 at 12:55:39AM -0400, Jake Myers wrote:
: > Hello,
: >
: > On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. : > It is stuck so badly that even kill -9 fails to stop it. I looked in top to : > see what it was doing that would cause it to lock so badly:
: >
: > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
: > 34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemu
: >
: > I believe the problem is that qemu for some reason refuses to stop trying : > to use the kqemu device.
: >
: > I am running the latest qemu (0.9.1). I can provide a backtrace on request : > (I'm really busy right now with other things, so I didn't have time to : > attach one).
:
: Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already : got reports of (refcount problem, similar to what has already been fixed : once, only this time it seems to be a race...)
:
: If it is, you should be able to work around it by using an uniprocessor : host kernel until a fix is known.
Well, reboot also works, since qemu that gets stuck will slowly be paged out to the swap partition... it isn't a huge deal from a practical perspective... Of course, this is just until the bug is fixed...
Warner
Quoted 18 lines · Juergen Lock
Quoted 11 lines · Jake Myers
Hello,
On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. It is stuck so badly that even kill -9 fails to stop it. I looked in top to see what it was doing that would cause it to lock so badly:
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemuI believe the problem is that qemu for some reason refuses to stop trying to use the kqemu device.
I am running the latest qemu (0.9.1). I can provide a backtrace on request (I'm really busy right now with other things, so I didn't have time to attach one).
Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already got reports of (refcount problem, similar to what has already been fixed once, only this time it seems to be a race...)
Quoted 9 lines
If it is, you should be able to work around it by using an uniprocessor
host kernel until a fix is known.Sorry...
Juergen
I disabled SMP in my kernel, rebuilt the kqemu module, and tried to run it again. The same issue occurs.
Regards
Jacob Myers
In article <[email protected]> you write:
Quoted 27 lines
Quoted 26 lines · Juergen Lock
Quoted 9 lines · Jake Myers
Hello,
On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. It is stuck so badly that even kill -9 fails to stop it. I looked in top to see what it was doing that would cause it to lock so badly:
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemuQuoted 7 lines
I believe the problem is that qemu for some reason refuses to stop trying to use the kqemu device.
I am running the latest qemu (0.9.1). I can provide a backtrace on request (I'm really busy right now with other things, so I didn't have time to attach one).
Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already got reports of (refcount problem, similar to what has already been fixed once, only this time it seems to be a race...)
If it is, you should be able to work around it by using an uniprocessor
host kernel until a fix is known.
Quoted 8 lines
Quoted 6 lines
Sorry...
JuergenI disabled SMP in my kernel, rebuilt the kqemu module, and tried to run it again. The same issue occurs.
Hmm okay, then its not an SMP issue, thanks for the information! I guess then you can only do what Warner Losh suggested for the moment, leave the hanging process(es) until reboot... (You should at least be able to run qemu again from another terminal, maybe use screen for this.)
Sorry again...
Juergen
Quoted 34 lines · Juergen Lock
In article <[email protected]> you write:
Quoted 33 lines
Quoted 32 lines · Juergen Lock
Quoted 9 lines · Jake Myers
Hello,
On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. It is stuck so badly that even kill -9 fails to stop it. I looked in top to see what it was doing that would cause it to lock so badly:
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemuQuoted 7 lines
I believe the problem is that qemu for some reason refuses to stop trying to use the kqemu device.
I am running the latest qemu (0.9.1). I can provide a backtrace on request (I'm really busy right now with other things, so I didn't have time to attach one).
Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already got reports of (refcount problem, similar to what has already been fixed once, only this time it seems to be a race...)
If it is, you should be able to work around it by using an uniprocessor
host kernel until a fix is known.Sorry...
Juergen
Quoted 5 lines
Quoted 2 lines
I disabled SMP in my kernel, rebuilt the kqemu module, and tried to run it again. The same issue occurs.
Hmm okay, then its not an SMP issue, thanks for the information! [...]
OK, I just committed a fix, please try updating your kqemu port and tell me if it works for you then.
Thanx,
Juergen
Quoted 41 lines · Juergen Lock
Quoted 33 lines · Juergen Lock
In article <[email protected]> you write:
Quoted 31 lines
Quoted 29 lines · Juergen Lock
Quoted 12 lines · Jake Myers
Hello,
On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. It is stuck so badly that even kill -9 fails to stop it. I looked in top to see what it was doing that would cause it to lock so badly:
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemuI believe the problem is that qemu for some reason refuses to stop trying to use the kqemu device.
I am running the latest qemu (0.9.1). I can provide a backtrace on request (I'm really busy right now with other things, so I didn't have time to attach one).
Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already got reports of (refcount problem, similar to what has already been fixed once, only this time it seems to be a race...)
If it is, you should be able to work around it by using an uniprocessor
host kernel until a fix is known.Sorry...
JuergenQuoted 5 lines
Quoted 2 lines
I disabled SMP in my kernel, rebuilt the kqemu module, and tried to run it again. The same issue occurs.
Hmm okay, then its not an SMP issue, thanks for the information! [...]
Quoted 7 lines
OK, I just committed a fix, please try updating your kqemu port and tell me if it works for you then.
Thanx,
Juergen
Sorry for my very belated paste, I was away on vacation. It all works flawlessly now, thank you very much :-).
Regards
Jacob Myers