Port-hpcmips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RAM disk



Scott Lawrence wrote:

> On Mon, Feb 18, 2008 at 8:16 AM, David Brownlee <abs%netbsd.org@localhost> 
> wrote:
> 
>>        The simplest option is probably to mount a tmpfs filesystem and
>>        copy the files you want to it, then copy things back when done.
>>
>>        eg:
>>
>>        # mkdir /ramdisk
>>        # mount -t tmpfs tmpfs /ramdisk
> 
> 
> mount_tmpfs: tmpfs on /ramdisk: Operation not supported by device
> 
> 
> 
>>
>>        # cp -R /somedir /ramdisk
>>
>>        the tmpfs will grow and shrink as necessary, so watch out if you
>>        put too much data on there and use up all your ram...
>>
> 
> Understood
> 
> this seems like the solution for me.
> 
> I'll try out the other things you suggested asap.
> 
> -s
> 
> 
Scott

I think the 4.0 kernel does not have TMPFS configured as default, so you
need to compile the kernel with option TMPFS


risto



Home | Main Index | Thread Index | Old Index