On Mon, Mar 10, 2014 at 2:18 PM, Neto, Antonio Jose Rodrigues <Antonio.Jose.Rodrigues.Neto@xxxxxxxxxx> wrote: > Hi All, > > This is neto from Brazil > > How are you? > > I need to know how to control the % of compression and deduplication using > fio? > > My idea is to generate some workload based on: > > Workload Random > 0% compressible and 0% dedupable > > Workload Mixed > 20% compressible and 20% dedupable > > Workload Easier > 100% compressible and 100% dedupable > > Could you please help me? > > Thank you very much, > > All the best > > neto > > -- > 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 Hi Neto, Have you tried using buffer_compress_percentage? Setting this to 100 would get you 100% compressible data while 0 would be 0% compressible. Note that if you use fio prior to version 2.1.6 in git, you will also want to set scramble_buffers=0 to get the desired compression. I don't know how you would control how dedupable the data is, since to my knowledge there is no way to specify how repeatable the data pattern is. But I think fully incompressible data is naturally not dedupable, while the opposite is true for fully compressible data. -- 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