[InterNetNews/inn] 2583de: ovsqlite: honor mmapsize in the direct reader path
Kevin Bowling
noreply at github.com
Sat May 30 08:44:21 UTC 2026
Branch: refs/heads/main
Home: https://github.com/InterNetNews/inn
Commit: 2583def3ad5a778288f93a097e75b1c582d3005f
https://github.com/InterNetNews/inn/commit/2583def3ad5a778288f93a097e75b1c582d3005f
Author: Kevin Bowling <kevin.bowling at kev009.com>
Date: 2026-05-30 (Sat, 30 May 2026)
Changed paths:
M doc/pod/ovsqlite.pod
M samples/ovsqlite.conf
M storage/ovsqlite/ovsqlite.c
Log Message:
-----------
ovsqlite: honor mmapsize in the direct reader path
The mmapsize parameter was only applied by ovsqlite-server. When WAL
mode is enabled, nnrpd readers open the database directly via
direct_open(), bypassing the server, so they never set pragma mmap_size.
Read mmapsize in direct_open() and apply it to the read connection,
mirroring the server. Besides the read-performance benefit, memory-
mapping lets multiple nnrpd readers share the same physical pages through
the OS page cache. Document the caveat that this helps little on ZFS or
other filesystems without a unified buffer cache, where the mapped pages
would be cached twice.
close #342
To unsubscribe from these emails, change your notification settings at https://github.com/InterNetNews/inn/settings/notifications
More information about the inn-committers
mailing list