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:
parent
50e2303d92
commit
2278f9927d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211451
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user