On martedì 11 settembre 2007, Christopher S. Aker wrote:
> Jeff Dike wrote:
> > On Thu, Sep 06, 2007 at 11:03:52AM -0400, Christopher S. Aker wrote:
> >> 2.6.22.6-um
> >>
> >> init_new_context_skas - new_mm failed, errno = -24
> >> init_new_context_skas - new_mm failed, errno = -24
> >> init_new_context_skas - new_mm failed, errno = -24
> >> Kernel panic - not syncing: switch_mm_skas - PTRACE_SWITCH_MM failed,
> >> errno = 9
> >>
> >> Is this cause by a still-too-low max_map_count value?
> >
> > Could be - what was the host's max_map_count?
> >
> >                             Jeff

errno = 24 means EMFILE (too many open files).

And I read, in mm/mmap.c: do_mmap_pgoff():

        /* Too many mappings? */
        if (mm->map_count > sysctl_max_map_count)
                return -ENOMEM;

While open_proc_mm only returns 0 or -ENOMEM.

So I'm 99% sure that you have indeed too many open files. There is a 
differnence between EMFILE and ENFILE - I vaguely remember that the 2nd is 
about ulimit while the first is about the total number of fd's. (man proc 
should says how to increase it - it is under /proc/sys).

> [EMAIL PROTECTED]:~# cat /proc/sys/vm/max_map_count
> 500000
> [EMAIL PROTECTED]:~# free -g
>               total       used       free     shared    buffers     cached
> Mem:            23          8         15          0          0          7
> -/+ buffers/cache:          0         23
> Swap:            1          0          1

Btw, note this:
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
SourceForge has not implemented AdSense at all, it seems...
-- 
"Doh!" (cit.), I've made another mistake!
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to