Alle 16:22, domenica 11 gennaio 2004, Andreas Wohlfeld ha scritto:
> Kernel panic: init_new_context_skas - new_mm failed, errno = -24
> Is this file handle related?
Yes, exact (and smart) catch: that's -EMFILE, too many files.
> /proc/sys/fs/file-max on the host is 104849.
> On the uml, it's smaller, but I have tried larger values.
In that moment UML itself (and not one of the processes inside) is trying to
open a file; so the /proc... limit inside UML is not important.
> The uml process hat "ulimit -n" of
> "1024", is this the actual limit for all processes of the uml?
In short: increase a lot this limit and retry, that error messages comes for
sure from this limit, since the UML kernel is trying to open a file.
However, this is for the file handles the UML kernel itself uses; but to open
a file with hostfs (if you use it) from inside UML, the kernel needs to open
it on the host; also, it opens a new handle (to /proc/mm) for each process it
starts, in the skas mode.
In fact that is an error message from the SKAS process creation routine. You
can watch this with ls /proc/<Uml kernel pid, try all the pids you see>/fd
and lsof |grep linux.
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.23/2.6.0 on an i686; Linux registered user n. 292729