summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-07-11 17:35:08 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-07-11 17:35:08 +0000
commit64f679147501c3b8342e01fb298b344d316d637a (patch)
treea60149fd516673099a993f061256802f2ab90115 /usr.sbin
parent03febf9a0dc48ba08015ecbc2a204a5dd9f211e0 (diff)
Bump some of the hash table size to more resonable numbers.
Still probably not optimal but less bad.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde.c6
1 files changed, 3 insertions, 3 deletions
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 <henning@openbsd.org>
@@ -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