Date: Mon, 8 Jul 2002 13:57:10 -0600 From: "Kenneth D. Merry" <ken@kdm.org> To: Dave Hayes <dave@jetcafe.org> Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Random hangs on (at least) SCSI reads Message-ID: <20020708135710.A66775@panzer.kdm.org> In-Reply-To: <200207081952.g68Jqo069730@hokkshideh2.jetcafe.org>; from dave@jetcafe.org on Mon, Jul 08, 2002 at 12:52:45PM -0700 References: <200207081952.g68Jqo069730@hokkshideh2.jetcafe.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 08, 2002 at 12:52:45 -0700, Dave Hayes wrote: > Kenneth D Merry <ken@kdm.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020708135710.A66775>