From: George Wang <gwang@litespeedtech.com>
To: linux-kernel@vger.kernel.org
Subject: mmap() call blocks on Disk I/O?
Date: Fri, 01 May 2009 16:05:38 -0400 [thread overview]
Message-ID: <49FB5612.3090409@litespeedtech.com> (raw)
Hi,
I am trouble shooting some disk I/O performance issues and have an
interesting finding.
The project is to improve event-driven web server performance in disk
bound situation by avoiding blocking on disk I/O.
We use separate threads to do disk I/O tasks, so we expect the main
thread wont be badly affected by disk I/O, but it still is.
I use strace to locate the sys-calls that block the main server thread
when server is doing disk I/O intensive tasks.
The finding is mmap() calls. we map files in 128KB memory blocks in the
main thread.
When disk I/O is low, mmap() usually takes 0.00002 second to complete,
when the disk getting busy, it takes about 0.01 second to
complete, if there are multiple disk I/O tasks making the disk seeks
back and forth. mmap could take 0.1 second and up, the worst number we
get is 1.4 seconds.
Noticed that there is a patch to improve the multi-thread mmap()
performance, it should not be the same issue as we have met, I believe.
Just want to report this issue and hope it is helpful to improve the
kernel.
OpenSuse 11.0 with kernel 2.6.22.19-0.2-default, dual Intel Xeon 5410
(8-cores) with 8GB memory.
Thanks,
George Wang
reply other threads:[~2009-05-01 20:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49FB5612.3090409@litespeedtech.com \
--to=gwang@litespeedtech.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.