Bug 29991 - write to the ext2fs is slow
Summary: write to the ext2fs is slow
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: e2fsprogs (Show other bugs)
(Show other bugs)
Version: 6.0
Hardware: i686 Linux
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2001-02-28 09:39 UTC by Vaibhav A Nalawade
Modified: 2005-10-31 22:00 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-02-28 09:43:19 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
tar file (10.00 KB, application/octet-stream)
2001-02-28 09:43 UTC, Vaibhav A Nalawade
no flags Details

Description Vaibhav A Nalawade 2001-02-28 09:39:33 UTC
Hi ,

    I have the product running on Linux 6.0 (egcs 2.91.66) . 

	In this product there is necessity to pre-allocate the file used for
storing. This
preallocation is achieved by putting 0 (zero's) in the file till the
desired size of the file . 
The file is then used to store structures(objects or records) . If I
pre-allocate the file the 
application which puts objects in the file becomes slow as compared to
wrting in a non
pre-allocated file. 

	I have attached a tar(compressed test file) that shows this degradation in
performance . 

	The tar file contains c program file create.c which when compiled and run
-i(preallocate) option takes more time than without -i option . I have put
time in the file so just
running runtest script .
	I have a work around that I have done in the testcase file recreate.c .
Instead of
filling the whole file with 0 (zero's) I jump to the desired size of the
file offset and put 0 (zero's).
This shows no degradation. But I was not able to find the reason behind

	Moreover even after this work around the test case takes twice the time it
takes on Solaris or Aix machines .  

Can I have the ext2fs tunning paramaters which will improve the

Thanks ,
Vaibhav Nalawade .

Comment 1 Vaibhav A Nalawade 2001-02-28 09:43:10 UTC
Created attachment 11322 [details]
tar file

Comment 2 Florian La Roche 2001-03-28 12:24:59 UTC
If you seek to a specific place, you create "holes" in the file that don't have
to be written, so
that should be faster than actually writing the file to disc. Seems to be all
fine for me.

Note You need to log in before you can comment on or make changes to this bug.