From owner-freebsd-current@FreeBSD.ORG Wed Jun 2 12:09:46 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E301516A4CE for ; Wed, 2 Jun 2004 12:09:46 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF8143D2F for ; Wed, 2 Jun 2004 12:09:46 -0700 (PDT) (envelope-from joe@tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id 92B5E4292; Wed, 2 Jun 2004 20:09:44 +0100 (BST) Date: Wed, 2 Jun 2004 20:09:44 +0100 From: Josef Karthauser To: Bruce Evans Message-ID: <20040602190944.GA81273@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , Bruce Evans , Mark Murray , current@FreeBSD.org References: <20040602134523.GA26835@genius.tao.org.uk> <200406021357.i52DvCIn002903@grimreaper.grondar.org> <20040602140148.GA27036@genius.tao.org.uk> <20040602140923.GA27070@genius.tao.org.uk> <20040603011806.E25331@gamplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20040603011806.E25331@gamplex.bde.org> User-Agent: Mutt/1.5.6i cc: current@FreeBSD.org cc: Mark Murray Subject: Re: Problems with periodic scripts in jails [Cron /usr/libexec/save-entropy] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 19:09:47 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 03, 2004 at 01:32:07AM +1000, Bruce Evans wrote: > > Ok, I've found the cause of the problem. Cron is spawning > > more than one copy of the entropy script... >=20 > Cron has been filling my mailbox with complaints about this for years. > (I only partially filled the mailbox of the author of the entropy > script with complaints about it 3 or 4 times :-). In my case, the > multiple crons are caused by /usr being nfs-mounted and the server > being down. cron forks OK, but each copy blocks waiting for something > in /usr. When the server comes back up, a thundering herd of entropy > scripts run and clobber each others' rotation of the entropy files. > Cron normally runs the entropy script every 11 minutes, so the herd > grows quickly. The herd (or perhaps other herds) also exhausts pipe > kva on machines with small amounts of RAM (64M) while waiting. >=20 In my case however cron is consistently executing TWO copies of everything at the same time. What kind of wierdness is that? (Something jail related... what?) Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iEYEARECAAYFAkC+JfIACgkQXVIcjOaxUBbSMACg7c/xRTjr6rb+m2hZiGYmnZx8 xIcAoMYq77hkBjrqi4bjmTiRE3tIXBy3 =S7h/ -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--