Re: random read generates zero filled file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 03 2013, Jens Axboe wrote:
> On Fri, May 03 2013, Michel Jansens wrote:
> > Hi,
> > 
> > I'm trying out FIO, and rand a random read job with a 12GB file.  It
> > seems that the "Laying out IO file(s) " process generates a
> > zero-filled file. This means that when compression is activated (on
> > ZFS), no reads actually happens.
> > 
> > I tried adding a "buffer_compress_percentage=10" section to tell
> > generated data should compress from only "10%" but this seems to apply
> > only to actual benchmark job, not the 'laying out file's.
> > 
> > Am I missing something?
> 
> No, it currently just fills zeroes. It's trivial to make it honor the
> usual buffer fill logic, though. With the below patch, it'll do what fio
> otherwise would have done to IO buffers during the benchmark run.

Since the followups didn't make it here, the below exposed a bug in the
compression logic where it would loop infinitely if compress_chunk
wasn't set too.

So we got a new feature, and a fix for an older bug as well. Commit is
here:

http://git.kernel.dk/?p=fio.git;a=commit;h=cc86c395fd9dd2002ec1edc0967b7c9453debdfb

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux