Skip to content

boards/ab32vg1-generic: Disable procfs in ostest to fit the SRAM - #21778

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
casaroli:ab32-ostest-fit-up
Nov 12, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:masterfrom
casaroli:ab32-ostest-fit-up

Conversation

@casaroli

@casaroli casaroli commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

depends-on: /pull/21800

Summary

ab32vg1-generic:ostest runs from the 114 KB SRAM (sram region, 116736 bytes). Since #21724 master does not link it, and every CI run of the risc-v-01 group fails:

riscv-none-elf-ld: region `sram' overflowed by 54 bytes

This configuration starts ostest_main and has no shell, and ostest does not read /proc, so nothing in it uses procfs. Disable CONFIG_FS_PROCFS: this frees about 12 KB.

Impact

Only ab32vg1-generic:ostest: no /proc. No code change.

Testing

ab32vg1-generic:ostest, make, riscv-none-elf-gcc 14.3 (bytes of the 116736-byte sram region):

Tree sram
b118542 (before #21724) 115500
cacded6 (#21724) overflowed by 16 bytes
master 512dee8 overflowed by 54 bytes (the same as the CI)
master 512dee8 + this PR 104468

Other options measured on master: STACK_COLORATION off frees 1368 bytes (but ostest uses it for its interrupt stack test), SCHED_DUMP_TASKS off frees 1628 bytes. make savedefconfig gives this defconfig, and the build with EXTRAFLAGS="-Wno-cpp -Werror" has no warning. Not run on the board (no hardware).

ab32vg1-generic:ostest runs from the 114 KB SRAM.  After apache#21724 the
image does not fit:

  riscv-none-elf-ld: region `sram' overflowed by 54 bytes

This configuration starts ostest_main and has no shell, and ostest does
not read /proc, so nothing in it uses procfs.  Disable it: this frees
about 12 KB.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

arduino-mega2560

  • flash: .data +24 B (+0.0%, 68,020 B / 262,144 B, total: 26% used)
  • sram: .data +24 B (+0.9%, 2,829 B / 8,192 B, total: 35% used)

esp32-devkitc

  • ROM: .dram0.data +4 B, .flash.rodata +24 B (+0.0%, 131,120 B / 4,194,272 B, total: 3% used)
  • dram0_0_seg: .dram0.data +4 B (+0.0%, 10,052 B / 180,736 B, total: 6% used)
  • drom0_0_seg: .flash.rodata +24 B (+0.2%, 13,860 B / 4,194,272 B, total: 0% used)

hifive1-revb

  • flash: .data +8 B, .text +20 B (+0.0%, 87,580 B / 4,194,304 B, total: 2% used)
  • sram: .bss +16 B, .data +8 B (+0.6%, 3,988 B / 16,384 B, total: 24% used)

mirtoo

  • kseg0_progmem: .data +4 B, .text +20 B (+0.0%, 70,168 B / 131,072 B, total: 54% used)
  • kseg1_datamem: .data +4 B (+0.2%, 2,604 B / 32,256 B, total: 8% used)

qemu-armv8a

  • Code: .rodata +24 B (+0.0%, 365,112 B)
  • Data: .data.g_version +2 B (+0.0%, 77,927 B)

qemu-intel64

  • Data: .rodata +32 B (+0.0%, 126,937 B)

rx65n-rsk2mb

  • RAM: .data +4 B (+0.1%, 6,728 B / 262,144 B, total: 3% used)
  • ROM: .rodata +20 B (+0.0%, 92,840 B / 2,097,152 B, total: 4% used)

s698pm-dkit

  • Code: .text +32 B (+0.0%, 393,296 B)

stm32-nucleo-f103rb

  • flash: .text +24 B (+0.1%, 35,928 B / 131,072 B, total: 27% used)

Catch memory regressions in CI with MemBrowse. Free for open source.

@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx/actions/runs/43191134193

@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx/actions/runs/43234144340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: risc-v Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants