]> git.proxmox.com Git - mirror_frr.git/commit
lib: Convert table code to use new hash type
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 May 2019 00:23:52 +0000 (20:23 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 May 2019 00:44:23 +0000 (20:44 -0400)
commit0103534f9c48fb2c00a3833a5acb7405af12b55a
tree8c205ef3ea65c155e4e8d1374fe0238accd57a01
parent6701b1b7e749af853f9b9363ef507189d10ef6d2
lib: Convert table code to use new hash type

This converts the new table code to use the new hash
type provided by David.

The following test is 1 million routes installed and how
much memory we are using:

Old mem usage:
Memory statistics for zebra:
System allocator statistics:
  Total heap allocated:  574 MiB
  Holding block headers: 0 bytes
  Used small blocks:     0 bytes
  Used ordinary blocks:  536 MiB
  Free small blocks:     33 MiB
  Free ordinary blocks:  4600 KiB
  Ordinary blocks:       0
  Small blocks:          0
  Holding blocks:        0

New Memory usage:
Memory statistics for zebra:
System allocator statistics:
  Total heap allocated:  542 MiB
  Holding block headers: 0 bytes
  Used small blocks:     0 bytes
  Used ordinary blocks:  506 MiB
  Free small blocks:     3374 KiB
  Free ordinary blocks:  33 MiB
  Ordinary blocks:       0
  Small blocks:          0
  Holding blocks:        0

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/table.c
lib/table.h