[Bug 241385] databases/sqlite3: enable OS features

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 5 03:07:36 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241385

--- Comment #7 from rozhuk.im at gmail.com ---
(In reply to Pavel Volkov from comment #6)

SQLITE_MMAP_READWRITE - does not enables mmap() usage, it enables memcpy() to
mmaped memory write instead of lseek()+write() / pwrite().

I agree that it can be dangerous, or at least I do not know it there any
bugs/features in FreeBSD mmap() implementations.

But mmap() io does not enabled by this patch.
To enable mmaped io some one should add -DSQLITE_DEFAULT_MMAP_SIZE=0x7fff0000
before compile this port, to force all apps use mmap() or execute "PRAGMA
mmap_size=0x7fff0000" in app.

I do not insist on SQLITE_MMAP_READWRITE, but if our mmap() implementation
works as sqlite3 authors expect, then we get more profit from this.

Yes, ~half of options is detected by autoconf, but I prefer to define it, just
to be sure that it set.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list