From: claudio Date: Wed, 11 Jul 2018 17:35:07 +0000 (+0000) Subject: Bump some of the hash table size to more resonable numbers. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d7670f74c5f51129a9d27d47106be9535ede3cf6;p=openbsd Bump some of the hash table size to more resonable numbers. Still probably not optimal but less bad. --- diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 66555ff04a8..496dced222a 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.391 2018/07/11 16:34:36 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.392 2018/07/11 17:35:07 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -171,8 +171,8 @@ rde_sighdlr(int sig) } u_int32_t peerhashsize = 64; -u_int32_t pathhashsize = 1024; -u_int32_t attrhashsize = 512; +u_int32_t pathhashsize = 128 * 1024; +u_int32_t attrhashsize = 16 * 1024; u_int32_t nexthophashsize = 64; void