fio.git
10 years agoAdd IEEE 754 test case
Jens Axboe [Wed, 5 Oct 2011 08:25:54 +0000 (10:25 +0200)]
Add IEEE 754 test case

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoRe-enable -O2 optimization
Jens Axboe [Wed, 5 Oct 2011 08:14:19 +0000 (10:14 +0200)]
Re-enable -O2 optimization

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agot/stest: add log.o smaller helper
Jens Axboe [Wed, 5 Oct 2011 08:14:03 +0000 (10:14 +0200)]
t/stest: add log.o smaller helper

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoPrint usage if no arguments are given
Jens Axboe [Wed, 5 Oct 2011 07:56:53 +0000 (09:56 +0200)]
Print usage if no arguments are given

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoMerge branch 'master' into client-server
Jens Axboe [Wed, 5 Oct 2011 07:55:28 +0000 (09:55 +0200)]
Merge branch 'master' into client-server

Conflicts:
init.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoDon't overwrite -t timeout setting in fill_def_thread()
Jens Axboe [Wed, 5 Oct 2011 07:54:30 +0000 (09:54 +0200)]
Don't overwrite -t timeout setting in fill_def_thread()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoChange network transmitted doubles to fio_fp64_t IEEE 754 type
Jens Axboe [Wed, 5 Oct 2011 07:51:58 +0000 (09:51 +0200)]
Change network transmitted doubles to fio_fp64_t IEEE 754 type

Encode and decode when transferring over the network.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAdd IEEE 754 pack and unpack helpers
Jens Axboe [Wed, 5 Oct 2011 06:43:47 +0000 (08:43 +0200)]
Add IEEE 754 pack and unpack helpers

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoRemove endianness TODO, should be done now
Jens Axboe [Tue, 4 Oct 2011 22:38:04 +0000 (00:38 +0200)]
Remove endianness TODO, should be done now

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAIX fixes
Jens Axboe [Tue, 4 Oct 2011 22:16:11 +0000 (00:16 +0200)]
AIX fixes

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAssume AIX is big endian
Jens Axboe [Tue, 4 Oct 2011 21:54:28 +0000 (23:54 +0200)]
Assume AIX is big endian

Probably lots of PPC boxes on AIX out there than Intel...

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAdd fio_socklen_t
Jens Axboe [Tue, 4 Oct 2011 21:50:28 +0000 (23:50 +0200)]
Add fio_socklen_t

HPUX decides to be different yet again, add an OS typedef
to handle this instead of ifdefs in the code.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agolog: don't use vsyslog
Jens Axboe [Tue, 4 Oct 2011 21:46:22 +0000 (23:46 +0200)]
log: don't use vsyslog

AIX/HPUX don't have it at least, and since we use a crappy
fixed length buffer anyway, just use syslog().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: portability fixups
Jens Axboe [Tue, 4 Oct 2011 21:35:02 +0000 (23:35 +0200)]
server: portability fixups

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoFinalize (?) byte swap/endian stuff
Jens Axboe [Tue, 4 Oct 2011 21:31:00 +0000 (23:31 +0200)]
Finalize (?) byte swap/endian stuff

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: log locally if connection isn't up yet
Jens Axboe [Tue, 4 Oct 2011 15:32:16 +0000 (17:32 +0200)]
server: log locally if connection isn't up yet

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoGeneric endianness typo
Jens Axboe [Tue, 4 Oct 2011 14:02:51 +0000 (16:02 +0200)]
Generic endianness typo

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoUpdate TODO
Jens Axboe [Tue, 4 Oct 2011 13:11:44 +0000 (15:11 +0200)]
Update TODO

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: cast sockaddr_in for accept()
Jens Axboe [Tue, 4 Oct 2011 13:07:43 +0000 (15:07 +0200)]
server: cast sockaddr_in for accept()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: log where connection is coming from
Jens Axboe [Tue, 4 Oct 2011 13:06:42 +0000 (15:06 +0200)]
server: log where connection is coming from

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: fix sk typo and add endian type to probe
Jens Axboe [Tue, 4 Oct 2011 13:00:30 +0000 (15:00 +0200)]
server: fix sk typo and add endian type to probe

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoNeed signal.h for sigaction()
Jens Axboe [Tue, 4 Oct 2011 12:50:21 +0000 (14:50 +0200)]
Need signal.h for sigaction()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoMore endianness for platforms
Jens Axboe [Tue, 4 Oct 2011 12:45:20 +0000 (14:45 +0200)]
More endianness for platforms

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoWider endianness support
Jens Axboe [Tue, 4 Oct 2011 12:30:33 +0000 (14:30 +0200)]
Wider endianness support

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoHPUX endianness
Jens Axboe [Tue, 4 Oct 2011 11:56:06 +0000 (13:56 +0200)]
HPUX endianness

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agolog: needs stdarg include for va_list
Jens Axboe [Tue, 4 Oct 2011 11:54:12 +0000 (13:54 +0200)]
log: needs stdarg include for va_list

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoMove endianness check to OS parts
Jens Axboe [Tue, 4 Oct 2011 11:53:35 +0000 (13:53 +0200)]
Move endianness check to OS parts

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: more debug dumping
Jens Axboe [Tue, 4 Oct 2011 11:46:08 +0000 (13:46 +0200)]
server: more debug dumping

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoFix bad indexing of options
Jens Axboe [Tue, 4 Oct 2011 11:45:50 +0000 (13:45 +0200)]
Fix bad indexing of options

