LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-03-2007, 10:29 PM   #1
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
File System vs Archive


I'm working on a new project, for which I will need to access a large (anywhere up to 1000's) quantity of very small files (probably a median size of under 100B). I need to maintain access permissions (read and write for owner, group, and other), although executable permissions are not necessary. I must be able to arrange these files in a hierarchy structure. It is likely that files sharing a directory will most often be used together.

So, I realize that I have two main options - an archive or a file system. If I choose a file-system, it will be loop-mounted. I considered a file system with a very small block size. If I chose a file system, I think I would either use ext2 for its simplicity or reiserFS for its claims of good performance with small files. If I choose an archive, I like the compression of zip, but the portability of tar.

Suggestions? Could a database be a better solution? The primary goal is good access times and reducing the number of disk reads.

P.S. Is it possible to use a file lock on a file inside an archive? It would be a nice feature, but it can be done without.
 
Old 06-04-2007, 01:31 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Okay, I've changed my needs bit for this project and, I think, effectively answered my own question. Instead of a large quantity of small files, I'll really just need a smaller quantity of more average sized files. However, the ability to lock a file has gone from "would be nice" to a requirement. I think that rules out an archive, so I'm back to a file system. I'll probably be using ext2, unless reiserFS really blows me away.
 
Old 06-05-2007, 12:47 PM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
bonnie++ is supposed to be good for testing FS performance. Please post back what you choose & why, particularly any testing you do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file = posix tar archive JsCAMRY Linux - Hardware 1 01-26-2007 09:41 AM
split file archive hiptrop General 1 10-26-2005 12:28 AM
archive file UID's after untarring nmolinos Linux - Software 2 04-13-2005 12:00 AM
archive system logs? ANU Linux - General 3 12-01-2003 11:48 AM
how to create a archive .a file using g++? hari_linux Programming 0 03-07-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:06 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