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