Flexible I/O Tester development
 help / color / mirror / Atom feed
* buffer_pattern usage question
@ 2014-08-22  1:01 Surendar Chandra
  2014-08-22 15:24 ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: Surendar Chandra @ 2014-08-22  1:01 UTC (permalink / raw)
  To: fio

Could you please help me with this setup

   filename=fio-data
   size=4k
   rw=write
   buffer_pattern="HELLO" 

The output still continues to be pseudo random. I even tried buffer_pattern=0xDEADBEEF and other params. 

Thanks much for your help

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: buffer_pattern usage question
  2014-08-22  1:01 buffer_pattern usage question Surendar Chandra
@ 2014-08-22 15:24 ` Jens Axboe
  2014-08-22 17:59   ` Ruvinsky, Konstantin
  2014-08-22 19:04   ` Jens Axboe
  0 siblings, 2 replies; 6+ messages in thread
From: Jens Axboe @ 2014-08-22 15:24 UTC (permalink / raw)
  To: Surendar Chandra, fio

On 2014-08-21 20:01, Surendar Chandra wrote:
> Could you please help me with this setup
>
>     filename=fio-data
>     size=4k
>     rw=write
>     buffer_pattern="HELLO"
>
> The output still continues to be pseudo random. I even tried buffer_pattern=0xDEADBEEF and other params.

It's not going to take a string, it needs to be a decimal of hexidecimal 
number. I added some code to error out if it fails parsing this now.

buffer_pattern=0xDEADBEEF should work, and does for me:

axboe@lenny:/home/axboe/git/fio $ hexdump fio-data
0000000 beef dead beef dead beef dead beef dead
*
0001000


-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: buffer_pattern usage question
  2014-08-22 15:24 ` Jens Axboe
@ 2014-08-22 17:59   ` Ruvinsky, Konstantin
  2014-08-22 18:41     ` Sitsofe Wheeler
  2014-08-22 19:04   ` Jens Axboe
  1 sibling, 1 reply; 6+ messages in thread
From: Ruvinsky, Konstantin @ 2014-08-22 17:59 UTC (permalink / raw)
  To: fio@vger.kernel.org

Hi,

Why the parameter buffer_pattern is absent in git HowTo?

KR

-----Original Message-----
From: fio-owner@vger.kernel.org [mailto:fio-owner@vger.kernel.org] On Behalf Of Jens Axboe
Sent: Friday, August 22, 2014 6:24 PM
To: Surendar Chandra; fio@vger.kernel.org
Subject: Re: buffer_pattern usage question

On 2014-08-21 20:01, Surendar Chandra wrote:
> Could you please help me with this setup
>
>     filename=fio-data
>     size=4k
>     rw=write
>     buffer_pattern="HELLO"
>
> The output still continues to be pseudo random. I even tried buffer_pattern=0xDEADBEEF and other params.

It's not going to take a string, it needs to be a decimal of hexidecimal number. I added some code to error out if it fails parsing this now.

buffer_pattern=0xDEADBEEF should work, and does for me:

axboe@lenny:/home/axboe/git/fio $ hexdump fio-data
0000000 beef dead beef dead beef dead beef dead
*
0001000


--
Jens Axboe

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: buffer_pattern usage question
  2014-08-22 17:59   ` Ruvinsky, Konstantin
@ 2014-08-22 18:41     ` Sitsofe Wheeler
  2014-08-22 18:58       ` Ruvinsky, Konstantin
  0 siblings, 1 reply; 6+ messages in thread
From: Sitsofe Wheeler @ 2014-08-22 18:41 UTC (permalink / raw)
  To: Ruvinsky, Konstantin; +Cc: fio@vger.kernel.org

Hi,

On 22 August 2014 18:59, Ruvinsky, Konstantin
<Konstantin.Ruvinsky@emc.com> wrote:
>
> Why the parameter buffer_pattern is absent in git HowTo?

Are you sure it's missing?

http://git.kernel.dk/?p=fio.git;a=blob;f=HOWTO;h=a0b89c8071d15b45aaef71222611625e38022178;hb=HEAD#l568

-- 
Sitsofe | http://sucs.org/~sits/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: buffer_pattern usage question
  2014-08-22 18:41     ` Sitsofe Wheeler
@ 2014-08-22 18:58       ` Ruvinsky, Konstantin
  0 siblings, 0 replies; 6+ messages in thread
From: Ruvinsky, Konstantin @ 2014-08-22 18:58 UTC (permalink / raw)
  To: Sitsofe Wheeler; +Cc: fio@vger.kernel.org

Sorry, I looked at the old link

http://git.kernel.dk/?p=fio.git;a=blob;f=HOWTO;h=005dac251dd202917fdb446ffec22d3126757f8c;hb=HEAD

Thank you!

-----Original Message-----
From: Sitsofe Wheeler [mailto:sitsofe@gmail.com] 
Sent: Friday, August 22, 2014 9:42 PM
To: Ruvinsky, Konstantin
Cc: fio@vger.kernel.org
Subject: Re: buffer_pattern usage question

Hi,

On 22 August 2014 18:59, Ruvinsky, Konstantin <Konstantin.Ruvinsky@emc.com> wrote:
>
> Why the parameter buffer_pattern is absent in git HowTo?

Are you sure it's missing?

http://git.kernel.dk/?p=fio.git;a=blob;f=HOWTO;h=a0b89c8071d15b45aaef71222611625e38022178;hb=HEAD#l568

--
Sitsofe | http://sucs.org/~sits/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: buffer_pattern usage question
  2014-08-22 15:24 ` Jens Axboe
  2014-08-22 17:59   ` Ruvinsky, Konstantin
@ 2014-08-22 19:04   ` Jens Axboe
  1 sibling, 0 replies; 6+ messages in thread
From: Jens Axboe @ 2014-08-22 19:04 UTC (permalink / raw)
  To: Surendar Chandra, fio

On 2014-08-22 10:24, Jens Axboe wrote:
> On 2014-08-21 20:01, Surendar Chandra wrote:
>> Could you please help me with this setup
>>
>>     filename=fio-data
>>     size=4k
>>     rw=write
>>     buffer_pattern="HELLO"
>>
>> The output still continues to be pseudo random. I even tried
>> buffer_pattern=0xDEADBEEF and other params.
>
> It's not going to take a string, it needs to be a decimal of hexidecimal
> number. I added some code to error out if it fails parsing this now.
>
> buffer_pattern=0xDEADBEEF should work, and does for me:
>
> axboe@lenny:/home/axboe/git/fio $ hexdump fio-data
> 0000000 beef dead beef dead beef dead beef dead
> *
> 0001000

I added the string support now as well, it was pretty trivial.


-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-08-22 19:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-22  1:01 buffer_pattern usage question Surendar Chandra
2014-08-22 15:24 ` Jens Axboe
2014-08-22 17:59   ` Ruvinsky, Konstantin
2014-08-22 18:41     ` Sitsofe Wheeler
2014-08-22 18:58       ` Ruvinsky, Konstantin
2014-08-22 19:04   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox