diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-23 11:04:53 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-23 14:14:07 -0500 |
commit | 25277451a1ddfe9dde5534083d24301b412eac5f (patch) | |
tree | a1b9e5c7aefe2ab1a494101e472a12d096f0ec8a /schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_case3.scen | |
parent | schedsim_smppriority_affinity: Fix typo in name. (diff) | |
download | rtems-schedsim-25277451a1ddfe9dde5534083d24301b412eac5f.tar.bz2 |
schedsim_smppriority_affinity: Add a worst case migration scenario.
Diffstat (limited to '')
-rw-r--r-- | schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_case3.scen | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_case3.scen b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_case3.scen new file mode 100644 index 0000000..9056704 --- /dev/null +++ b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_case3.scen @@ -0,0 +1,47 @@ +# +# Worst case migration triggered by a set prioriity with +# thread affinity. +# +rtems_init 4 +task_create smp1 7 +task_create smp2 8 +task_create smp3 5 +task_create smp4 6 +task_create smp5 9 + +# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings +# GOAL: on CPUs 3-0 respectively +cpus smp4 smp3 smp2 smp1 + +# Tasks are created and distributed across CPUs +task_set_affinity smp5 0x02 +# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings +# GOAL: on CPUs 3-0 respectively +# PRI: 6 5 8 7 +cpus smp4 smp3 smp2 smp1 + +task_set_affinity smp3 0x03 +# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings +# GOAL: on CPUs 3-0 respectively +# PRI: 6 5 8 7 +cpus smp4 smp3 smp2 smp1 + +task_set_affinity smp4 0x09 +# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings +# GOAL: on CPUs 3-0 respectively +# PRI: 6 5 8 7 +cpus smp4 smp3 smp2 smp1 + +task_set_affinity smp1 0x0c +# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings +# GOAL: on CPUs 3-0 respectively +# PRI: 6 5 8 7 +cpus smp4 smp3 smp2 smp1 + +task_priority smp5 4 + +# GOAL: want 0x0a010005, 0x0a010003, 0x0a010004, 0x0a010001 +# GOAL: to be heir AND executing on CPU 0-3 respectively +# PRI: 5 5 6 7 +cpus smp3 smp5 smp1 smp4 + |