Page MenuHomeFreeBSD

login_class: Fix kqueues, pipebuf resource types
ClosedPublic

Authored by des on Fri, May 29, 4:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 23, 11:57 AM
Unknown Object (File)
Sat, Jun 20, 3:30 PM
Unknown Object (File)
Sat, Jun 20, 11:30 AM
Unknown Object (File)
Wed, Jun 17, 2:00 AM
Unknown Object (File)
Thu, Jun 11, 3:45 AM
Unknown Object (File)
Sun, Jun 7, 6:38 AM
Unknown Object (File)
Sat, Jun 6, 11:34 PM
Unknown Object (File)
Sat, Jun 6, 5:15 PM

Details

Summary
  • kqueues is a count but is listed as a size
  • pipebuf is a size but is listed as a count

PR: 295623
MFC after: 1 week
Fixes: a4c04958f526 ("libutil: support RLIMIT_PIPEBUF")
Fixes: 85a0ddfd0b26 ("Add a resource limit for the total...")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Fri, May 29, 4:01 PM

Looking at the kernel code, it looks like RLIMIT_PIPEBUF really is a count, not a size. The getrlimit(2) manual page lists it as a size. So I should correct the documentation instead. RLIMIT_KQUEUES is definitely not a size though.

This revision is now accepted and ready to land.Fri, May 29, 5:41 PM

@kib is RLIMIT_PIPEBUF meant to be a count or a size?

In D57333#1313719, @des wrote:

@kib is RLIMIT_PIPEBUF meant to be a count or a size?

It is size in KVA of the consumed pipe bufs.