A small, affordable computer with free resources to help people learn, make things, and have fun
https://forums.raspberrypi.com/
In the worst case, two sdram clients accessing different pages of the same bank, may cause repeated closing and opening of the pages, harming the usable bandwidth you can achieve.This means that if a page in a particular bank is already open, you cannot open another page within the same bank without first closing the currently open page. Once a page is open, it can be accessed multiple times without the need to reopen it for subsequent operations.
Code: Select all
sudo apt update && sudo apt full-upgrade
Code: Select all
sudo rpi-eeprom-config -e
Code: Select all
SDRAM_BANKLOW=1
Code: Select all
SDRAM_BANKLOW=3
It depends if sdram is single or dual rank, and what we set BANKLOW to.
Hmm, that's not what the commit message says:
The key setting numa=fake=<n> is not set here, so we will boot with a single
numa region and behaviour should be pretty much unchanged from before this PR.
Code: Select all
vcgencmd bootloader_version
uname -a
rpi-eeprom-config
cat /proc/cmdline
Code: Select all
sysbench memory --memory-block-size=1G --memory-total-size=20G --memory-oper=write run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Running memory speed test with the following options:
block size: 1048576KiB
total size: 20480MiB
operation: write
scope: global
Initializing worker threads...
Threads started!
Total operations: 20 ( 8.08 per second)
20480.00 MiB transferred (8270.73 MiB/sec)
General statistics:
total time: 2.4750s
total number of events: 20
Latency (ms):
min: 122.58
avg: 123.74
max: 131.71
95th percentile: 123.28
sum: 2474.78
Threads fairness:
events (avg/stddev): 20.0000/0.00
execution time (avg/stddev): 2.4748/0.00dom wrote: ↑Wed Oct 23, 2024 7:05 pm
Have you done that? Show me:Code: Select all
vcgencmd bootloader_version uname -a rpi-eeprom-config cat /proc/cmdline
Code: Select all
root@pi4:~# vcgencmd bootloader_version
2024年10月21日 15:24:54
version 951e1cc9d8b1d81c0ca1783a0634605616970bc3 (release)
timestamp 1729520694
update-time 1729696108
capabilities 0x0000007f
root@pi4:~# uname -a
Linux pi4 6.6.58-v8-rpios #29 SMP Wed Oct 23 14:45:05 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
root@pi4:~# rpi-eeprom-config
[all]
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=0
SDRAM_BANKLOW=3
root@pi4:~# cat /proc/cmdline
coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 numa_policy=interleave snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 smsc95xx.macaddr=E4:5F:01:6F:56:10 vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000 console=ttyS0,115200 multipath=off dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4 rootwait fixrtc cpufreq.default_governor=performance cgroup_enable=memory numa=fake=8
This is pi4? Have you updated firmware (start4.elf).fguerraz wrote: ↑Wed Oct 23, 2024 9:03 pmWithout numa=fake=8, numa doesn’t get enabled (easy to check with numactl)
Yes it's a pi4, with up to date firmware & start4.elf
Code: Select all
08a3a34b599be818b000610b14d076f0683acaceec94f48449210c1fe35038a2 firmware/start4.elf"vcgencmd version" is a more definitive way to confirm the firmware you are running (but that sha256sum does match latest).fguerraz wrote: ↑Thu Oct 24, 2024 7:26 amYes it's a pi4, with up to date firmware & start4.elfCode: Select all
08a3a34b599be818b000610b14d076f0683acaceec94f48449210c1fe35038a2 firmware/start4.elf
Code: Select all
pi@pios:~ $ vcgencmd version
Oct 17 2024 11:34:50
Copyright (c) 2012 Broadcom
version b580e2acde306434ab07a913745a21451643ff55 (clean) (release) (start)
pi@pios:~ $ vcgencmd bootloader_version
2024年10月21日 15:24:54
version 951e1cc9d8b1d81c0ca1783a0634605616970bc3 (release)
timestamp 1729520694
update-time 1729770198
capabilities 0x0000007f
pi@pios:~ $ uname -a
Linux pios 6.6.58-v8+ #1809 SMP PREEMPT Wed Oct 23 11:53:53 BST 2024 aarch64 GNU/Linux
pi@pios:~ $ rpi-eeprom-config
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=0
SDRAM_BANKLOW=3
pi@pios:~ $ cat /boot/firmware/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=21779776-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=GB
pi@pios:~ $ cat /proc/cmdline
coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 numa_policy=interleave snd_bcm2835.enable_hdmi=0 numa=fake=2 smsc95xx.macaddr=DC:A6:32:AD:2A:38 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyAMA0,115200 console=tty1 root=PARTUUID=21779776-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=GB
Yes, this is what I'm saying.
Code: Select all
$ vcgencmd bootloader_version
2024年10月21日 15:24:54
version 951e1cc9d8b1d81c0ca1783a0634605616970bc3 (release)
timestamp 1729520694
update-time 1729696108
capabilities 0x0000007f
$ vcgencmd version
Feb 29 2024 12:24:53
Copyright (c) 2012 Broadcom
version f4e2138c2adc8f3a92a3a65939e458f11d7298ba (clean) (release) (start)
I never said I was running on rpios :D only that I'm running the rpios kernel with the latest firmware. I'll update vcgencmd and report back (although I'm still confused what role it plays in in the boot sequence).
As i said:
Don't update vcgencmd. Update start4.elf (correctly - because you are not running the version you think you are).
Good to hear.timrowledge wrote: ↑Thu Oct 24, 2024 6:32 pmFor Squeak Smalltalk benchmarks I see small but useful improvements; we use versions of the Benchmark Shootout suiteComparing a NUMA'd Pi 5 to a 'plain' Pi 5
- nbody
- binary trees
- chameneos redux
- thread ring
Not bad for some fiddling with ram timings.
- nbody: 5.157 -> 5.095 = 1.2%
- binary trees: 3.398 -> 3.096 = 8.9%
- chameneos redux: 7.274 -> 5.239 = 28%
- thread ring: 8.347 -> 7.783 = 6.7%
I thought fake NUMA only changed the order in which pages were allocated to a process. Do the memory timings change as well?dom wrote: ↑Thu Oct 24, 2024 7:11 pmGood to hear.timrowledge wrote: ↑Thu Oct 24, 2024 6:32 pmFor Squeak Smalltalk benchmarks I see small but useful improvements; we use versions of the Benchmark Shootout suiteComparing a NUMA'd Pi 5 to a 'plain' Pi 5
- nbody
- binary trees
- chameneos redux
- thread ring
Not bad for some fiddling with ram timings.
- nbody: 5.157 -> 5.095 = 1.2%
- binary trees: 3.398 -> 3.096 = 8.9%
- chameneos redux: 7.274 -> 5.239 = 28%
- thread ring: 8.347 -> 7.783 = 6.7%
There are no explicit memory timing changes in latest rpi-update version. There have been a few over the last few months.