chiark / gitweb /
journal: size journal data hash table based on maximum file size metrics
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Jul 2012 22:36:15 +0000 (00:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Jul 2012 22:59:03 +0000 (00:59 +0200)
commit4a92baf3fa97c73f04438b5814db58783f920b32
treef5e102e67986e5de420fea219ab7fa0237e17503
parent71fa6f006f92831c0c02e844b4c35e4b7197c6d6
journal: size journal data hash table based on maximum file size metrics

The default of 2047 hash table entries turned out to result in way too
many collisions for bigger files, hence scale the hash table size by the
estimated maximum file size.
src/journal/journal-file.c
src/journal/journal-file.h
src/journal/journald.c
src/journal/sd-journal.c
src/journal/test-journal-stream.c
src/journal/test-journal.c