Skip to content

Commit

Permalink
ski-bootloader: Increase frequency for SAL_FREQ_BASE_PLATFORM
Browse files Browse the repository at this point in the history
This simple change yields between 1.19 and 1.53 times as much performance
for writes to ext4 file systems inside ski compared to the stock value.

For package building this yields - depending on the task (`configure`,
`make`, `make install`, `makepkg`) and package - between 1.25 and 1.47
times as much performance and between 1.32 and 1.36 times the performance
overall.

Another effect of this change is that the clock inside ski runs much slower
and closer to the host's clock.

Tested on a machine with 1 x Xeon E3 1271v3 with a maximum clock of 4 GHz.
FS images for ski were placed on a SATA SSD on a 6 Gbps link. Package
builds happened in tmpfs, so in memory inside ski. Timings for the
performed tests were gathered on the host.

The used kernel was based on:
* https://github.com/johnny-mnemonic/linux-ia64/tree/v6.13-rc1-w-ia64
* and https://github.com/linux-ia64/ski/blob/hp-sim-for-linux/linux-6.12.y/linux-6.12.0-reinstate-hp-sim-platform.patch
...on top and used the stock `arch/ia64/configs/sim_defconfig` with tmpfs enabled.
  • Loading branch information
johnny-mnemonic committed Dec 12, 2024
1 parent 913a4d0 commit e4ad7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ski-bootloader/fw-emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ sal_emulator (long index, unsigned long in1, unsigned long in2,
status = 0;
if (index == SAL_FREQ_BASE) {
if (in1 == SAL_FREQ_BASE_PLATFORM)
r9 = 200000000;
r9 = 4000000000;
else if (in1 == SAL_FREQ_BASE_INTERVAL_TIMER) {
/*
* Is this supposed to be the cr.itc frequency
Expand Down

0 comments on commit e4ad7b1

Please sign in to comment.