Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15428

PCRE regexp seems use much more CPU resources than POSIX

XMLWordPrintable

    • Sprint 48, Jan 2019
    • 2

      Looks like PCRE regexps use much more CPU resources than regexp in previous zabbix versions!

      We use regexps like

      "some|one|other|another"

      in trigger and its a trouble.
      When we change the trigger expression to evaluate value 4 times by str() function, it helped, but it's a workaround and still cannot be used for all cases.

      This should be investigated and addressed.

       

      There is also suggestion to move to pcre2  in ZBXNEXT-4922, it potentially might help.

        1. 8.42_with_study_but_jit_not_available.png
          8.42_with_study_but_jit_not_available.png
          41 kB
        2. pcre_8.0_with_study.png
          pcre_8.0_with_study.png
          37 kB
        3. pcre_8.42_from_package_study_without_compile.png
          pcre_8.42_from_package_study_without_compile.png
          49 kB
        4. pcre.png
          pcre.png
          41 kB
        5. posix_compile_each_time.png
          posix_compile_each_time.png
          135 kB
        6. posix.png
          posix.png
          68 kB
        7. regexp_performance.png
          regexp_performance.png
          64 kB
        8. regexp_posix.png
          regexp_posix.png
          51 kB
        9. results.png
          results.png
          176 kB
        10. study_and_compile_each_execution.png
          study_and_compile_each_execution.png
          48 kB
        11. with_pcre_study_and_jit_exec.png
          with_pcre_study_and_jit_exec.png
          47 kB
        12. with_pcre_study.png
          with_pcre_study.png
          50 kB
        13. without_pcre_study.png
          without_pcre_study.png
          59 kB
        14. ZBX-15428-2.diff
          3 kB
        15. ZBX-15428-3.4.diff
          2 kB

            vso Vladislavs Sokurenko
            zalex_ua Oleksii Zagorskyi
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: