You can also add this to your fstab:
shm             /dev/shm        tmpfs   defaults                        0 0

Then you can write whatever you want to /dev/shm (by default it will
be 50% of your ram, its configurable).
Then you can also use unionfs to enable the applications to write to
your OS filesystem, while they will be really writing to /dev/shm
(which is ram based).  This requires patching the kernel.

Alan


2010/5/12 Stephen Melvin <[email protected]>:
> Not sure if this will help, but I have a somewhat similar arrangement on a
> Soekris box running FreeBSD 6.3 booting off a CF device with the need for
> temporary files that I didn't want to write to the card.  I did the
> following in a startup script:
>
>         mkdir /mem
>
>         mdmfs –s 1m –M md1 /mem
>
>
>
> this allocates a 1M malloc based disk in the directory /mem.  You can then
> create and delete files there just like a normal file system.  Be sure to
> set the permissions on the directory as needed.  If you want to deallocate
> you can: umount /mem ; mdconfig –d –u 1.  Hope this helps,
>
> Steve
>
>
> On 5/11/2010 7:17 PM, Harry Covair wrote:
>
> Hey all;
>
> I'm looking at putting up a machine that would be booting from CF and
> running net-snmp.  Though not directly related to the Soekris product, I'm
> having a devil of a time trying to figure out where the snmp counters would
> be.  I would want to ramdisk the file(s) or folders where this data is kept
> rather than constantly writing to the CF device.
>
> Anyone roll this out before?  Any advice?  Thanks!
>
> BTW, the box will be running OpenBSD 4.6
>
> _______________________________________________
> Soekris-tech mailing list
> [email protected]
> http://lists.soekris.com/mailman/listinfo/soekris-tech
>
>
> --
> ------------------------------------
> Stephen Melvin, Ph.D.
> [email protected]
> Zytek Communications Corporation
> One Market Street, Spear Tower, Suite 3600 San Francisco, California 94105
> Office: 415-738-8734
> Mobile: 415-608-5149
> -------------------------------
> This message may contain information that is confidential or privileged.  If
> you are not the intended recipient, please immediately advise the sender by
> reply e-mail that this message has been inadvertently transmitted to you and
> delete this e-mail from your system. Thank you for your cooperation.
>
> _______________________________________________
> Soekris-tech mailing list
> [email protected]
> http://lists.soekris.com/mailman/listinfo/soekris-tech
>
>
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to