zipf: cap range calculation at 10M
authorJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2012 11:45:58 +0000 (12:45 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2012 11:45:58 +0000 (12:45 +0100)
commit4c9060e3bc8925718264c26a6fa54649c08fd729
treef74195c6481fb052e52c2b3266512fb1af5a877c
parent18ded917799ea71ff950360fab7eebebe3c2f406
zipf: cap range calculation at 10M

It's fast enough to get rid of the fio.zipf.* file caching,
yet precise enough that we need not care more about it.
Even on a slower machines, generating a sequence of 10M takes
1-2s tops.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/zipf.c