Re: DoS with tmpfs #3

Rik van Riel (riel@conectiva.com.br)
Sat, 4 Aug 2001 03:07:31 -0300 (BRST)


On Fri, 3 Aug 2001, Ivan Kalvatchev wrote:

> I don't like stuped jokes.

> Oh maybe you have used to work in microsoft and this
> is not a bug but a feature :-{

I don't like insults. Or people who don't read what
I write but complain about it anyway.

I'll explain things once more. Slowly.

1) you create a tmpfs with a high limit, such that
(max size tmpfs) + (user memory) > ram + swap

2) you proceed to completely fill up ram and swap

3) now ram and swap is full and the computer has no
place to put new data

Apart from adding swap space on the fly or going to the
shop to buy you more memory (neither of which is implemented
in the current kernel) there is very little the kernel can
do.

As long as you don't try to use more resources than you
have you will be ok.

regards,

Rik

--
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...

http://www.surriel.com/ http://distro.conectiva.com/

Send all your spam to aardvark@nl.linux.org (spam digging piggy)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/