[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DISCUSSION] FILE* slowness
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [DISCUSSION] FILE* slowness |
Date: |
Sun, 17 Jul 2022 23:03:25 +0430 |
On Sun, Jul 17, 2022 at 06:20:03PM +0200, apache2 wrote:
> On Sun, Jul 17, 2022 at 02:10:04PM +0430, Mohammad-Reza Nabipoor wrote:
> > Can you put your ZFS file in the mem IOS and run the benchmark?
> >
>
> I don't know how to do that :-(
>
You can use `ios_copy_bytes` from `ios.pk` pickle. You need to use recent
commit on master.
```poke
fun ios_copy_bytes = (int<32> from_ios, int<32> to_ios,
offset<uint<64>,B> from,
offset<uint<64>,B> to,
offset<uint<64>,B> size) void
```
You can copy your 45 KiB file to a memory ios (you can create one either using
`.mem` dot-command or using `open (*a-unique-name*)` function), and then
run your benchmark against this new IOS.
Other option is to use `pk-bin2poke` script to create a literal Poke array
(if you install the poke, it'll be installed in `$PREFIX/usr` directory).
And then map it in a memory IOS using usual syntax (see
testsuite/poke.pickles/id3v1-test.pk as an example).
Third option is to send the file and benchmark to the mailing list.
Good luck,
Mohammad-Reza