LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 04-14-2009, 02:54 PM   #1
agkunkle
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
File system selection for a volatile drive (ext2 or tmpfs?)


I have a new project that involves migrating an old software baseline to run embedded Linux v.2.6.28 on an Atmel AT91SAM9G20-based board.

One of the tasks we are starting with is determining a fast good file system candidate for an external memory buffer (located behind an FPGA off the main bus). We will eventually be writing a block device driver for it, so that will be the interface. Of course, this is all volatile memory, so journaling, etc, is unneeded. What are some good candidates for creating a file system on this area?

To get started, I am using a ramdisk device to simulate the forthcoming interface to the RAM buffer. I am playing around with ext2/ext3 to do some initial benchmarking and ext2 seems to be the winner right now in terms of raw speed. I am also testing formatting the ramdisk as a swap area, mounting a tmpfs, and then writing a large file to the tmpfs to start getting the swap cache busy. Does this seem like a reasonable setup? Are there settings in /proc/sys/vm that will help characterize the performance more accurately?

With that in place, the tmpfs file system does much better than ext2, but I want to make sure there are not other good candidates (xfs, jfs, reiserfs, etc?) that would be good to test out. Thanks in advance!
 
Old 04-18-2009, 11:19 AM   #2
ljkenny
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Rep: Reputation: 0
What kind of memory is it you're referring to?

At first glance, tmpfs or ramfs would be of the more viable options.
 
Old 04-18-2009, 11:35 AM   #3
agkunkle
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Its DDR2 memory (about 128MB of it).

Once we get around to developing the block driver for it, it will be accesed through something like /dev/externram.


How would ramfs be an option for this, given how the device won't be part of the actual "system" memory? We are really looking for the most lean FS for this, given the volatility.


Thanks for the reply.
 
Old 04-18-2009, 11:43 AM   #4
ljkenny
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Rep: Reputation: 0
I'm not entirely sure what it is you're trying to do.

So you have access to an FPGA via your processor, which in turn has access to ~128MB of it's own memory.

Something like this?:
http://www.alchemydevices.ru/images/...P110%20Fig.jpg

And you wish to run a file system in it?
Attached Thumbnails
Click image for larger version

Name:	xEMP110%20Fig.jpg
Views:	15
Size:	96.5 KB
ID:	483  
 
Old 04-18-2009, 11:55 AM   #5
ljkenny
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Rep: Reputation: 0
After further investigation, it appears that the Virtual File System (VFS) may well be the key.

Read THIS from section 5 onwards.

How you implement such a thing on an FPGA and it's associtated memory is beyond my current understanding, but it gives you somewhere to start looking.
 
Old 04-18-2009, 12:00 PM   #6
agkunkle
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Yes, that picture is a more-or-less accurate picture of our setup. Some configurable portion of the 128MB FPGA RAM will be exposed to the kernel through a block device driver.

So basically, imagine you have a fast, volatile "hard drive" you want to throw a file system on top of, what do you choose to maximize the performance, given we don't care about journaling, etc.?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted ext2 file system theunixwizard Linux - Software 4 02-18-2008 01:12 PM
about the ext2 file system chenxiaopang Linux - Kernel 0 11-25-2007 02:18 AM
QEMU: tmpfs file system required steven01 Linux - Software 1 09-09-2006 07:10 PM
ext2 file system information vipulc Linux - General 4 08-19-2006 07:48 AM
How to print out ext2 File System justmehere Linux - General 2 08-02-2005 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration