[uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread Riccardo Murri
Hello, I'm trying to use UML to provide a "standard environment" for computational jobs in a Grid computing setting. So, I launch "linux mem=256M ubd0=apppot0.img con=null con0=fd:0,fd:1 root=/dev/ubda umid=my". The /etc/inittab within the UML machine is set up to run a certain non-interactive s

Re: [uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread Riccardo Murri
Hi Richard, On Fri, Apr 29, 2011 at 5:47 PM, richard -rw- weinberger wrote: > Anyway, what is the exact command-line which causes UML to hang? > Can you provide me a stand alone test case? > Here it is: * download the 64-bit kernel: http://uml.devloop.org.uk/kernels/kernel64-2.6.35.7.bz2 *

Re: [uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread Riccardo Murri
On Fri, Apr 29, 2011 at 6:46 PM, richard -rw- weinberger wrote: > I fear you cannot use /dev/null (or any other non-tty file) as stdin. :-( > UML uses poll() to detect whether input is available from stdin. > As you can always read from /dev/null poll() doesn't block and > UML gets flooded with in

[uml-user] threads in x86_64 UML

2011-06-23 Thread Riccardo Murri
Hello, I'm trying to run some MatLab compiled code in a x86_64 Debian squeeze UML; unfortunately, the code crashes and the backtrace indicates that the problem is due to a failing clone() call. Googling the issue, I found hints that this might be because UML does not support NPTL, which is the th

Re: [uml-user] threads in x86_64 UML

2011-06-23 Thread Riccardo Murri
Hi Richard, On Thu, Jun 23, 2011 at 6:10 PM, richard -rw- weinberger wrote: > On Thu, Jun 23, 2011 at 5:38 PM, Riccardo Murri > wrote: >> I'm trying to run some MatLab compiled code in a x86_64 Debian squeeze UML; >> unfortunately, the code crashes and the backtrace ind

Re: [uml-user] threads in x86_64 UML

2011-06-24 Thread Riccardo Murri
Hi Richard, On Fri, Jun 24, 2011 at 9:07 AM, richard -rw- weinberger wrote: > On Thu, Jun 23, 2011 at 11:16 PM, Riccardo Murri > wrote: >> Being MatLab stuff, I'm afraid I cannot provide a full test case; this >> is the top of the stack as it gets dumped out after t

[uml-user] UML, threads and memory usage

2011-08-04 Thread Riccardo Murri
Hello, I see that each UML instance starts a variable number of threads/processes. I'm using UML in a batch system (Sun Grid Engine 6.2); SGE kills my jobs because they exceed the allowed memory reservation. My guess is that SGE miscomputes the memory usage by computing the total over all thread

Re: [uml-user] threads in x86_64 UML

2011-08-15 Thread Riccardo Murri
Hi, I'm resurrecting this old thread just to summarize the final outcome for people coming to it from archive searches. The "clone" stack trace has nothing to do with the real cause of the error: starting with version R2010b, the MatLab runtime fails instead with an "out of memory" error. Indeed

[uml-user] "do_syscall_stub: syscall 8 failed" in UML

2011-08-15 Thread Riccardo Murri
Hello, We've been using UML to run some computational applications (developed in-house). The application runs fine for nearly 24h, then is killed with signal 9. Just before the application is killed, these lines appear on the console: [102159.27] do_syscall_stub : ret = -12, offset = 105

Re: [uml-user] "do_syscall_stub: syscall 8 failed" in UML

2011-08-16 Thread Riccardo Murri
Hi Richard, On Tue, Aug 16, 2011 at 9:39 AM, richard -rw- weinberger wrote: >> Just before the application is killed, these lines >> appear on the console: >> >>   [102159.27] do_syscall_stub : ret = -12, offset = 1052688, data = >> f7b7c010 >>   [102159.27] do_syscall_stub: sysc

Re: [uml-user] "do_syscall_stub: syscall 8 failed" in UML

2011-08-17 Thread Riccardo Murri
Hi Richard, On Tue, Aug 16, 2011 at 10:41 AM, richard -rw- weinberger wrote: > Memory within UML is mapped to the "real" memory on the host side > using mmap(). [...] On my desktop /proc/sys/vm/max_map_count is > 65530, so UML can map up to 65530 4k pages which is 256M. I guess > your program

Re: [uml-user] threads in x86_64 UML

2011-08-31 Thread Riccardo Murri
"-singleCompThread" switch, e.g.: mcc -R '-nojvm,-nodisplay,-singleCompThread' magicsquare.m I tested the above with the MatLab compiler from R2011a and the compiled code correctly runs in a UML virtual machine running Debian 6. Regards, Riccardo -- Riccardo Murri Grid Computi

[uml-user] SMP in UML?

2011-08-31 Thread Riccardo Murri
Hi *, a possibly stupid question: is there a way to simulate an SMP Linux machine with UML? I cannot find CONFIG_SMP in "make ARCH=um menuconfig" and running "./linux --help" does not show any relevent option... Regards, Riccardo --

Re: [uml-user] UML, threads and memory usage

2011-10-12 Thread Riccardo Murri
Hello, sorry for resurrecting this old thread, but I need to test my understanding of the problem and I'd like to ask for a clarification. On Thu, Aug 4, 2011 at 7:09 PM, richard -rw- weinberger wrote: > On Thu, Aug 4, 2011 at 5:42 PM, Riccardo Murri wrote: >> >> I see th

Re: [uml-user] UML, threads and memory usage

2011-10-13 Thread Riccardo Murri
Hi Jeff, all, On Thu, Oct 13, 2011 at 3:35 AM, Jeff Dike wrote: > UML uses separate address spaces for its processes, thus > they don't look like threads to anything else, but the bulk of the > memory (the UML kernel) in those address spaces is shared. Is it technically feasible to modify UML so

Re: [uml-user] stop a vm

2011-11-29 Thread Riccardo Murri
On Wed, Nov 30, 2011 at 00:20, mattias wrote: > are it possible from the host? Have a look at the `uml_mconsole` command. If you pass the `umid=somestring` option to the UML, then you can kill it with: uml_mconsole somestring halt (Unless the UML is stuck hard, in which case you have to re

Re: [uml-user] Can i run uml in the background ?

2011-12-02 Thread Riccardo Murri
Hi Ning Ji, On Fri, Dec 2, 2011 at 22:10, ning ji wrote: > but when i run > >  #sudo ./umlinux ubda=./fs6 mem=128M > eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 & > > i got this > > [1]+  Stopped                 sudo ./umlinux ubda=./fs6 mem=128M > eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 > A

Re: [uml-user] UML, threads and memory usage

2011-12-06 Thread Riccardo Murri
Hello, Sorry again for resurrecting an old thread, but I each time I look into this issue I realize that I haven't quite understood the details... On Thu, Oct 13, 2011 at 03:35, Jeff Dike wrote: > On Thu, Oct 13, 2011 at 01:37:24AM +0200, Riccardo Murri wrote: >> - however, UM

Re: [uml-user] UML, threads and memory usage

2011-12-06 Thread Riccardo Murri
Hi Jeff, Richard, many thanks for your explanations! I think I got it now... One more question: On Tue, Dec 6, 2011 at 21:49, Jeff Dike wrote: > On Tue, Dec 06, 2011 at 07:48:40PM +0100, Riccardo Murri wrote: >> In addition, *every* syscall generates a SIGTRAP to the UML kernel &

[uml-user] slow ubd performance

2011-12-08 Thread Riccardo Murri
Hi *, the file-backed `ubd` devices in my UML instances are terribly slow, and generate a lot of "iowait" load on the host. It looks like as if filesystems mounted from `ubd` devices were using the `sync` option. This happens with kernels downloaded from uml.devloop.org.uk, as well with kernels

Re: [uml-user] impact on erlang?

2011-12-13 Thread Riccardo Murri
Hi Matthias, On Tue, Dec 13, 2011 at 20:21, Matthias Rieber wrote: > Am 13.12.2011 16:13, schrieb richard -rw- weinberger: >> I'll try that. What should I grep for in the strace log? >> >> For anything which can cause your problem. >> E.g. Failing system calls which should not fail... >> >> We've

Re: [uml-user] when running multiple UML instances, seems they are running 1 by 1

2012-01-29 Thread Riccardo Murri
Hi Ning Ji, On Thu, Jan 26, 2012 at 18:14, ning ji wrote: > Basically you see the messages 1 by 1 from different instances, > not that smooth. > > Though these are processes running in a ubuntu, should be multi-threaded. I'm not sure what you mean by "see the messages 1 by 1", but each UML inst

Re: [uml-user] UML networking setup

2012-02-06 Thread Riccardo Murri
Hi, On Mon, Feb 6, 2012 at 19:22, Saket Chawla wrote: >  Can someone help me with setting up networking in UML? There are several different ways of making the UML guest communicate with the host, each with its own strengths and weaknesses. The "old site" has a fairly comprehensive review of netw

[uml-user] do UML guests need NTP?

2012-02-09 Thread Riccardo Murri
Hello, is NTP needed on UML VMs? Or does the UML kernel take the time from the host kernel? (so it's enough if the host runs NTP) Thanks, Riccardo -- Virtualization & Cloud Management Using Capacity Planning Cloud compu

Re: [uml-user] UML root image sharing

2012-02-14 Thread Riccardo Murri
Hello, On Tue, Feb 14, 2012 at 13:25, Ritesh Raj Sarraf wrote: > Is there a particular format of the root image that UML uses? > It's the "raw" image format. Using the KVM tools, you can create one with "qemu-img create -f raw". Otherwise just use "dd" as in: # create a 2GB raw disk image

[uml-user] suspend-to-disk support in UML?

2012-03-07 Thread Riccardo Murri
Hello, Is there any kind of support for suspend-to-disk functionality for UML? (already available or being worked on or planned?) I understand there used to be some kind of support[1] for it in the past, but its development seems to have ended some years ago. [1]: http://sourceforge.net/projects

Re: [uml-user] uml upload speed capped at 46KB/s

2012-03-08 Thread Riccardo Murri
Hello, On Sat, Jun 25, 2011 at 15:28, Manfred Haertel wrote: > The slirp utility defers the TCP ACK for 200 milliseconds (which may be a > good idea on a slow modem connection, but not in an UML environment). > > This limits the throughput to something around 9000 bytes (the TCP window > size) in

[uml-user] UML not shutting down due to "task killall5 blocked for more than 120 seconds"

2012-05-09 Thread Riccardo Murri
Hello, we're having issues with a UML machine that refuses to shut down: the halt sequence commences and then we get the following kernel error message and backtrace: Asking all remaining processes to terminate... INFO: task killall5:5269 blocked for more than 120 seconds. [ 1080.3200

Re: [uml-user] UML not shutting down due to "task killall5 blocked for more than 120 seconds"

2012-05-09 Thread Riccardo Murri
Hi Richard, On Wed, May 9, 2012 at 12:06 PM, richard -rw- weinberger wrote: >> we're having issues with a UML machine that refuses to shut down: the >> halt sequence commences and then we get the following kernel error >> message and backtrace: >> >>    Asking all remaining processes to terminate