[WBEL-users] Changing ram disk size

Leonard Ye lye@antlabs.com
Wed, 15 Sep 2004 11:32:46 +0800


How does this tmpfs solve your initrd problem?

Regards,
Leonard Ye

Denis Croombs wrote:

> Hi James
> 
> Thanks for that, I found out about tmpfs a couple of hours ago and I am now
> doing it and it works perfectly for me.
> 
> Again many thanks
> 
> Denis
> 
> 
>>>I am trying to increase the ram disk size to 512mb
>>>
>>>
>>
>>Yikes! Is there some specific reason you're doing this? Can you use
>>tmpfs, which only uses the RAM needed, and immediately frees it when not
>>needed?
>>
>>For example, to remove minor irritation with VMWare and /var/run, I have
>>the following in /etc/fstab:
>>
>>none                    /var/run                tmpfs   defaults        1
> 
> 2
> 
>>Which you can see here:
>>
>>$  df -h
>>Filesystem            Size  Used Avail Use% Mounted on
>>/dev/md0               91G   84G  2.8G  97% /
>>/dev/hda1             251M   23M  216M  10% /boot
>>none                  504M   56K  504M   1% /var/run
>>none                  504M     0  504M   0% /dev/shm
>>
>>Hmmmm.... time to offload some stuff out of my ~ dir.
>>
>>Anyhow, you can play with this via:
>>
>>$ mount tmpfs <dir> -t tmpfs
>>
>>
>>-- 
>>This message has been scanned for viruses and
>>dangerous content by MailScanner, and is
>>believed to be clean.
>>
>>Marvin the E-Mail scanner
> 
> 
> 

-- 
Leonard Ye <lye@antlabs.com>
Ant in Research & Development
Advanced Network Technology Laboratories Pte Ltd
Tel: +65 68586789	Fax: +65 64874567
WWW: http://www.antlabs.com