Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Feb 17, 2015

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 10adc4a71b10e504d904bfc1db2d705342aa3851:

verify: Fix latency log for verify commands. (2015-02-09 08:18:03 -0700)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 495288a1e627c3d1b29897786b786eb6008841a3:

examples/ssd-test.fio: bump size to 10G (2015-02-16 15:04:11 -0700)

----------------------------------------------------------------
Castor Fu (1):
gettime.h: use time_t instead of size_t for copy of tv_sec

Jens Axboe (1):
examples/ssd-test.fio: bump size to 10G

Justin Eno (1):
Allow random overwrite workloads to write io_limit

 backend.c             |    8 +++++++-
 examples/ssd-test.fio |    2 +-
 gettime.h             |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

---

Diff of recent changes:

backend.c +7 -1
index 0f6e425..3430e66 100644
@@ -726,12 +726,18 @@ static uint64_t do_io(struct thread_data *td)
 
 	lat_target_init(td);
 
+	total_bytes = td->o.size;
+	/*
+	* Allow random overwrite workloads to write up to io_limit
+	* before starting verification phase as 'size' doesn't apply.
+	*/
+	if (td_write(td) && td_random(td) && td->o.norandommap)
+		total_bytes = max(total_bytes, (uint64_t) td->o.io_limit);
 	/*
 	 * If verify_backlog is enabled, we'll run the verify in this
 	 * handler as well. For that case, we may need up to twice the
 	 * amount of bytes.
 	 */
-	total_bytes = td->o.size;
 	if (td->o.verify != VERIFY_NONE &&
 	   (td_write(td) && td->o.verify_backlog))
 		total_bytes += td->o.size;
examples/ssd-test.fio +1 -1
index c84cf50..2b6a590 100644
@@ -14,7 +14,7 @@
 bs=4k
 ioengine=libaio
 iodepth=4
-size=1g
+size=10g
 direct=1
 runtime=60
 directory=/mount-point-of-ssd
gettime.h +1 -1
index eb3537b..86d55bd 100644
@@ -24,7 +24,7 @@ extern struct timeval *fio_tv;
 
 static inline int fio_gettime_offload(struct timeval *tv)
 {
-	size_t last_sec;
+	time_t last_sec;
 
 	if (!fio_tv)
 		return 0;