From: Jan Oravec <jan.oravec@6com.sk>
To: linux-kernel@vger.kernel.org
Subject: LSI 53c1030 (Fusion MPT) performance with O_SYNC
Date: Thu, 29 Jul 2004 11:56:48 +0200 [thread overview]
Message-ID: <20040729095648.GA27925@omega.6com.net> (raw)
Hi,
I have got a new dual-Opteron server based on Tyan S2880 motherboard with
LSI53C1030 U320 controller onboard - there are 15kRPM Fujitsu disks.
I've noticed poor performance with MySQL/InnoDB when compared to another
S2880-based box with IDE disks.
I've tracked it to this:
Let's have this code (notice the O_SYNC) and enough large test file.
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
int main(int argc, void **argv)
{
char buffer[64];
int fd, i;
fd=open(argv[1], O_WRONLY|O_SYNC);
lseek(fd, 0, SEEK_SET);
for(i=0; i<10000; i++)
write(fd, buffer, 64);
return 0;
}
The results are:
LSI53C1030:
$ time ./a.out testfile
real 0m4.218s
user 0m0.002s
sys 0m0.219s
IDE:
$ time ./a.out testfile
real 0m1.767s
user 0m0.002s
sys 0m0.356s
Changing size of written amount of data to 4096 the time ratio between
LSI53C1030 and IDE is around 1:1.
Both boxes are running vanilla 2.6.7 kernel.
Any help appreciated,
Jan
PS: please CC, I am not on the list.
next reply other threads:[~2004-07-29 9:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-29 9:56 Jan Oravec [this message]
2004-07-29 10:04 ` Arjan van de Ven
2004-07-29 11:12 ` Jan Oravec
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=20040729095648.GA27925@omega.6com.net \
--to=jan.oravec@6com.sk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®