HomeFreeBSD

cuse(3): Allow shared memory allocations up to, but excluding 2 GBytes.

Description

cuse(3): Allow shared memory allocations up to, but excluding 2 GBytes.

Currently the cuse(3) mmap(2) offset is split into 128 banks of 16 Mbytes.
Allow cuse(3) to make allocations that span multiple banks at the expense
of any fragmentation issues that may arise. Typically mmap(2) buffers are
well below 16 Mbytes. This allows 8K video resolution to work using webcamd.

Reviewed by: markj @
Differential Revision: https://reviews.freebsd.org/D35830
Sponsored by: NVIDIA Networking

(cherry picked from commit d14b53ee31ca06933a4f8ef2e48ce33cf3dd5ec9)

Details

Provenance
hselaskyAuthored on Jul 13 2022, 4:17 PM
Reviewer
markj
Differential Revision
D35830: cuse(3): Allow shared memory allocations up to and including 2 GBytes.
Parents
rG412b95f77d99: cuse(3): Make cuse_vmfree() NULL safe.
Branches
Unknown
Tags
Unknown