Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

How do I run BOLT on a benchmark of HHVM? #300

Open
ZahraHeydari95 opened this issue Jul 11, 2022 · 1 comment
Open

How do I run BOLT on a benchmark of HHVM? #300

ZahraHeydari95 opened this issue Jul 11, 2022 · 1 comment

Comments

@ZahraHeydari95
Copy link

Hello
I want to run a benchmark with HHVM.
On the other hand, I want to apply BOLT to it as well. But I don't know what to do.

hhvm perf.php --wordpress --hhvm=/path/to/hhvm

According to the BOLT instructions, I have to replace the execution binary in all three steps. But this binary (HHVM) has a series of inputs according to the above command.
As a result, the following questions arise for me:

  1. How to add -Wl, -q to hhvm binary?

  2. How to get a profile on the above command which is for running the benchmark?

  3. How do I use ./perf2bolt in the command though wordpress--? Because it considers --wordpress as its own input and gives an error?

  4. How do I still use ./llvm-bolt despite --wordpress? Because it still takes its own input and gives an error?

please guide me.

@CcWeapon
Copy link

q1: How to add -Wl, -q to hhvm binary?
You should have the source code and project of the hhvm, the compile option -Wl, or something that will be added to the build framework of the project. It is similar to Android.bp in AOSP or MakeFIle.
q2: How to get a profile on the above command which is for running the benchmark?
Use the compiled binary file to perform instrumentation and obtain the profile file.
For follow-up questions, you can refer to the official documents.

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

No branches or pull requests

2 participants