From: "Vegard Nossum" <vegard.nossum@gmail.com>
To: "Bill Davidsen" <davidsen@tmr.com>
Cc: "David Newall" <davidn@davidnewall.com>, linux-kernel@vger.kernel.org
Subject: Re: Swap on loop device on tmpfs locks up machine
Date: Sat, 27 Sep 2008 20:30:16 +0200 [thread overview]
Message-ID: <19f34abd0809271130h47cef59em759910b1cd2c920c@mail.gmail.com> (raw)
In-Reply-To: <48DE6F93.9030002@tmr.com>
On Sat, Sep 27, 2008 at 7:38 PM, Bill Davidsen <davidsen@tmr.com> wrote:
> David Newall wrote:
>>
>> Vegard Nossum wrote:
>>>
>>> It turns out that swap over loop device on tmpfs will lock up the
>>> machine.
>>
>> Doesn't tmpfs use otherwise-free virtual memory? I expect the machine
>> would lock up if you put swap (i.e. additional virtual memory) on such a
>> device.
>
> To reinstate the paragraph from the O.P. you snipped:
>>> I'm not sure it's really a very good idea to do this in the first
>>> place, but should something give a warning or prevent a user from
>>> doing it?
>
> I think you are both right, it is a bad thing to do, it does seem to lock
> up, and something should prevent a user from doing that. But it may be
> easier to fix the lockup than get the "prevent" right, there appears to be a
> loop there.
>
> Just a simple questions to the O.P.: what were you thinking?!! Or was this a
> test just to see what would happen?
Just playing with the kernel :-)
Sometimes the "insane" things to do will turn up real errors in the
code. This one is in the borderlands, but I thought it wouldn't hurt
to post the results in either case.
Vegard
--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
next prev parent reply other threads:[~2008-09-27 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-26 18:46 Vegard Nossum
2008-09-27 12:49 ` David Newall
2008-09-27 17:38 ` Bill Davidsen
2008-09-27 18:30 ` Vegard Nossum [this message]
2008-09-28 15:18 ` Hugh Dickins
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=19f34abd0809271130h47cef59em759910b1cd2c920c@mail.gmail.com \
--to=vegard.nossum@gmail.com \
--cc=davidn@davidnewall.com \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.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®