summaryrefslogtreecommitdiffstats
path: root/spec/rtems/task/req/perf-set-scheduler-preempt.yml
blob: 6bf0436c0a49038e2c5f967a7ae140351cbe9572 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: RTEMS_SMP
limits:
  sparc/gr712rc/smp/qual-only/aQM5D84izENqUHf5JXZtqffaL5bD4qBjf9HOSNfAMBY=:
    DirtyCache:
      max-upper-bound: 0.00016195199999999998
      median-lower-bound: 0.0001072
      median-upper-bound: 0.00016079999999999998
      min-lower-bound: 0.0001072
    FullCache:
      max-upper-bound: 9.36e-05
      median-lower-bound: 4.2368e-05
      median-upper-bound: 6.3552e-05
      min-lower-bound: 4.16e-05
    HotCache:
      max-upper-bound: 5.635199999999999e-05
      median-lower-bound: 3.68e-05
      median-upper-bound: 5.52e-05
      min-lower-bound: 3.68e-05
    Load/1:
      max-upper-bound: 0.00015955199999999998
      median-lower-bound: 0.0001056
      median-upper-bound: 0.0001584
      min-lower-bound: 0.0001056
    Load/2:
      max-upper-bound: 0.00016079999999999998
      median-lower-bound: 0.0001056
      median-upper-bound: 0.0001584
      min-lower-bound: 0.0001056
  sparc/gr740/smp/qual-only/3Y1G8SMm2FRTpZB5_0NhbpDnatbEYmbDLLW58d-wXuY=:
    DirtyCache:
      max-upper-bound: 6.1152e-05
      median-lower-bound: 4.0768e-05
      median-upper-bound: 6.1152e-05
      min-lower-bound: 4.0768e-05
    FullCache:
      max-upper-bound: 6.0119999999999994e-05
      median-lower-bound: 4.008e-05
      median-upper-bound: 6.0119999999999994e-05
      min-lower-bound: 3.9824000000000004e-05
    HotCache:
      max-upper-bound: 6.0048e-05
      median-lower-bound: 4.0032000000000006e-05
      median-upper-bound: 6.0048e-05
      min-lower-bound: 3.996800000000001e-05
    Load/1:
      max-upper-bound: 6.6072e-05
      median-lower-bound: 4.4048e-05
      median-upper-bound: 6.6072e-05
      min-lower-bound: 4.3984000000000004e-05
    Load/2:
      max-upper-bound: 6.6072e-05
      median-lower-bound: 4.4048e-05
      median-upper-bound: 6.6072e-05
      min-lower-bound: 4.3984000000000004e-05
    Load/3:
      max-upper-bound: 6.6072e-05
      median-lower-bound: 4.4048e-05
      median-upper-bound: 6.6072e-05
      min-lower-bound: 4.3984000000000004e-05
    Load/4:
      max-upper-bound: 6.6072e-05
      median-lower-bound: 4.4048e-05
      median-upper-bound: 6.6072e-05
      min-lower-bound: 4.3984000000000004e-05
  sparc/gr740/smp/qual-only/qpmWME3Tk2kfoQL1kmgyerzkvLKkrfPY7xWIWGfY0Fg=:
    DirtyCache:
      max-upper-bound: 6.0072e-05
      median-lower-bound: 3.74688e-05
      median-upper-bound: 5.620319999999999e-05
      min-lower-bound: 3.72928e-05
    FullCache:
      max-upper-bound: 3.19296e-05
      median-lower-bound: 1.68192e-05
      median-upper-bound: 2.52288e-05
      min-lower-bound: 1.6752e-05
    HotCache:
      max-upper-bound: 1.23312e-05
      median-lower-bound: 8.2112e-06
      median-upper-bound: 1.23168e-05
      min-lower-bound: 8.208e-06
    Load/1:
      max-upper-bound: 7.648799999999999e-05
      median-lower-bound: 3.6755200000000003e-05
      median-upper-bound: 5.5132799999999995e-05
      min-lower-bound: 3.66336e-05
    Load/2:
      max-upper-bound: 7.30416e-05
      median-lower-bound: 3.69472e-05
      median-upper-bound: 5.5420799999999996e-05
      min-lower-bound: 3.65504e-05
    Load/3:
      max-upper-bound: 0.00034555199999999995
      median-lower-bound: 0.0001987136
      median-upper-bound: 0.00029807039999999997
      min-lower-bound: 0.0001984928
    Load/4:
      max-upper-bound: 0.0005223648
      median-lower-bound: 0.0003007328
      median-upper-bound: 0.0004510992
      min-lower-bound: 0.0002964096
links:
- role: requirement-refinement
  uid: perf-runtime
- role: runtime-measurement-request
  uid: ../val/perf
non-functional-type: performance-runtime
params: {}
rationale: null
references: []
requirement-type: non-functional
test-body:
  brief: |
    Move the worker to scheduler A.
  code: |
    ctx->begin = T_tick();
    ctx->status = rtems_task_set_scheduler(
      ctx->worker_id,
      SCHEDULER_A_ID,
      PRIO_HIGH
    );
  description: null
test-cleanup:
  brief: |
    Delete the worker tasks.
  code: |
    ResumeTask( ctx->worker_2_id );
    DeleteTask( ctx->worker_2_id );
    DeleteTask( ctx->worker_id );
  description: null
test-prepare:
  brief: |
    Create and start two worker tasks for scheduler B.  Make the second worker
    busy.
  code: |
    ctx->worker_id = CreateTask( "WORK", PRIO_NORMAL );
    SetScheduler( ctx->worker_id, SCHEDULER_B_ID, PRIO_NORMAL );
    StartTask( ctx->worker_id, Worker, ctx );
    Send( ctx, EVENT_SET_END );
    WaitForNextTask( 1, ctx->worker_id );

    ctx->worker_2_id = CreateTask( "WRK2", PRIO_NORMAL );
    SetScheduler( ctx->worker_2_id, SCHEDULER_B_ID, PRIO_HIGH );
    StartTask( ctx->worker_2_id, Worker, ctx );
    SendEvents( ctx->worker_2_id, EVENT_BUSY );
    SuspendTask( ctx->worker_2_id );
  description: null
test-setup:
  brief: |
    Move the worker to scheduler B.  Make the worker ready to set the end time.
  code: |
    ResumeTask( ctx->worker_2_id );
    SetScheduler( ctx->worker_id, SCHEDULER_B_ID, PRIO_NORMAL );
    Send( ctx, EVENT_SET_END );
  description: null
test-teardown:
  brief: |
    Set the measured runtime.  Discard samples interrupted by a clock tick.
  code: |
    T_quiet_rsc_success( ctx->status );

    *delta = ctx->end - ctx->begin;
    SuspendTask( ctx->worker_2_id );

    return tic == toc;
  description: null
text: |
  Let U and V be two tasks with the distinct home schedulers.  Let
  :math:`B` be a time point measured by U right before a call to
  ${../if/set-scheduler:/name} which moves task V to the home scheduler of
  U which preempts the caller.  Let :math:`E` be a time point measured by
  V right after the first context switch after :math:`B`.

  While the execution environment is ${.:/environment}, while the measurement
  sample is :math:`E - B`, when exactly ${../val/perf:/params/sample-count}
  samples are collected, the ${.:/limit-kind} shall be ${.:/limit-condition}.
type: requirement