contributed by < RZHuangJeff
>
linux2021
The environment is set up to reliable for running our experiment. The linux-headers
package is installed by running following command:
This package provides header files that defines linux kernal APIs.
And to minimize the influence from scheduler and other processes while running experiments, two of eight CPU cores on my computer is isolated by setting up boot argument isolcpus
, following are boot arguments of my system:
And the experiment programs will run on these isolated CPU cores.
Since my CPU is manufactured by Intel, to reduce statistical error, turbo mode of my CPU is baned by following command:
To measure the improvement of performace between various calculating methods, a simple timer proxy is introduced that the time token for last request to calculate the Fibonacci sequence is reserved and a userspace program could ask for it via making a write request.
Fibonacci sequence is a sequence of numbers that following recursive definition holds:
At the first sight, since it is a clear recursive definition, it can be converted to corresponding C program easily: