public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* riscv syscall performance regression
@ 2024-02-23  5:28 Wu, Fei
  2024-02-27  1:15 ` Guo Ren
  2024-08-13 12:51 ` Alexandre Ghiti
  0 siblings, 2 replies; 4+ messages in thread
From: Wu, Fei @ 2024-02-23  5:28 UTC (permalink / raw)
  To: linux-riscv, linux-kernel, guoren, fei2.wu

Hi All,

I am doing some performance regression testing on a sophgo machine, the
unixbench syscall benchmark drops 14% from 6.1 to 6.6. This change
should be due to commit f0bddf50 riscv: entry: Convert to generic entry.
I know it's a tradeoff, just checking if it's been discussed already and
any improvement can be done.

The unixbench benchmark I used is:
	$ ./syscall 10 getpid

The dynamic instruction count per syscall is increased from ~200 to
~250, this should be the key factor so I switch to test it on system
QEMU to avoid porting different versions on sophgo, and use plugin
libinsn.so to count the instructions. There are a few background noises
during test but the impact should be limited. This is dyninst count per
syscall I got:

* commit d0db02c6 (right before the change): ~200
* commit f0bddf50 (the change): ~250
* commit ffd2cb6b (latest upstream): ~250

Any comment?

Thanks,
Fei.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-13 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-23  5:28 riscv syscall performance regression Wu, Fei
2024-02-27  1:15 ` Guo Ren
2024-08-13 12:51 ` Alexandre Ghiti
2024-08-13 19:15   ` Charlie Jenkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox