All of lore.kernel.org
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>,
	"Christopher S. Aker" <caker@theshore.net>
Subject: Re: [uml-devel] init_new_context_skas - new_mm failed, errno = -24
Date: Tue, 11 Sep 2007 16:00:58 +0200	[thread overview]
Message-ID: <200709111601.03376.blaisorblade@yahoo.it> (raw)
In-Reply-To: <46E5CE03.6000009@theshore.net>


[-- Attachment #1.1: Type: text/plain, Size: 1948 bytes --]

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).

> root@atlanta20:~# cat /proc/sys/vm/max_map_count
> 500000
> root@atlanta20:~# 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 #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2007-09-11 14:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 15:03 [uml-devel] init_new_context_skas - new_mm failed, errno = -24 Christopher S. Aker
2007-09-10 16:14 ` Jeff Dike
2007-09-10 23:06   ` Christopher S. Aker
2007-09-11 14:00     ` Blaisorblade [this message]
2007-09-11 14:58       ` Jeff Dike
2007-09-11 15:14         ` Blaisorblade
2007-09-21 18:41       ` Jeff Dike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200709111601.03376.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=caker@theshore.net \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.