public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: "Ted Ts'o" <tytso@mit.edu>
Cc: Martin Capitanio <m@capitanio.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org,
	golang-dev <golang-dev@googlegroups.com>,
	Russ Cox <rsc@golang.org>, Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Albert Strasheim <fullung@gmail.com>
Subject: Re: [golang-dev] Re: mmap, the language go, problems with the linux kernel
Date: Wed, 09 Feb 2011 11:56:13 -0800	[thread overview]
Message-ID: <mcrei7hnfs2.fsf@google.com> (raw)
In-Reply-To: <20110209191755.GE9533@thunk.org> (Ted Ts'o's message of "Wed, 9 Feb 2011 14:17:55 -0500")

"Ted Ts'o" <tytso@mit.edu> writes:

> Linux has interpreted it to mean "virtual address space", and in fact
> it's documented as such in the its version of the getrlimit man page.
> I'd have to agree with Linus that it's probably way too late to change
> what it means (or what Linux thinks it means, anyway).

I don't think anybody seriously expects Linux to change the meaning of
ulimit -v at this point.  Obviously Go is going to do something
different here.

However, I think it's still worth pointing out that while ulimit -v no
doubt has specialized applications, it does not do exactly what I think
most people want.  I think most people want some way to say "do not let
this program cause my machine to start thrashing."  That's what I use
ulimit -v for; if I don't, a program which accidentally allocates memory
in an endless loop starts thrashing.  But I don't actually care how much
virtual memory the program is using; what I care about is limiting the
amount of physical memory it is using, so that it doesn't take over my
machine.

I think that would be a useful feature to implement regardless of how we
feel about ulimit -v and Go.  I think we can reasonably expect more and
more programs to try to advantage of large virtual address spaces.  Lets
have a way to use them while still having a way to keep them from
thrashing.

Ian

  reply	other threads:[~2011-02-09 19:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-08 12:37 mmap, the language go, problems with the linux kernel 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
2011-02-09 19:17     ` Ted Ts'o
2011-02-09 19:56       ` Ian Lance Taylor [this message]
2011-02-09 20:11         ` [golang-dev] " 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=mcrei7hnfs2.fsf@google.com \
    --to=iant@google.com \
    --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=rsc@golang.org \
    --cc=torvalds@linux-foundation.org \
    --cc=tytso@mit.edu \
    /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