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

WIP: Per Job Start Delay #1164 #1224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ahribeng
Copy link

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
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
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!

.is_time = 1,
.category = FIO_OPT_C_GENERAL,
.group = FIO_OPT_G_RUNTIME,
},
Copy link
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...

@@ -2251,9 +2251,11 @@ static bool waitee_running(struct thread_data *me)
static void run_threads(struct sk_out *sk_out)
{
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
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.

if (td->o.per_job_start_delay > per_job_spent)
continue;
}

Copy link
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.

None yet

4 participants