Skip to content

WIP: Per Job Start Delay #1164#1224

Open
ahribeng wants to merge 1 commit intoaxboe:masterfrom
ahribeng:1164
Open

WIP: Per Job Start Delay #1164#1224
ahribeng wants to merge 1 commit intoaxboe:masterfrom
ahribeng:1164

Conversation

@ahribeng
Copy link
Copy Markdown

Working on #1164 to try to get some experience pushing to FIO repo. From testing it looks like this would work, but unsure if it is exactly what is desired or the ideal way of implementing

@ErwanAliasr1
Copy link
Copy Markdown
Contributor

Just my feedback here, the commit message should be precise enough to explain what you want to achieve with an example. Reading code without a clear description of the goal to achieve is kind of difficult

Copy link
Copy Markdown
Collaborator

@sitsofe sitsofe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

House style for commit messages is:

area: brief description

Longer description here

Signed-off-by: Name <address@example.com>
  • Use old-style C comment markers (/* */)
  • Update the documentation

@ahribeng nice to see someone making an attempt at implementing this one!

Comment thread options.c
.is_time = 1,
.category = FIO_OPT_C_GENERAL,
.group = FIO_OPT_G_RUNTIME,
},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I can specify a per job start delay and a job delay versus the start of all jobs? I feel this would be better as a boolean unless there's a reason why you would specify both together...

Comment thread backend.c
struct thread_data *td;
unsigned int i, todo, nr_running, nr_started;
struct timespec last_finish_time;
unsigned int i, todo, nr_running, nr_started, prev_nr_running;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have kept the unsigned above the struct line to make the diff smaller/more obvious.

Comment thread backend.c
if (td->o.per_job_start_delay > per_job_spent)
continue;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we only arrive here if we're not waiting for someone else to finish? If so why check for stonewall - surely we can always do the per job delay? I'm curious if we need the last_finish_time... What are your thoughts?

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

Successfully merging this pull request may close these issues.

4 participants