]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cpum_sf: Rework sampling buffer allocation
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 4 Dec 2019 08:29:20 +0000 (09:29 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 17 Feb 2020 17:04:15 +0000 (18:04 +0100)
commitf11e4dce5c5cee4d5f746a2e7c80dacb349e4ef0
tree073871ca087607e67bb45ad10b8cfab575363b57
parent80b2d47f70ccd2a60c3e607ab0470ddb354d8917
s390/cpum_sf: Rework sampling buffer allocation

Adjust sampling buffer allocation depending on
frequency and correct comments. Investigation on the
interrupt handler revealed that almost always one interupt
services one SDB, even when running with the maximum frequency
of 100000. Very rarely there have been 2 SBD serviced per
interrupt.

Therefore reduce the number of SBD per CPU. Each SDB is one
page in size. The new formula results in
freq:4000 n_sdb:32 new:16
freq:10000 n_sdb:80 new:16
freq:20000 n_sdb:159 new:17
freq:40000 n_sdb:318 new:19
freq:50000 n_sdb:397 new:20
freq:62500 n_sdb:497 new:22
freq:83333 n_sdb:662 new:24
freq:100000 n_sdb:794 new:25

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/perf_cpum_sf.c