Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance in interpreter mode #2468

Open
jsjzgy opened this issue Jan 31, 2024 · 2 comments
Open

Performance in interpreter mode #2468

jsjzgy opened this issue Jan 31, 2024 · 2 comments
Labels

Comments

@jsjzgy
Copy link

jsjzgy commented Jan 31, 2024

image
When using souffle to execute large test cases, the performance in interpreter mode is very low. I would like to ask if you have any good suggestions to optimiz
test.tar.gz

@quentin
Copy link
Member

quentin commented Jan 31, 2024

Hi,

  • What version of Souffle are you using?
  • How does runtime compares with compiled mode?
  • Does multithreading helps (-j N) ?
  • You may want to select a different SIPS heuristic, for instance .pragma "RamSIPS" "delta-max-bound". See
    else if (heuristic == "delta-max-bound")

Then it really depends on your program.
If some rules are specifically slow, looking at the RAM intermediate representation (--show transformed-ram) may help spot an issue. Then crafting dedicated .plan may help if the scheduling of the rule is not optimal.

@jsjzgy
Copy link
Author

jsjzgy commented Feb 1, 2024

Hi,

  • What version of Souffle are you using?
  • How does runtime compares with compiled mode?
  • Does multithreading helps (-j N) ?
  • You may want to select a different SIPS heuristic, for instance .pragma "RamSIPS" "delta-max-bound". See
    else if (heuristic == "delta-max-bound")

Then it really depends on your program. If some rules are specifically slow, looking at the RAM intermediate representation (--show transformed-ram) may help spot an issue. Then crafting dedicated .plan may help if the scheduling of the rule is not optimal.
. The Souffle version used is 2.4.1
. Using '-PSIPS:delta-max-bound', the results do not result in a significant improvement in performance
. The attachment is with 'time ./src/souffle -F.. /.. /tests/database/java-sec-code -D ./result .. /.. /tests/rules/2.dl -j20 --wno all --no-warn --show transformed-ram' command

ram.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants