Skip to contentSkip to conversation

UML Hang / strace fix

uml-devel robl 2 participants 2 messages May 26, 2006 User-mode Linux (UML)

lore
Share & tools
lore

robl

author
#0 lore raw

Hi,

I posted this on #UML and was asked to repeat it here ...

I've recently installed UML on a Compaq DL360 G1 Dual P3 1Ghz / Debian Sarge

I see intermittent hangs with the UML kernel at :

Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
ubda: unknown partition table
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly. <----- Hangs here

The processlist at this point is :

root 14553 1.1 1.9 206200 10056 pts/0 S+ 00:33 0:00
linux mem=200M eth0=tuntap,tap1
root 14558 0.0 1.9 206200 10056 pts/0 S+ 00:33 0:00
linux mem=200M eth0=tuntap,tap1
root 14559 0.0 1.9 206200 10056 pts/0 S+ 00:33 0:00
linux mem=200M eth0=tuntap,tap1
root 14560 0.0 1.9 206200 10056 pts/0 S+ 00:33 0:00
linux mem=200M eth0=tuntap,tap1

If I strace -p 14560 then I see :

debian:~# strace -p 14560
Process 14560 attached - interrupt to quit
poll([{fd=15, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(15, "\0", 1)                       = 1
write(15, "\0", 1)                      = 1
poll(

This then causes the UML kernel to continue booting normally.

It seems a 50/50 success/hang rate.

The UML kernel is Linux (none) 2.6.16 #2 Sat Apr 29 23:36:42 CEST 2006 i686 GNU/Linux

I've tried this with a stock Debian sarge 2.4 and a patched 2.6 skas as the host kernels both with the same results.

Anybody have any ideas why this hangs and why strace kicks it back into action ?

Thanks,

Rob

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw

I've installed a UML kernel from http://uml.nagafix.co.uk/ and this seems to have fixed the problem so it looks like a problem with the stock debian user-mode-linux package kernel. If anybody is interested in the problem then let me know what diagnostics you'd like to see and I'll see what I can provide (it would be nice if the stock debian worked on my system) but otherwise I'm happy with this solution.

Cheers,

Rob

On Fri, 26 May 2006 23:30:12 +0100, robl wrote

Quoted 51 lines

Hi,

I posted this on #UML and was asked to repeat it here ...

I've recently installed UML on a Compaq DL360 G1 Dual P3 1Ghz / Debian Sarge

I see intermittent hangs with the UML kernel at :

Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
ubda: unknown partition table
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly. <----- Hangs here

The processlist at this point is :

root 14553 1.1 1.9 206200 10056 pts/0 S+ 00:33 0:00
linux mem=200M eth0=tuntap,tap1 root 14558 0.0 1.9 206200
10056 pts/0 S+ 00:33 0:00 linux mem=200M
eth0=tuntap,tap1 root 14559 0.0 1.9 206200 10056 pts/0 S+
00:33 0:00 linux mem=200M eth0=tuntap,tap1 root
14560 0.0 1.9 206200 10056 pts/0 S+ 00:33 0:00
linux mem=200M eth0=tuntap,tap1

If I strace -p 14560 then I see :

debian:~# strace -p 14560
Process 14560 attached - interrupt to quit
poll([{fd=15, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(15, "\0", 1)                       = 1
write(15, "\0", 1)                      = 1
poll(

This then causes the UML kernel to continue booting normally.

It seems a 50/50 success/hang rate.

The UML kernel is Linux (none) 2.6.16 #2 Sat Apr 29 23:36:42 CEST 2006 i686 GNU/Linux

I've tried this with a stock Debian sarge 2.4 and a patched 2.6 skas as the host kernels both with the same results.

Anybody have any ideas why this hangs and why strace kicks it back into action ?

Thanks,

Quoted 7 lines

Rob

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642

Quoted 4 lines

_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel