mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Russ Cox <rsc@golang.org>
To: Martin Capitanio <m@capitanio.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org,
	golang-dev <golang-dev@googlegroups.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Albert Strasheim <fullung@gmail.com>
Subject: Re: mmap, the language go, problems with the linux kernel
Date: Wed, 9 Feb 2011 11:40:53 -0500	[thread overview]
Message-ID: <AANLkTikO2GAAe8brJKzxVUzAkZ39dReU6TcVVE909_mB@mail.gmail.com> (raw)
In-Reply-To: <1297269019.4888.91.camel@marvin>

I don't think there is that much more to say but thanks for
assembling the To: line.

Go is still very much an experimental project.  It is fine
in our opinion to try things and see how they work.
We're happy to revisit design decisions if some of the
possible negatives that have been identified come to pass.

I agree with what Linus posted about it being of only very
long-term utility to change the kernel interface, and probably
not worth doing at all.  I think it's unfortunate (at least for the
people who think ulimit -v is useful for keeping your machine
from swapping) that mmap with PROT_NONE counts against
ulimit -v, but it is what it is.

In Alan's scenario about vm_overcommit, since that is a
Linux-specific feature and presumably more malleable, I would
hope that the "commit" charge doesn't happen until you do
mmap with prot != PROT_NONE.  As I said in some of the
quoted text, there are various sandboxes like Native Client
or VX32 that assume they can use mmap as a way to set up
restricted sub-address spaces at low cost, and I don't see
the benefit to committing the physical memory before the
addresses are mapped accessible.

Russ

  reply	other threads:[~2011-02-09 16:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-08 12:37 martin capitanio
2011-02-08 13:26 ` Alan Cox
2011-02-12 14:28   ` Florian Weimer
2011-02-13  1:22     ` Ted Ts'o
2011-02-16 20:51       ` Florian Weimer
2011-02-08 16:23 ` Linus Torvalds
2011-02-09 16:30   ` Martin Capitanio
2011-02-09 16:40     ` Russ Cox [this message]
2011-02-09 19:17     ` Ted Ts'o
2011-02-09 19:56       ` [golang-dev] " Ian Lance Taylor
2011-02-09 20:11         ` Ted Ts'o
2011-02-16 18:16       ` Hannes Frederic Sowa

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=AANLkTikO2GAAe8brJKzxVUzAkZ39dReU6TcVVE909_mB@mail.gmail.com \
    --to=rsc@golang.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=fullung@gmail.com \
    --cc=golang-dev@googlegroups.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m@capitanio.org \
    --cc=torvalds@linux-foundation.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®