ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: How to use tmpfs on TS-Linux?

To: ts-7000 discussion group <>
Subject: Re: [ts-7000] Re: How to use tmpfs on TS-Linux?
From: Jim Jackson <>
Date: Thu, 13 Oct 2005 09:47:19 +0100 (BST)
On Wed, 12 Oct 2005, Mike Dodd wrote:

> > Ram disk size is a preset in the kernel - usually 4MB
> > You need to build a filesystem on /dev/ram, so e.g.
> >  mkfs -t ext2 /dev/ram
> > [...]
> >  mount -t ext2 /dev/ram /mnt
>
> According to Google searches, tmpfs is part of the 2.4 kernel (i.e.,
> it's virtual memory), and there is no need to create a ramdisk. My
> understanding is that tmpfs is used INSTEAD OF a ramdisk for a
> temporary filesystem. Everything I read says this specifically.
>
> (BTW, I tried 'mount tmpfs /mnt/tmpfs -t tmpfs' on my SUSE Linux
> server with a 2.4 kernel, and it did mount as expected, and I could
> write files to it and read them back. In other words, it worked
> exactly like the Google searches indicated, and I didn't have to
> create a ramdrive.)
>
> Assuming tmpfs _is_ in the TS-Linux 2.4 kernel, but requires a kernel
> option at boot-time to enable it, how do I pass such an option to the
> kernel?
>
> Thanks again for any and all advice. The Technologic documentation is
> sorely lacking in this regard.

I think it fair that they assume some linux knowledge and essentially
concentrate on where there product has specifics.

You don't "switch on " features in the linux kernel like you indicate. You
may pass parameters/variables.

tmpfs is not an alternative to ramdisks. A kernel can support both.

If the kernel was compiled with tmpfs it is there - period.
There is a list of inbuild filesystems that the current kernel supports

  cat /proc/filesystems

If it is not built in, it may have been built as a module - a dynamically
loadable feature of the kernel. I'm a bit clueless when it comes to
modules.

I'm at home so I've just checked the config file for my last kernel build
(last Xmas! boxing day actually - sad) and it appears the TS build doesn't
enable TMPFS. As far as I remember, I only enabled a couple of kernel
options ontop of the basic TS build. It appears that RAMFS support is
built in.

Does /dev/ram1 /dev/ram2 etc exist?

/dev/ram is usually a symlink to /dev/ram1, but I'm not sure what happens
on a devfs system (the 7200 is the only system I've got that uses devfs,
so I'm a bit vague). If /dev/ram1 exists use that instead of /dev/ram



>
> Mike
> 
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU