When calculating the expected memory size for userspace, also take the

number of syncache entries into account for the surplus we add to account
for a possible increase of records in the re-entry window.

Discussed with:		jhb, silby
MFC after:		1 week
This commit is contained in:
Bjoern A. Zeeb 2010-08-18 09:28:12 +00:00
parent 50e2303d92
commit 2278f9927d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211451

View File

@ -1022,7 +1022,7 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS)
if (req->oldptr == NULL) {
m = syncache_pcbcount();
n = V_tcbinfo.ipi_count;
n += imax(n / 8, 10);
n += imax((m + n) / 8, 10);
req->oldidx = 2 * (sizeof xig) +
(m + n) * sizeof(struct xtcpcb);
return (0);