• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Testcase 05
2-----------
3
4It's been found that sometimes onlining and offlining CPUs confuse some
5of the various system tools.  We found that sar wouldn't register the change
6in newly available cpus that weren't there when it started. This
7test case seeks to exercise this known error cases and verify that
8they behave correctly now.
9
10Algorithm - Sar
11===============
12Given a CPU to test that exists
13
14Make sure the specified cpu is offline
15
16Loop until done:
17  Start up sar writing to a temp log and give it a little time to run
18
19  Verify that SAR has correctly displayed all fields of CPU statistics
20  as '0.00' for the offlined CPU or just not displayed it in its tmp log
21
22  Online the specified cpu
23
24  Take another timestamp and another count of offlined CPUs
25
26  Verify SAR registered the change in CPU online/offline states
27
28When exiting:
29  Kill the sar process
30