]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
poll/select: change selfd_zone into a malloc type
authormjg <mjg@FreeBSD.org>
Thu, 5 Nov 2020 12:24:37 +0000 (12:24 +0000)
committermjg <mjg@FreeBSD.org>
Thu, 5 Nov 2020 12:24:37 +0000 (12:24 +0000)
commitdb4a3531f75ba8aef21ee6be1e514120ab64fea2
tree913c3427669a6dcb5bd04b5bc7bc5413a68d8e4e
parent5b618a4213b671cc3c296d9189984289a077fca2
poll/select: change selfd_zone into a malloc type

On a sample box vmstat -z shows:

ITEM                   SIZE  LIMIT     USED     FREE      REQ
64:                      64,      0, 10437844367538,3698187229
selfd:                   64,      0,    1520,   13726,182729008

But at the same time:
vm.uma.selfd.keg.domain.1.pages: 121
vm.uma.selfd.keg.domain.0.pages: 121

Thus 242 pages got pulled even though the malloc zone would likely accomodate
the load without using extra memory.
sys/kern/sys_generic.c