Linux - GeneralThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
need to make a fileystem for a cache used by our backup system. This cache will simply be 2 files of 2GB each.
My question is about the mkfs.ext3 parameters. I am assuming I need
1 - small number of inodes
2 - large block size
3 - large number of bytes per inode
Im thinking something along the lines of:
mkfs.ext3 -n -b 4096 -T largefile4 /dev/sda10 -v - block size of 4096 (max for ext3?) and 1 inode per 4MB (max for ext3?)
mke2fs 1.32 (09-Nov-2002)
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1472 inodes, 1502069 blocks
75103 blocks (5.00%) reserved for the super user
First data block=0
46 block groups
32768 blocks per group, 32768 fragments per group
32 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Anybody have anything to say on this im not a filesystem expert? Also what to do about journaling? Can it be tuned to have as little overhead on the perfomance as possible?
The end result just needs to be the best performance possible writing (when backing up) and reading (when restoring) for the 2GB files. Journaling is not important as far as recovering data goes as they can just be re-created if there is a problem they do not contain any static data.
I'd use ext2 for that - it's a lot faster than ext3. Sorry, I'm no expert either - I think the default values for mkfs.ext2 would probably be fine.
Using the mount option "noatime" speeds reading time up quite a lot in my experience. With the default "atime", every time a file is read, the time is written to disk.
Some programs also put a lot of files in one directory. With some thousand files in a directory, it tends to slow down to a crawl. If that is the case, use ReiserFS instead, it doesn't slow down like ext2/3 does.