Date: Thu, 5 Jun 2008 16:17:53 -0500 From: Kirk Strauser <kirk@strauser.com> To: Kris Kennaway <kris@freebsd.org> Cc: freebsd-questions@freebsd.org Subject: Re: Poor read() performance, and I can't profile it Message-ID: <200806051617.54400.kirk@strauser.com> In-Reply-To: <4848523E.2010604@FreeBSD.org> References: <200806051508.29424.kirk@strauser.com> <4848523E.2010604@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 05 June 2008, Kris Kennaway wrote: > Kirk Strauser wrote: > ktrace(1) and check for the buffer size in use. It is probably too > small. > > Kris It seems to be doing a lot of read()s with 4096-byte buffers. Is that what you mean? It's also doing a lot of lseek()s to what is likely the current position anyway (example: seek to 0x00, read 16 bytes, seek to 0x10, etc.). Would that make a difference, or should that be a NOP? -- Kirk Strauser
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806051617.54400.kirk>