It's optind - 1, not optind.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: add a few more debug logging statements
Jens Axboe [Tue, 4 Oct 2011 11:30:11 +0000 (13:30 +0200)]
server: add a few more debug logging statements

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: improve handling of non-newline text strings
Jens Axboe [Tue, 4 Oct 2011 11:27:34 +0000 (13:27 +0200)]
client: improve handling of non-newline text strings

Only prepend hostname if this is a new line.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: improve exit handling
Jens Axboe [Tue, 4 Oct 2011 11:21:54 +0000 (13:21 +0200)]
server: improve exit handling

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: improve poll() loop
Jens Axboe [Tue, 4 Oct 2011 11:14:32 +0000 (13:14 +0200)]
client: improve poll() loop

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: send return quit when asked to leave
Jens Axboe [Tue, 4 Oct 2011 11:14:13 +0000 (13:14 +0200)]
server: send return quit when asked to leave

The return quit will exit the client

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: initial support for command line passing
Jens Axboe [Tue, 4 Oct 2011 10:42:06 +0000 (12:42 +0200)]
server: initial support for command line passing

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoStyle fixup
Jens Axboe [Tue, 4 Oct 2011 08:34:03 +0000 (10:34 +0200)]
Style fixup

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: fix for non zero appended strings
Jens Axboe [Tue, 4 Oct 2011 08:31:53 +0000 (10:31 +0200)]
server: fix for non zero appended strings

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoparser: use logging infrastructure
Jens Axboe [Tue, 4 Oct 2011 08:31:10 +0000 (10:31 +0200)]
parser: use logging infrastructure

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: idle loop support
Jens Axboe [Tue, 4 Oct 2011 07:18:30 +0000 (09:18 +0200)]
server: idle loop support

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: probe command support
Jens Axboe [Tue, 4 Oct 2011 07:00:40 +0000 (09:00 +0200)]
client: probe command support

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: error handling and probe command
Jens Axboe [Tue, 4 Oct 2011 06:57:39 +0000 (08:57 +0200)]
server: error handling and probe command

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: handle connection failure
Jens Axboe [Tue, 4 Oct 2011 06:31:40 +0000 (08:31 +0200)]
client: handle connection failure

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: silence mem debug warning
Jens Axboe [Mon, 3 Oct 2011 19:47:27 +0000 (21:47 +0200)]
server: silence mem debug warning

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: remove some debug statements
Jens Axboe [Mon, 3 Oct 2011 19:10:17 +0000 (21:10 +0200)]
server: remove some debug statements

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agopoll: break on EINTR without complaining
Jens Axboe [Mon, 3 Oct 2011 19:09:14 +0000 (21:09 +0200)]
poll: break on EINTR without complaining

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: fix typos in conversion
Jens Axboe [Mon, 3 Oct 2011 19:08:48 +0000 (21:08 +0200)]
server: fix typos in conversion

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: attempt to handle client ctrl-c
Jens Axboe [Mon, 3 Oct 2011 18:53:32 +0000 (20:53 +0200)]
server: attempt to handle client ctrl-c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: send network copy of run_str[]
Jens Axboe [Mon, 3 Oct 2011 17:44:41 +0000 (19:44 +0200)]
server: send network copy of run_str[]

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: add ETA as a specific command
Jens Axboe [Mon, 3 Oct 2011 14:48:30 +0000 (16:48 +0200)]
server: add ETA as a specific command

No more text passing for ETA.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAbstract out calculation of ETA from display of ETA
Jens Axboe [Mon, 3 Oct 2011 14:03:43 +0000 (16:03 +0200)]
Abstract out calculation of ETA from display of ETA

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAdd TODO list
Jens Axboe [Mon, 3 Oct 2011 13:25:49 +0000 (15:25 +0200)]
Add TODO list

