]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
reduce the number of processes forked
authorDave Chinner <david@fromorbit.com>
Wed, 25 Mar 2009 19:53:36 +0000 (20:53 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Wed, 25 Mar 2009 19:53:36 +0000 (20:53 +0100)
commite714acc0ef37031b9a5a522703f2832f139c22e0
treea093c9ed8b320d84b446a173ff339aba23bbaccd
parentd3592f9b21e5cacde692240e2a345dcb45aa34d9
reduce the number of processes forked

One of the big cpu time consumers when running xfsqa on UML
is forking of new processes. when looping lots of times,
using 'expr' to calculate the loop counter increment means
we fork at least once every loop. using shell builtins means
that we don't fork and many tests run substantially faster.

Some tests are even runnable with this modification. e.g. 110
went from taking 4500s to run down to 9s with the loop iterators
changed to avoid forking.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
30 files changed:
007
028
031
047
053
064
065
068
071
089
109
110
111
113
114
117
119
136
137
138
139
140
149
165
179
180
182
common.attr
common.dump
common.rc