linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usermode linux hoses 2.2.18-SMP host machine when run from regular user account
@ 2001-02-01  4:29 Brian Ristuccia
  2001-02-01  6:08 ` [uml-devel] " Jeff Dike
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Ristuccia @ 2001-02-01  4:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: user-mode-linux-devel, Alex Pennace, Dennis Ristuccia

When run from a normal user account with its current working directory on a
NFS filesystem, usermode linux causes the host machine's kernel to enter a
hosed state. No processes (including UML) seem to respond, and the machine
becomes unusable.

I am running 2.2.18 built with SMP and hedrick's IDE patches on a dual
Celeron 366@550 box with 384mB of ram. I have also reproduced the crash on a
single Celeron 366@550 w/ 256mB of ram running 2.2.18-SMP w/ hedrick's IDE
patches, and a dual PPro 166 w/ 256mB of RAM running 2.2.18pre23 unmodified
from the version distributed by Alan Cox. The crash occurs with both the
usermode linux 2.4.0 binary from their web site and the linux 2.4.1 binary
there. I am using the root filesystem image file that comes in the tarball
named deb-package-2.4.0.tar.bz2. The crash comes after the line "INIT:
version 2.78 booting" during the virtual machine's boot sequence. The UML
web site is at http://user-mode-linux.sourceforge.net/

The UML people report that UML doesn't work when being run from an NFS
filesystem: 

  UML doesn't work when it is being run from an NFS filesystem: This seems to
  be a similar situation with the resierfs problem above. Some versions of
  NFS seems not to handle mmap correctly, which UML depends on.  The fix is
  to run UML in a non-NFS directory. The kernel binary and root filesystem
  be be mounted from NFS; UML itself just has to be running in a non-NFS
  directory.

But I can't see how something done in userspace should hang the whole
machine, especially when I set up low hard ulimits to prevent all system
resources from being consumed. The statistics I'm able to gather from
ctrl/shift-scrlock don't seem to indicate memory or process table overuse.

Alt-Fx still switches consoles unless X is running. Ctrl/shift-scrlock still
displays the usual debug stuff. The machine is still pingable and still
accepts tcp/ip connections but you don't get any response from the listening
daemon. Otherwise the box is hung. Ctrl-alt-del won't run the ctrlaltdel
entry in inittab. Hardware reset is required to restore machine to normal
operation.

-- 
Brian Ristuccia
brian@ristuccia.com
bristucc@cs.uml.edu
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [uml-devel] usermode linux hoses 2.2.18-SMP host machine when run  from regular user account
  2001-02-01  4:29 usermode linux hoses 2.2.18-SMP host machine when run from regular user account Brian Ristuccia
@ 2001-02-01  6:08 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2001-02-01  6:08 UTC (permalink / raw)
  To: Brian Ristuccia
  Cc: linux-kernel, user-mode-linux-devel, Alex Pennace, Dennis Ristuccia

brian@ristuccia.com said:
> When run from a normal user account with its current working directory
> on a NFS filesystem, usermode linux causes the host machine's kernel
> to enter a hosed state. No processes (including UML) seem to respond,
> and the machine becomes unusable. 

Just to clarify what I think UML is doing that's causing the trouble: it is an 
extensive user of mmap.  It creates several files (one 16 meg by default, but 
possibly much larger) in $PWD, and mmaps them into all of its threads.  The 
"physical memory" file also has individual pages mapped twice (or more) into 
various threads.

I've seen this confuse an old version of reiserfs and NFS, although not so 
much that the machine hung.  UML would just see stale data, get horribly 
confused by it, and crash.

				Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-01  4:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-01  4:29 usermode linux hoses 2.2.18-SMP host machine when run from regular user account Brian Ristuccia
2001-02-01  6:08 ` [uml-devel] " Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).