Messages in this thread | | | From | "Connor O'Brien" <> | Date | Mon, 14 Nov 2022 12:44:21 -0800 | Subject | Re: [RFC PATCH 10/11] torture: support randomized shuffling for proxy exec testing |
| |
> Instead of doing it this way, maybe another approach is to randomize the > sleep interval in: > > */ > static int torture_shuffle(void *arg) > { > VERBOSE_TOROUT_STRING("torture_shuffle task started"); > do { > schedule_timeout_interruptible(shuffle_interval); > torture_shuffle_tasks(); > ... > } while (...) > ... > } > > Right now with this patch you still wakeup the shuffle thread when skipping > the affinity set operation. > > thanks, > > - Joel >
Wouldn't the affinities of all the tasks still change in lockstep then? The intent with this patch is to get into situations where the tasks have different affinity masks, which I think requires changing the behavior of torture_shuffle_tasks() rather than how often it's called.
| |