[Csync2] generating pre-shared keys very slow

Art -kwaak- van Breemen ard+csync2 at telegraafnet.nl
Wed Dec 17 15:14:50 CET 2008


On Wed, Dec 17, 2008 at 02:49:53PM +0100, Christian Wiese wrote:
> I am really wondering why 'csync2 -k keyfile' is dog slow on every
> system I tested it. I doubt that it is supposed to be normal
> operations, that generating a key takes > 30min. 
It does:
open("testfile", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
open("/dev/random", O_RDONLY|O_LARGEFILE) = 4
read(4, "<", 1)                         = 1
write(3, "8", 1)                        = 1
...
close(4)                                = 0
close(3)                                = 0

That reading from /dev/random is your problem. You probably have
a system without entropy, or a lot of entropy consumers.
What does:
ard at c32791:~$ cat /proc/sys/kernel/random/entropy_avail
3609
say on your system?

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in email?


More information about the Csync2 mailing list