From owner-cvs-all Sat Dec 2 10:40:20 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5750C37B400; Sat, 2 Dec 2000 10:40:17 -0800 (PST) Received: (from markm@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eB2IeHq86973; Sat, 2 Dec 2000 10:40:17 -0800 (PST) (envelope-from markm) Message-Id: <200012021840.eB2IeHq86973@freefall.freebsd.org> From: Mark Murray Date: Sat, 2 Dec 2000 10:40:17 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/random yarrow.c yarrow.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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