Forum Discussion
after timingon,what is the meaning of cycle parameter
b rule SRWD29-Main-rb1115test1 show all
RULE SRWD29-Main-rb1115test1
+-> HTTP_REQUEST 31 total 0 fail 0 abort | | Cycles (min, avg, max) = (0, 419112, 589236)
+-> HTTP_RESPONSE 99 total 2 fail 0 abort | | Cycles (min, avg, max) = (0, 0, 0)
+-> LB_SELECTED 133 total 0 fail 0 abort | Cycles (min, avg, max) = (0, 0, 0)
b rule SRWD29-Main-rb1115test2
show all RULE SRWD29-Main-rb1115test2
+-> HTTP_REQUEST 3 total 0 fail 0 abort | | Cycles (min, avg, max) = (0, 688780, 688780)
+-> HTTP_RESPONSE 508 total 0 fail 0 abort | Cycles (min, avg, max) = (0, 0, 0)
what is the meaning of cycles here?
Is 419112 has a big difference when compared with 688780
After printing the cycle.I don't how to evaluate the parameter of the output
thanks for everyone who want to do me a favor here
7 Replies
- Michael_Yates
Nimbostratus
Those are CPU Cycles. It's a measurement that you can use to calculate how much time the CPU spends performing an action.
There is an older discussion thread about it here: http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/23451/showtab/groupforums/Default.aspx
Or the article about iRule Optimization here: http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=123 - hoolio
Cirrostratus
I'd try doing a large number of requests to get a more accurate view of the CPU load. 100's of requests should be good.
Aaron - Robert_47833
Altostratus
Hi,thanks for your help
if I have 4 cores and want to know the Percent CPU Usage/Request
+-> cpus
| | | Type: base board Model: Dual-Core AMD Opteron(tm) Processor 2218
| | | cache size: 1024 KB
| | | cores: 4 (cores/cpu:2)
| | | cpu MHz: 2606.155
so total MHZ of CPU is 4*2606,right? - Michael_Yates
Nimbostratus
If you look here:
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/123/iRules-Optimization-101--05--Evaluating-iRule-Performance.aspx
Under the Viewing Statistics area is a very good description how to calculate this for your device and more to help you through the process. - Kevin_Davies_40
Nacreous
You will also find the iRule Editor can do this for you very simply. After turning timing on for you irule by modifying the header...
Get the platform CPU speed using the command below as this does not appear to be available in the GUI.while EVENT timing on { ... your iRule ... }config b platform | grep MHz ... cpu Mhz:2992.540Now back in the iRule editor, right click on the iRule, select properties then choose the Statistics tab. Enter the cpu value from the command above. Send a few initial requests through to make it compile the first time as the initial compilation uses far more CPU than normal processing. Now reset the stats from that window and refresh to make sure they are all zero again. Remember to do this "initial compile/stats reset" again when you save an updated version of your iRule.
Now send through about 100 requests. Then hit refresh and view your results.
Jarvil
- Robert_47833
Altostratus
Hi,if my platform is a 4 cores platform ,should I 2992.540*4 to fill the cpu value? - hoolio
Cirrostratus
That's correct.
Aaron
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
