Hi all
I migrated one of my server from kernel 2.6.18 to the latest 2.6.22
and I experienced lower disk performance for processes that open file
with the O_DIRECT flag.
I did a very simple test program that opens two files with O_DIRECT
flag and reads the files to end. I monitored the time spent to read
the files and I have ~ 40% of difference between 2.6.18 and 2.6.22.
For information, the files are stored on a XFS partition which is part
of a software raid-5 block device (the raid-5 is made with 3 SATA
drives).
Does that make sense to you gurus ? Of course, I didn't change the
configuration (task scheduler, HZ, default I/O scheduler, ...) between
the two kernels.
For information, the code of my test program is pasted below (I
snipped the #include part):
----------------------8<----------------------8<----------------------
#define BSIZE (512*512)
int main(int ac, char * av[])
{
int fd[2];
char* buffer;
if (ac != 3) {
printf("USAGE: %s <FILE-1> <FILE-2>\n", av[0]);
exit(EXIT_FAILURE);
}
if ((fd[0] = open(av[1], O_RDONLY|O_DIRECT)) == -1)
exit(EXIT_FAILURE);
if ((fd[1] = open(av[2], O_RDONLY|O_DIRECT)) == -1)
exit(EXIT_FAILURE);
if ((buffer = (char *)memalign(4096, BSIZE)) == 0)
exit(EXIT_FAILURE);
for (;;) {
if (read(fd[0], buffer, BSIZE) != BSIZE)
break;
if (read(fd[1], buffer, BSIZE) != BSIZE)
break;
}
close(fd[0]);
close(fd[1]);
free(buffer);
return EXIT_SUCCESS;
}
----------------------8<----------------------8<----------------------
Any help/hint would be appreciate.
-- R.C
-
| Arjan van de Ven | [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Tilman Schmidt | git guidance |
| Vu Pham | Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| David Miller | Re: Git and GCC |
| Mike | I don't want the .git directory next to my code. |
| Steffen Prohaska | merge vs rebase: Is visualization in gitk the only problem? |
| David Kastrup | What is the idea for bare repositories? |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Falk Brockerhoff | ftp-proxy and no route to host issue |
| Pieter Verberne | Remove escape characters from file |
| Chuck Lever | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Stefan Richter | Re: [GIT]: Networking |
| jamal | Re: [LARTC] ifb and ppp |
