summaryrefslogtreecommitdiffstats
path: root/sys/kern/syscalls.master
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-10-09 18:41:35 +0000
committerkib <kib@FreeBSD.org>2013-10-09 18:41:35 +0000
commit7ff487b3a2f97b08f82ffdc0b157adf5e886b4f7 (patch)
tree2e1d559a8bd647988a0fe39a70cedb9031ac987c /sys/kern/syscalls.master
parent9375280e4a91021ced232911b9805672cfb89824 (diff)
downloadFreeBSD-src-7ff487b3a2f97b08f82ffdc0b157adf5e886b4f7.zip
FreeBSD-src-7ff487b3a2f97b08f82ffdc0b157adf5e886b4f7.tar.gz
When growing the file descriptor table, new larger memory chunk is
allocated, but the old table is kept around to handle the case of threads still performing unlocked accesses to it. Grow the table exponentially instead of increasing its size by sizeof(long) * 8 chunks when overflowing. This mode significantly reduces the total memory use for the processes consuming large numbers of the file descriptors which open them one by one. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (marius)
Diffstat (limited to 'sys/kern/syscalls.master')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud