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
          41 kB
          Vladislavs Sokurenko
        2. pcre_8.0_with_study.png
          37 kB
          Vladislavs Sokurenko
        3. pcre_8.42_from_package_study_without_compile.png
          49 kB
          Vladislavs Sokurenko
        4. pcre.png
          41 kB
          Vladislavs Sokurenko
        5. posix_compile_each_time.png
          135 kB
          Vladislavs Sokurenko
        6. posix.png
          68 kB
          Vladislavs Sokurenko
        7. regexp_performance.png
          64 kB
          Vladislavs Sokurenko
        8. regexp_posix.png
          51 kB
          Vladislavs Sokurenko
        9. results.png
          176 kB
          Andris Zeila
        10. study_and_compile_each_execution.png
          48 kB
          Vladislavs Sokurenko
        11. with_pcre_study_and_jit_exec.png
          47 kB
          Vladislavs Sokurenko
        12. with_pcre_study.png
          50 kB
          Vladislavs Sokurenko
        13. without_pcre_study.png
          59 kB
          Vladislavs Sokurenko
        14. ZBX-15428-2.diff
          3 kB
          Vladislavs Sokurenko
        15. ZBX-15428-3.4.diff
          2 kB
          Vladislavs Sokurenko

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

              Created:
              Updated:
              Resolved: