J’ai fait l’exercice de mon côté sur un raspi4 8Go RAM 1To NVMe en USB3 avec --mul=3 :
$ grep WEIGHT runtime/g1/src/weights/paritydb_weights.rs
read: 131_118 * constants::WEIGHT_REF_TIME_PER_NANOS,
write: 957_435 * constants::WEIGHT_REF_TIME_PER_NANOS
$ grep WEIGHT runtime/g1/src/weights/extrinsic_weights.rs
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(838_991), 0);
J’ai fait une MR avec tous les fichiers de poids.
- le détail des différentes étapes pour info
aya@aynic:~/Sources/duniter-v2s $ target/release/duniter benchmark storage \
--dev \
--mul=3 \
--weight-path=./runtime/g1/src/weights/ \
--state-version=1 \
--database=paritydb \
--disable-pov-recorder \
--batch-size=100
2026-02-23 22:27:44 Low open file descriptor limit configured for the process. Current value: 4096, recommended value: 10000.
2026-02-23 22:27:57 🔨 Initializing Genesis block/state (state: 0x7560…2259, header-hash: 0x87a5…4a79)
2026-02-23 22:27:57 Creating transaction pool txpool_type=SingleState ready=Limit { count: 8192, total_bytes: 20971520 } future=Limit { count: 512, total_bytes: 1048576 }
2026-02-23 22:27:57 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
2026-02-23 22:27:57 👶 Creating empty BABE epoch changes on what appears to be first startup.
2026-02-23 22:27:57 Essential task `babe-worker` failed. Shutting down service.
2026-02-23 22:27:57 Warmup round 1/1
2026-02-23 22:27:57 Preparing keys from block 0x87a5…4a79
2026-02-23 22:27:57 Reading 157 keys
2026-02-23 22:27:57 Time summary [ns]:
Total: 6861961
Min: 2185, Max: 6013963
Average: 43706, Median: 5352, Stddev: 478007.55
Percentiles 99th, 95th, 75th: 20740, 8408, 6389
Value size summary:
Total: 5205581
Min: 1, Max: 5201710
Average: 33156, Median: 12, Stddev: 413815.46
Percentiles 99th, 95th, 75th: 241, 128, 33
2026-02-23 22:27:57 Warmup round 1/1
2026-02-23 22:27:57 Preparing keys from block 0x87a5…4a79
2026-02-23 22:27:57 Writing 157 keys in batches of 100
2026-02-23 22:27:57 Time summary [ns]:
Total: 319145
Min: 319145, Max: 319145
Average: 319145, Median: 319145, Stddev: 0
Percentiles 99th, 95th, 75th: 319145, 319145, 319145
Value size summary:
Total: 52040
Min: 52040, Max: 52040
Average: 52040, Median: 52040, Stddev: 0
Percentiles 99th, 95th, 75th: 52040, 52040, 52040
2026-02-23 22:27:57 Writing weights to "/home/aya/Sources/duniter-v2s/runtime/g1/src/weights/paritydb_weights.rs"
aya@aynic:~/Sources/duniter-v2s $ target/release/duniter benchmark overhead \
--chain=dev \
--wasm-execution=compiled \
--weight-path=./runtime/g1/src/weights/ \
--warmup=10 \
--repeat=100
2026-02-23 22:29:07 Low open file descriptor limit configured for the process. Current value: 4096, recommended value: 10000.
2026-02-23 22:29:20 🔨 Initializing Genesis block/state (state: 0x7560…2259, header-hash: 0x87a5…4a79)
2026-02-23 22:29:20 Creating transaction pool txpool_type=SingleState ready=Limit { count: 8192, total_bytes: 20971520 } future=Limit { count: 512, total_bytes: 1048576 }
2026-02-23 22:29:20 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
2026-02-23 22:29:21 👶 Creating empty BABE epoch changes on what appears to be first startup.
2026-02-23 22:29:21 Essential task `babe-worker` failed. Shutting down service.
2026-02-23 22:29:21 Running 10 warmups...
2026-02-23 22:29:21 Executing block 100 times
2026-02-23 22:29:21 Per-block execution overhead [ns]:
Total: 114159483
Min: 1085352, Max: 1776370
Average: 1141594, Median: 1110481, Stddev: 110220.45
Percentiles 99th, 95th, 75th: 1631018, 1288797, 1135000
2026-02-23 22:29:21 Writing weights to "/home/aya/Sources/duniter-v2s/runtime/g1/src/weights/block_weights.rs"
2026-02-23 22:29:21 Running 10 warmups...
2026-02-23 22:29:21 Executing block 100 times
2026-02-23 22:29:21 Building block, this takes some time...
2026-02-23 22:29:32 Extrinsics per block: 2458
2026-02-23 22:29:32 Running 10 warmups...
2026-02-23 22:29:53 Executing block 100 times
2026-02-23 22:33:22 Per-extrinsic execution overhead [ns]:
Total: 83899164
Min: 831123, Max: 865553
Average: 838991, Median: 837738, Stddev: 5422.74
Percentiles 99th, 95th, 75th: 863711, 850807, 839853
2026-02-23 22:33:22 Writing weights to "/home/aya/Sources/duniter-v2s/runtime/g1/src/weights/extrinsic_weights.rs"
aya@aynic:~/Sources/duniter-v2s $ target/release/duniter benchmark pallet --genesis-builder=spec-genesis --steps=50 --repeat=20 --pallet="*" --extrinsic="*" --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/g1/src/weights/
# cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
# hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: Samsung SSD 860 EVO M.2 1TB
Serial Number: XXXXXXXXXXXXXXX
Firmware Revision: RVT24B6Q
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
Used: unknown (minor revision code 0x005e)
Supported: 11 8 7 6 5
Likely used: 11
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 1953525168
Logical Sector size: 512 bytes
Physical Sector size: 512 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 953869 MBytes
device size with M = 1000*1000: 1000204 MBytes (1000 GB)
cache/buffer size = unknown
Form Factor: unknown (0x0007]
Nominal Media Rotation Rate: Solid State Device
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 1 Current = 1
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
SET_MAX security extension
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
Write-Read-Verify feature set
* WRITE_UNCORRECTABLE_EXT command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Gen3 signaling speed (6.0Gb/s)
* Native Command Queueing (NCQ)
* Phy event counters
* READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
DMA Setup Auto-Activate optimization
Device-initiated interface power management
* Asynchronous notification (eg. media change)
* Software settings preservation
Device Sleep (DEVSLP)
* SMART Command Transport (SCT) feature set
* SCT Write Same (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
* Device encrypts all user data
* DOWNLOAD MICROCODE DMA command
* SET MAX SETPASSWORD/UNLOCK DMA commands
* WRITE BUFFER DMA command
* READ BUFFER DMA command
* Data Set Management TRIM supported (limit 8 blocks)
* Deterministic read ZEROs after TRIM
# smartctl -a /dev/sda
smartctl 7.4 2023-08-01 r5530 [aarch64-linux-6.12.69+deb13-arm64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: Samsung SSD 860 EVO M.2 1TB
Serial Number: XXXXXXXXXXXXXX
LU WWN Device Id: 0 000000 000000000
Firmware Version: RVT24B6Q
User Capacity: 1 000 204 886 016 bytes [1,00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: M.2
TRIM Command: Available, deterministic, zeroed
Device is: In smartctl database 7.3/5528
ATA Version is: ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Feb 23 21:06:39 2026 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
# lspci -v
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge (rev 10) (prog-if 00 [Normal decode])
Device tree node: /sys/firmware/devicetree/base/scb/pcie@7d500000/pci@0,0
Flags: bus master, fast devsel, latency 0, IRQ 19
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: 00000000-000fffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: [48] Power Management version 3
Capabilities: [ac] Express Root Port (Slot-), IntMsgNum 0
Capabilities: [100] Advanced Error Reporting
Capabilities: [180] Vendor Specific Information: ID=0000 Rev=0 Len=028 <?>
Capabilities: [240] L1 PM Substates
Kernel driver in use: pcieport
01:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01) (prog-if 30 [XHCI])
Subsystem: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller
Device tree node: /sys/firmware/devicetree/base/scb/pcie@7d500000/pci@0,0/usb@0,0
Flags: bus master, fast devsel, latency 0, IRQ 38
Memory at 600000000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [80] Power Management version 3
Capabilities: [90] MSI: Enable+ Count=4/4 Maskable- 64bit+
Capabilities: [c4] Express Endpoint, IntMsgNum 0
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
# lshw
description: Computer
produit: Raspberry Pi 4 Model B Rev 1.4
numéro de série: 0000000000000000
bits: 64 bits
fonctionnalités: smp cp15_barrier setend swp tagged_addr_disabled
*-core
description: Motherboard
identifiant matériel: 0
*-cpu:0
description: CPU
produit: cpu
identifiant matériel: 1
information bus: cpu@0
taille: 1500MHz
capacité: 1500MHz
fonctionnalités: fp asimd evtstrm crc32 cpuid cpufreq
*-cache
description: L1 Cache
identifiant matériel: 0
taille: 32KiB
*-cpu:1
description: CPU
produit: cpu
identifiant matériel: 2
information bus: cpu@1
taille: 1500MHz
capacité: 1500MHz
fonctionnalités: fp asimd evtstrm crc32 cpuid cpufreq
*-cache
description: L1 Cache
identifiant matériel: 0
taille: 32KiB
*-cpu:2
description: CPU
produit: cpu
identifiant matériel: 3
information bus: cpu@2
taille: 1500MHz
capacité: 1500MHz
fonctionnalités: fp asimd evtstrm crc32 cpuid cpufreq
*-cache
description: L1 Cache
identifiant matériel: 0
taille: 32KiB
*-cpu:3
description: CPU
produit: cpu
identifiant matériel: 4
information bus: cpu@3
taille: 1500MHz
capacité: 1500MHz
fonctionnalités: fp asimd evtstrm crc32 cpuid cpufreq
*-cache
description: L1 Cache
identifiant matériel: 0
taille: 32KiB
*-cpu:4 DÉSACTIVÉ
description: CPU
produit: l2-cache0
identifiant matériel: 5
information bus: cpu@4
*-memory
description: Mémoire système
identifiant matériel: 6
taille: 8GiB
*-pci
description: PCI bridge
produit: BCM2711 PCIe Bridge
fabriquant: Broadcom Inc. and subsidiaries
identifiant matériel: 0
information bus: pci@0000:00:00.0
version: 10
bits: 32 bits
horloge: 33MHz
fonctionnalités: pci pm pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport
ressources: irq:19 mémoire:600000000-6000fffff
*-usb
description: USB controller
produit: VL805/806 xHCI USB 3.0 Controller
fabriquant: VIA Technologies, Inc.
identifiant matériel: 0
information bus: pci@0000:01:00.0
version: 01
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
ressources: irq:38 mémoire:600000000-600000fff
*-scsi
identifiant matériel: 7
information bus: usb@2:2
nom logique: scsi0
*-disk
description: SCSI Disk
produit: Forty
fabriquant: Argon
identifiant matériel: 0.0.0
information bus: scsi@0:0.0.0
nom logique: /dev/sda
version: 0
numéro de série: 000000000000
taille: 931GiB (1TB)
fonctionnalités: partitioned partitioned:dos
configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512 signature=xxxxxxxx
*-volume:0
description: Windows FAT volume
fabriquant: mkfs.fat
identifiant matériel: 1
information bus: scsi@0:0.0.0,1
nom logique: /dev/sda1
nom logique: /boot/firmware
version: FAT32
numéro de série: xxxx-xxxx
taille: 255MiB
capacité: 256MiB
fonctionnalités: primary fat initialized
configuration: FATs=2 filesystem=fat label=boot mount.fstype=vfat mount.options=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro state=mounted
*-volume:1
description: EXT4 volume
fabriquant: Linux
identifiant matériel: 2
information bus: scsi@0:0.0.0,2
nom logique: /dev/sda2
nom logique: /
version: 1.0
numéro de série: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx
taille: 931GiB
capacité: 931GiB
fonctionnalités: primary journaled extended_attributes large_files dir_nlink recover extents ext4 ext2 initialized
configuration: created=2021-05-07 18:13:17 filesystem=ext4 label=rootfs lastmountpoint=/root modified=2026-02-23 19:22:25 mount.fstype=ext4 mount.options=rw,noatime mounted=1970-01-01 01:00:07 state=mounted
*-mmc0
description: MMC Host
identifiant matériel: 1
nom logique: mmc0
*-device
description: SDIO Device
identifiant matériel: 1
information bus: mmc@0:0001
numéro de série: 0
fonctionnalités: sdio
*-interface:0
produit: 43430
fabriquant: Broadcom
identifiant matériel: 1
information bus: mmc@0:0001:1
nom logique: mmc0:0001:1
*-interface:1
produit: 43430
fabriquant: Broadcom
identifiant matériel: 2
information bus: mmc@0:0001:2
nom logique: mmc0:0001:2
*-bt
description: BlueTooth interface
produit: 43430
fabriquant: Broadcom
identifiant matériel: 3
information bus: mmc@0:0001:3
nom logique: mmc0:0001:3
fonctionnalités: wireless bluetooth
configuration: wireless=BlueTooth
*-mmc1
description: MMC Host
identifiant matériel: 2
nom logique: mmc1
*-sound:0
description: Headphones
identifiant matériel: 3
nom logique: card0
nom logique: /dev/snd/controlC0
nom logique: /dev/snd/pcmC0D0p
*-sound:1
description: vc4hdmi0
identifiant matériel: 4
nom logique: card1
nom logique: /dev/snd/controlC1
nom logique: /dev/snd/pcmC1D0p
*-sound:2
description: vc4hdmi1
identifiant matériel: 5
nom logique: card2
nom logique: /dev/snd/controlC2
nom logique: /dev/snd/pcmC2D0p
*-input:0
produit: vc4-hdmi-0
identifiant matériel: 6
nom logique: input0
nom logique: /dev/input/event0
fonctionnalités: cec
*-input:1
produit: vc4-hdmi-1
identifiant matériel: 7
nom logique: input1
nom logique: /dev/input/event1
fonctionnalités: cec
*-network
description: Ethernet interface
identifiant matériel: 8
nom logique: eth0
numéro de série: xx:xx:xx:xx:xx:xx
taille: 1Gbit/s
capacité: 1Gbit/s
fonctionnalités: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=bcmgenet driverversion=x.xx.xx-arm64 duplex=full ip=xxx.xxx.xxx.xxx link=yes multicast=yes port=twisted pair speed=1Gbit/s