Not complete

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: package defrag fix
Jens Axboe [Mon, 3 Oct 2011 13:03:08 +0000 (15:03 +0200)]
server: package defrag fix

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAdd type checking to 16/32/64 endianness converters
Jens Axboe [Mon, 3 Oct 2011 12:45:27 +0000 (14:45 +0200)]
Add type checking to 16/32/64 endianness converters

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: fixup quit
Jens Axboe [Mon, 3 Oct 2011 12:24:03 +0000 (14:24 +0200)]
client: fixup quit

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: transmit status as structures, not text
Jens Axboe [Mon, 3 Oct 2011 12:20:01 +0000 (14:20 +0200)]
server: transmit status as structures, not text

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAllocate thread_stat name arrays statically
Jens Axboe [Mon, 3 Oct 2011 10:21:25 +0000 (12:21 +0200)]
Allocate thread_stat name arrays statically

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoMove getrusage() out of thread_stat
Jens Axboe [Mon, 3 Oct 2011 10:14:19 +0000 (12:14 +0200)]
Move getrusage() out of thread_stat

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoMove stat_io_bytes/time to thread_data
Jens Axboe [Mon, 3 Oct 2011 10:12:03 +0000 (12:12 +0200)]
Move stat_io_bytes/time to thread_data

Anything that isn't needed to sum/show thread stats should not be
in struct thread_stat.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: unify shm setup
Jens Axboe [Mon, 3 Oct 2011 10:01:42 +0000 (12:01 +0200)]
server: unify shm setup

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: endianness bug and exit command
Jens Axboe [Mon, 3 Oct 2011 09:48:39 +0000 (11:48 +0200)]
server: endianness bug and exit command

- flags should be converted to network native format
- add separate EXIT command for server, regular job completion should
  not quit it

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: don't setup shared mem area for just the frontend
Jens Axboe [Mon, 3 Oct 2011 09:48:17 +0000 (11:48 +0200)]
client: don't setup shared mem area for just the frontend

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: start conversion of data structures to network friendly types
Jens Axboe [Mon, 3 Oct 2011 08:06:44 +0000 (10:06 +0200)]
server: start conversion of data structures to network friendly types

Not done yet, but do the basic conversion.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: initial support for daemonizing
Jens Axboe [Mon, 3 Oct 2011 07:11:02 +0000 (09:11 +0200)]
server: initial support for daemonizing

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: make struct group_run_stats network transfer friendly
Jens Axboe [Sun, 2 Oct 2011 07:06:14 +0000 (03:06 -0400)]
server: make struct group_run_stats network transfer friendly

Use explicitly sized types.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoStyle fixup
Jens Axboe [Sun, 2 Oct 2011 07:02:03 +0000 (03:02 -0400)]
Style fixup

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: malloc/free fix
Jens Axboe [Sat, 1 Oct 2011 20:26:42 +0000 (16:26 -0400)]
server: malloc/free fix

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoFixup some bad file naming
Jens Axboe [Sat, 1 Oct 2011 19:01:08 +0000 (15:01 -0400)]
Fixup some bad file naming

log.c does not match log.h. Rename the iolog stuff to iolog.c
and infolog.c to log.c (so it matches the include).

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver/client: add FD_NET debug clues
Jens Axboe [Sat, 1 Oct 2011 18:50:51 +0000 (12:50 -0600)]
server/client: add FD_NET debug clues

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAdd FD_NET debugging value
Jens Axboe [Sat, 1 Oct 2011 18:42:00 +0000 (12:42 -0600)]
Add FD_NET debugging value

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: re-setup poll fd array in case a client disappears
Jens Axboe [Sat, 1 Oct 2011 18:40:32 +0000 (12:40 -0600)]
client: re-setup poll fd array in case a client disappears

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: exit gracefully on ctrl-c
Jens Axboe [Sat, 1 Oct 2011 18:36:32 +0000 (12:36 -0600)]
server: exit gracefully on ctrl-c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: continue support for multiple connections
Jens Axboe [Sat, 1 Oct 2011 18:24:21 +0000 (12:24 -0600)]
client: continue support for multiple connections

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: initial support for multiple connections
Jens Axboe [Sat, 1 Oct 2011 17:11:35 +0000 (11:11 -0600)]
client: initial support for multiple connections

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: ensure payload larger than max is broken into pieces
Jens Axboe [Sat, 1 Oct 2011 14:48:50 +0000 (08:48 -0600)]
server: ensure payload larger than max is broken into pieces

For debug purposes, set the max payload size to 64 to catch any
further issues while developing this.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: quit client when job run is complete
Jens Axboe [Sat, 1 Oct 2011 14:31:30 +0000 (08:31 -0600)]
server: quit client when job run is complete

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoclient: fix error in logging output
Jens Axboe [Sat, 1 Oct 2011 06:08:39 +0000 (00:08 -0600)]
client: fix error in logging output

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: serial is a 64-bit field
Jens Axboe [Sat, 1 Oct 2011 04:58:13 +0000 (22:58 -0600)]
server: serial is a 64-bit field

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: switch to 16-bit crc
Jens Axboe [Sat, 1 Oct 2011 04:50:39 +0000 (22:50 -0600)]
server: switch to 16-bit crc

