Date: Sat, 2 Dec 2000 10:40:17 -0800 (PST) From: Mark Murray <markm@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/random yarrow.c yarrow.h Message-ID: <200012021840.eB2IeHq86973@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
markm 2000/12/02 10:40:17 PST Modified files: sys/dev/random yarrow.c yarrow.h Log: Major speedup to /dev/random and the kernel thread that reseeds it. There is no more TAILQ fifo to harvest the entropy; instead, there is a circular buffer of constant size (changeable by macro) that pretty dramatically improves the speed and fixes potential slowdowns- by-locking. Also gone are a slew of malloc(9) and free(9) calls; all harvesting buffers are static. All-in-all, this is a good performance improvement. Thanks-to: msmith for the circular buffer concept-code. Revision Changes Path 1.26 +107 -97 src/sys/dev/random/yarrow.c 1.13 +2 -2 src/sys/dev/random/yarrow.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012021840.eB2IeHq86973>