lib/rand: Enhance __fill_random_buf using the multi random seed
authorSungup Moon <sungup.moon@samsung.com>
Mon, 8 Aug 2022 08:21:46 +0000 (17:21 +0900)
committerSungup Moon <sungup.moon@samsung.com>
Wed, 10 Aug 2022 14:34:12 +0000 (23:34 +0900)
commit7ff204c83595cd7d6b7b6a813d9fda97afd25198
treea4341317fa5b2dac4c05cf0e360b1c16bfa7b605
parentde31fe9ab3dd6115cd0d5c77354f67f06595570d
lib/rand: Enhance __fill_random_buf using the multi random seed

The __fill_random_buf fills a buffer using the random 8byte integer to
write. But, this mechanism is depend on the CPU performance and could
not reach the max performance on the PCIe Gen5 devices. I have tested
128KB single worker sequential write on PCIe Gen5 NVMe, but it cannot
reach write throughput 6.0GB/s.

So, I have reviewed the __fill_random_buf and focused the multiplier
dependency to generate the random number. So, I have changed
__fill_random_buf using the multiple-random-seed to reduce the
dependencies in the small data filling loop.

I'll attach detail analysis result in the PR of this branch.

Signed-off-by: Sungup Moon <sungup.moon@samsung.com>
configure
lib/rand.c