Good enough and we can kill the command padding

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoReinstate double logging if f_err != stderr
Jens Axboe [Sat, 1 Oct 2011 04:50:16 +0000 (22:50 -0600)]
Reinstate double logging if f_err != stderr

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agocrc16: use void * as the argument
Jens Axboe [Sat, 1 Oct 2011 04:49:30 +0000 (22:49 -0600)]
crc16: use void * as the argument

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoserver: debug fixes
Jens Axboe [Sat, 1 Oct 2011 04:29:08 +0000 (22:29 -0600)]
server: debug fixes

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoPass more arguments to fio_init_net_cmd()
Jens Axboe [Sat, 1 Oct 2011 04:24:17 +0000 (22:24 -0600)]
Pass more arguments to fio_init_net_cmd()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoUse length guarded sprintf functions
Jens Axboe [Sat, 1 Oct 2011 04:20:37 +0000 (22:20 -0600)]
Use length guarded sprintf functions

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoServer logging cleanup/functionality
Jens Axboe [Fri, 30 Sep 2011 23:35:45 +0000 (17:35 -0600)]
Server logging cleanup/functionality

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoStart of functional client
Jens Axboe [Fri, 30 Sep 2011 23:00:42 +0000 (17:00 -0600)]
Start of functional client

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAdd start of client, start of real protocol
Jens Axboe [Fri, 30 Sep 2011 21:01:32 +0000 (15:01 -0600)]
Add start of client, start of real protocol

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoProperly log errors in server
Jens Axboe [Fri, 30 Sep 2011 00:38:08 +0000 (18:38 -0600)]
Properly log errors in server

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoClose listen socket when done
Jens Axboe [Fri, 30 Sep 2011 00:28:46 +0000 (18:28 -0600)]
Close listen socket when done

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoUse poll() for connect loop
Jens Axboe [Fri, 30 Sep 2011 00:27:02 +0000 (18:27 -0600)]
Use poll() for connect loop

So we can exit nicely when asked to.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoHide things not appropriate behind is_backend
Jens Axboe [Fri, 30 Sep 2011 00:00:35 +0000 (18:00 -0600)]
Hide things not appropriate behind is_backend

Also add explicit command to exit the server, FIO_QUIT.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoStart of client/server
Jens Axboe [Thu, 29 Sep 2011 23:45:28 +0000 (17:45 -0600)]
Start of client/server

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoInclude http:// git url location
Jens Axboe [Thu, 29 Sep 2011 15:21:49 +0000 (09:21 -0600)]
Include http:// git url location

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoScramble corruption fix
Jens Axboe [Tue, 27 Sep 2011 20:27:48 +0000 (14:27 -0600)]
Scramble corruption fix

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoFix aiocb compile warnings on HPUX
Jens Axboe [Wed, 21 Sep 2011 07:38:01 +0000 (09:38 +0200)]
Fix aiocb compile warnings on HPUX

Unlike other platforms, it seems to require aiocb64 explicitly
for long offsets. Add an os independent typedef for this.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoSilence build warning on HPUX
Jens Axboe [Wed, 21 Sep 2011 07:27:24 +0000 (09:27 +0200)]
Silence build warning on HPUX

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoScramble fix
Jens Axboe [Mon, 19 Sep 2011 09:33:30 +0000 (11:33 +0200)]
Scramble fix

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoAdd option for controlling buffer scrambling
Jens Axboe [Mon, 19 Sep 2011 07:24:44 +0000 (09:24 +0200)]
Add option for controlling buffer scrambling

scramble_buffers bool option, defaults to on.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoScramble on a 512b boundary
Jens Axboe [Fri, 16 Sep 2011 20:45:27 +0000 (22:45 +0200)]
Scramble on a 512b boundary

Instead of just scrambling the full block at the beginning at the
end, make it a bit more clever by:

- Doing it at 512b intervals to ensure full 512b de-dupe attemts, and
- Do it at a "random" offset into that block.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoScramble default write buffer contents slightly
Jens Axboe [Fri, 16 Sep 2011 20:11:23 +0000 (22:11 +0200)]
Scramble default write buffer contents slightly

If we are worried about de-dupe making the output data too easy
to compress, but don't want the full incompressible guarantee
provided by refill_buffers=1 (since it's too costly), then lets
make their life a little harder by filling the offset of the IO
into the beginning of the buffer and the start time at the end
of the buffer. This will effectively default simple de-dupe
or compression attempts, while not doing the costly full buffer
refill.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 years agoFio 1.58 fio-1.58
Jens Axboe [Fri, 16 Sep 2011 06:44:10 +0000 (08:44 +0200)]
Fio 1.58

Signed-off-by: Jens Axboe <axboe@kernel.dk>