From owner-freebsd-scsi Mon Jul 8 12:57:13 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C4E237B400 for ; Mon, 8 Jul 2002 12:57:12 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D5EC43E4A for ; Mon, 8 Jul 2002 12:57:11 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g68JvAKi066837; Mon, 8 Jul 2002 13:57:10 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g68JvA8j066836; Mon, 8 Jul 2002 13:57:10 -0600 (MDT) (envelope-from ken) Date: Mon, 8 Jul 2002 13:57:10 -0600 From: "Kenneth D. Merry" To: Dave Hayes Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Random hangs on (at least) SCSI reads Message-ID: <20020708135710.A66775@panzer.kdm.org> References: <200207081952.g68Jqo069730@hokkshideh2.jetcafe.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200207081952.g68Jqo069730@hokkshideh2.jetcafe.org>; from dave@jetcafe.org on Mon, Jul 08, 2002 at 12:52:45PM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Jul 08, 2002 at 12:52:45 -0700, Dave Hayes wrote: > Kenneth D Merry writes: > > That will probably lead to catting the entire contents of, e.g., /dev/mem, > > which is a bad thing. > > Yeah, I forgot to type the "-type f" in the example I sent to the > list. Mea hasty. I did use that switch in my tests however. Even with -f, you might end up reading stuff out of /proc. I suppose that should be okay, but in order to limit the problem to disk I/O only, try this: while (1) { find -x /usr -type f -exec cat {} \; >/dev/null } That way you're only catting files under /usr. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message