dlang wrote:I don't know if the bottleneck is cpu or disk, in part becouse I don't fully understand how the multiple threads can operate. I have 8 high-speed cores so I am not running out of total CPU, but I could have a thread eating up one CPU entirely.
dlang wrote:thoughts on performance (in part from looking at the strace)
it may be worth implementing a name lookup cache rather than calling out for every single lookup (there would need to be some way to flush the cache, say SIGHUP or SIGUSR1/2). Is there an easy way to disable name lookups to test this? (a quick calculation suggests that avoiding the system calls involved with the name lookup could come close to doubling the speed)
dlang wrote:dlang wrote:thoughts on performance (in part from looking at the strace)
it may be worth implementing a name lookup cache rather than calling out for every single lookup (there would need to be some way to flush the cache, say SIGHUP or SIGUSR1/2). Is there an easy way to disable name lookups to test this? (a quick calculation suggests that avoiding the system calls involved with the name lookup could come close to doubling the speed)
as a point of comparison, I just hacked sysklogd to not do any name lookups and instead just log the IP address (or existing name), and I got close to double the performance from it (~50k logs/sec instead of ~22K logs/sec)
Users browsing this forum: No registered users and 0 guests