Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
I am using FAT32 formated pen drive/HDD on Linux 2.4.
Now I need to store more than 32GB data.
So I decided to use ext2 formated HDD.
But write time on ext2 is much larger than FAT32.
HOW CAN I IMPROVE WRITING THROUGHPUT OF EXT2 FS
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Write time to a drive depends on a lot of factors, not just the file system type. Ext2 is not slow by its nature.
You did not state the type of drive, sata, ide etc. Is it internal or an external drive? If it is external, what type of connection do you have?
It is possible to 'tune' HDD performance on some drive types. There is a utility called hdparm. Be cautious, do some reading before you use it. It can be dangerous, and can cause loss of data. There are tutorials on the web on how to use it. I have used it on IDE drives, but be careful. Back up all data before you decide to use it. If you do the wrong thing, you can loose all your data.
thanks for quick reply. here are the datails you require
* ped drive : external , normal data traveller. 2GB.
* No other transaction on USB bus.
* Time for 1MB data in chuncks of 64KB
FAT32 = 1.9 sec.
EXT2 = 6.6 sec.
Above observations shows ext2 write many other things along with actual data.
I also understand that
* in ext2 fs the complete space is divided in "n Groups".
* each Group has : super block , group descriptor,blk bitmap etc.
* Now the fs must update these super block + group decriptor after every Group (4096 KB max)is filled up .
Is this the reason for delay.
In case of FAT32
I can see only one write after actual data write.
All logs seen on CATC.
Can I some how tell the file system to update superblock etc at the end.
"noatime" during mount did not serve the purpose.
I am using Linux 2.4.18.
I also understand the "Block size" with which i format my pen drive in ext2 also matters.By default it is 4096 Bytes.And some thing related to
"block bit map" and "Inode bit map" come into picture.
I need to write 1MB data in less than or equal to 2 sec.