|
From: <asf...@us...> - 2011-08-21 04:11:47
|
Revision: 53408
http://firebird.svn.sourceforge.net/firebird/?rev=53408&view=rev
Author: asfernandes
Date: 2011-08-21 04:11:41 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
Make Linux build faster.
It seems the usage of databases with FW=ON in ext4 filesystems mounted with barriers=1 (default) is very slow.
This change decreased build time in my machine from 2m41s to 1m21s.
Modified Paths:
--------------
firebird/trunk/builds/posix/Makefile.in
firebird/trunk/builds/posix/Makefile.in.examples
firebird/trunk/examples/empbuild/empbuild.e
Modified: firebird/trunk/builds/posix/Makefile.in
===================================================================
--- firebird/trunk/builds/posix/Makefile.in 2011-08-21 03:20:28 UTC (rev 53407)
+++ firebird/trunk/builds/posix/Makefile.in 2011-08-21 04:11:41 UTC (rev 53408)
@@ -239,13 +239,16 @@
-$(RM) $@
-$(RM) $(SECURITY_TMP)
echo create database \'$(SECURITY_TMP)\'\; | $(ISQL)
+ gfix -write async $(SECURITY_TMP)
$(ISQL) -i $^ $(SECURITY_TMP)
$(CHMOD) a=rw $(SECURITY_TMP)
$(CP) $(SECURITY_TMP) $@
+ gfix -write sync $@
msg.timestamp: $(MSG_FILES)
-$(RM) msg.fdb
echo create database \'msg.fdb\'\; | $(ISQL)
+ gfix -write async msg.fdb
for sql in $(MSG_FILES); do (echo $$sql; $(ISQL) -i $$sql msg.fdb) || exit; done
$(TOUCH) $@
Modified: firebird/trunk/builds/posix/Makefile.in.examples
===================================================================
--- firebird/trunk/builds/posix/Makefile.in.examples 2011-08-21 03:20:28 UTC (rev 53407)
+++ firebird/trunk/builds/posix/Makefile.in.examples 2011-08-21 04:11:41 UTC (rev 53408)
@@ -120,6 +120,7 @@
$(EMPLOYEE_DB): $(EXAMPLES_DEST)/empbuild$(EXEC_EXT) $(INPUT_Sources) $(EXAMPLES_DEST)/isql$(EXEC_EXT)
-$(RM) $(EMPLOYEE_DB)
./empbuild $(EMPLOYEE_DB)
+ gfix -write sync $(EMPLOYEE_DB)
-$(CHMOD_6) $(EMPLOYEE_DB)
# To get past the fact isql is called from the programs, we create a local link in this directory
Modified: firebird/trunk/examples/empbuild/empbuild.e
===================================================================
--- firebird/trunk/examples/empbuild/empbuild.e 2011-08-21 03:20:28 UTC (rev 53407)
+++ firebird/trunk/examples/empbuild/empbuild.e 2011-08-21 04:11:41 UTC (rev 53408)
@@ -93,6 +93,14 @@
exit (FINI_ERROR);
}
+printf ("Turning forced writes off\n");
+sprintf (cmd, "gfix -write async %s", Db_name);
+if (system (cmd))
+ {
+ printf ("Couldn't turn forced writed off\n");
+ exit (FINI_ERROR);
+ }
+
printf ("Creating tables\n");
sprintf (cmd, "isql %s -q -i empddl.sql", Db_name);
if (system (cmd))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|