I don't see ramfs available on the 7350. However, I can use tmpfs or /dev/ram1.
Is there more of a benefit of using tmpfs or ramx? I've found some older posts
discussing the difference between tmpfs and ramfs.
Thanks,
Steve
--- In "naturalwatt" <> wrote:
>
>
>
> --- In Jason Stahls <jason@> wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 12/02/10 09:15, Steve M wrote:
> > > Thanks all for the input. As background, I have three processes running
> > > for my application, two of which I ported from a Linux PC. There is a
> > > shell script which wraps a gps client and filters the data I need. I have
> > > a C program that does memory mapping and a Java program that does the
> > > primary processing. The three process share data, though the shell script
> > > only creates data needed by the other two. These processes are working as
> > > desired. The only issue is the CPU spike.
> > >
> > > If time were not an issue, I could explore several of the options.
> > > It's easy enough to set up a socket between the C and Java program. I've
> > > also thought about calling the script from the Java program and getting
> > > back the data I need.
> > >
> > > What I have not tried before is writing the files to RAM so I'm not sure
> > > what is involved with that.
> >
> > How big are the files? If it's only a few KB then a RAM disk is
> > probably the easiest to implement since it wouldn't require much for
> > code changes (change the path your storing/reading the file from). I'm
> > not sure tho if the default TS kernel images are compiled with RAM disk
> > support tho.
> >
>
> Yes they are. it's very easy - add one line to /etc/fstab so it looks like
> this:
>
> $ cat /etc/fstab
> proc /proc proc defaults 0 0
> /dev/mtdblock/1 / jffs2 0 0
> ramfs /tmp ramfs 0 0
>
>
> Then /tmp is a ramdisk. Anything you write there will disappear after a
> reboot but writing there is fast and doesn't wear out flash memory.
>
> If you write too much stuff there you will start to run out of memory as show
> by free.
>
> Martin
>
>
> > - --
> > Jason Stahls
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|