Page MenuHomeFreeBSD

pseudofs: add sysctl to set sbuf buffer size
Needs ReviewPublic

Authored by dchagin on Jun 9 2019, 4:07 PM.

Details

Reviewers
des
kib
markj
Group Reviewers
Linux Emulation
Summary

MAXPHYS is to small for the modern program, it is not enough even
for print process memory map.
To avoid this, limit storage size of the sbuf buffer by tunable sysctl.

PR: 237883

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

dchagin created this revision.Jun 9 2019, 4:07 PM
kib added a comment.Sep 27 2019, 1:53 PM

Why do you need a sysctl ? If bumping, simply increase to some larger but reasonable value, e.g. 2M. IOSIZE_MAX is definitely unreasonable.

markj added a comment.Sep 27 2019, 2:19 PM

Seems like the limit could be removed by using an sbuf drain function?