Re: [RFC] Documentation/filesystems/tmpfs

From: Padraig Brady (padraig@antefacto.com)
Date: Wed Nov 28 2001 - 12:49:00 EST


Christoph Rohland wrote:

> Hi Padraig,
>
> On Wed, 28 Nov 2001, Padraig Brady wrote:
>
>>>In contrast to RAM disks, which get allocated a fixed amount of
>>>physical RAM, tmpfs grows and shrinks to accommodate the files it
>>>contains and is able to swap unneeded pages out to swap space.
>>>
>>
>>
>>That isn't the case now since ramdisks were integrated with the
>>buffer cache:
>>
>
> What isn't the case any more?

Because the RAM is now (de)allocated as required.

>
>>$ dd if=/dev/zero of=/tmp/use_mem bs=1024 count=20000
>>
>
> On what filesystem is /tmp/use_mem located? What do you want to show?

Filesystem? ext2 on /dev/ram1(rd.o)
meminfo shows the memory being reclaimed as the file is deleted.

Padraig.

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



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:31 EST