lkml.org 
[lkml]   [2001]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Documentation/filesystems/tmpfs
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/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.045 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site