Closed cevich closed 11 years ago
Free to anyone who wants to write it :)
@cevich, please assign this task to me, @kyla wants to write it, thanks.
Hi @cevich, I have a question about the pass condition, why User cpu_time > System cpu_time? In my test with virsh command seems System cpu_time always larger than User cpu_time
On 01/29/2013 10:48 PM, kylazhang wrote:
Hi @cevich https://github.com/cevich, I have a question about the pass condition, why User cpu_time > System cpu_time? In my test with virsh command seems System cpu_time always larger than User cpu_time
— Reply to this email directly or view it on GitHub https://github.com/autotest/virt-test/issues/71#issuecomment-12872942.
It's probably lack of foresight on my part. Back when we were using Fedora as the default guest OS, this condition was always the case. Now with JeOS, and depending on how quickly after start the check happens, it could be false (as you point out). In light of that, I'd call it a bug, please feel free to remove it :)
Chris Evich, RHCA, RHCE, RHCDS, RHCSS Quality Assurance Engineer e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214
issue assigned to @kylazhang
Adding to tracking issue #64
Very nice test, well written, simple, easy to understand. There were a few EOF whitespace problems I had to fix, and I added a patch to make this test SKIP on RHEL5 (no cpu-stats command). I really like the parameter handling in the new virsh function. I also really appreciate the very clear description/summary of the test in the commit message and comments.
Applied to next as: 400fa33c434431d993e6564dfd5e6561fcf7ca37 871f929adcb5c982ae8e068f665aca7683982a02 commit cfb546ef4af66f7394aaf1f1797f11994fea0c5e 20d47f8e061bbc0cfe044274244392d5456a3331
Thanks!
There were a few EOF whitespace problems I had to fix, and I added a patch to make this test SKIP on RHEL5 (no cpu-stats command).
Thanks for your cautiousness, I will aware of them next time :)
No worries, it's not possible to catch everything. As long as it's 90-95%, I don't mind adding little extra bits.
stop
Pass Condition:
*Cgroup cpu_time is computed by reading domain specific cpuacct.usage_percpu Delay in reading the percpu file will lead up to cgropu cpu_time being slightly higher (in ns) than the displayed time.