Forum Discussion

netadmindetail_'s avatar
netadmindetail_
Icon for Nimbostratus rankNimbostratus
Feb 18, 2013

iRule latency stats

Hi All

 

We have an iRule that looks into 2 data-groups to find different matches and deny or not http request based on that matches. One of the data-group could have about 500 entries.

 

The iRule work perfectly but we want to see how much load this iRule is causing on our LTM 1600. (Execution latency, CPU, MEMORY, and so on)

 

We modify the iRule to add sometings like this:

 

1st line of the iRule :

 

- set tempsirule0 [clock clicks -milliseconds]

 

Last lines of the iRule :

 

- set tempsirule1 [clock clicks -milliseconds]

 

- set delayirule [expr $tempsirule1 - $tempsirule0]

 

- STATS::setmax $::NOM_PROFILE "URL_Filtering_iRules_Delay(mm)" $delayirule

 

Is there a good way to look at the iRule execution latency ?

 

What about CPU utilization and memory? We want to make sure that everything work well when we'll have thousand of concurrent connections.

 

Thank you very much.

 

  • The CPU cycles per execution can be recorded by making the first line of the rule

     timing on 

    and using the command

     show ltm rule  

    More detail can be found in SOL6228: http://support.f5.com/kb/en-us/solutions/public/6000/200/sol6228.html

    Instead of using the first-line/last-line when you try to calculate latency, you should use the first line of the first event (CLIENT_ACCEPTED, for example) and the last line of the last event (CLIENT_DATA or HTTP_REQUEST_RELEASE, for example), since the rule isn't going to necessarily execute top to bottom on every connection. Also, recording the timestamps and doing the math will certainly add to the traversal time of the packet.

  • Shun_Takahashi1's avatar
    Shun_Takahashi1
    Historic F5 Account
    iRule Editor has a nice GUI to show you all the available stat for the particular iRule execution such that CPU clock cycle, latency so on. It's really cool stuff.
  • Shun_Takahashi1's avatar
    Shun_Takahashi1
    Historic F5 Account
    iRule Editor has a nice GUI to show you all the available stat for the particular iRule execution such that CPU clock cycle, latency so on. It's really cool stuff.
  • I found out some interesting stats in the Analytics module.

     

    Is there limitation about the number of analytics profile I can call with VSs ? (like 50 VS calling 1 analytics profile) Can this slow down the units ?

     

    Thanks