Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diskplorer fails on powerful instance and high max concurrency. #10

Open
pveentjer opened this issue Apr 26, 2021 · 0 comments
Open

Diskplorer fails on powerful instance and high max concurrency. #10

pveentjer opened this issue Apr 26, 2021 · 0 comments

Comments

@pveentjer
Copy link

pveentjer commented Apr 26, 2021

When -m setting is set to a high value like 1000 and running an ec2 instance like i3en.metal with a high number of cores, fio fails because a fio specification is generated with too many tasks. Fio can't deal with more than 4096 tasks.

When I change the 'growth' in the following code from 1.05 to 1.10, then the number of generated tasks is sufficiently reduced to let fio run with max concurrency of 2000.

def create_fio_spec(fname):
    with open(fname, 'w') as f:
        f.write(header.format(**globals()))
        depth = 1
        growth = 1.05
        while depth <= maxdepth:
            depth_remain = depth
            threads_remain = max_threads
            new_group = 'stonewall'
            # distribute load among max_threads
            while depth_remain:
                depth_now = int(depth_remain / threads_remain)
                if depth_now:
                    f.write(job_template.format(jobname=depth, depth=depth_now, new_group=new_group))
                    new_group = ''
                    depth_remain -= depth_now
                threads_remain -= 1
            depth = int(max(math.ceil(depth * growth), depth + 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant