linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid5 performance question
@ 2006-03-06 11:46 Raz Ben-Jehuda(caro)
  2006-03-06 11:59 ` Gordon Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 44+ messages in thread
From: Raz Ben-Jehuda(caro) @ 2006-03-06 11:46 UTC (permalink / raw)
  To: Linux RAID Mailing List; +Cc: Neil Brown

Neil Hello .
I have a performance question.

I am using raid5 stripe size 1024K over 4 disks.
I am benchmarking it with an asynchronous tester.
This tester submits 100 IOs of size of 1024 K --> as the stripe size.
It reads raw io from the device, no file system is involved.

I am making the following comparsion:

1. Reading 4 disks at the same time using 1 MB buffer in random manner.
2. Reading 1 raid5 device using 1MB buffer in random manner.

I am getting terrible results in scenario 2. if scenario 1 gives 120 MB/s from
4 disks, the raid5 device gives 35 MB/s .
it is like i am reading a single disk , but by looking at iostat i can
see that all
disks are active but with low throughput.

Any idea ?

Thank you.
--
Raz

^ permalink raw reply	[flat|nested] 44+ messages in thread
* Raid5 performance question
@ 2007-04-16 17:42 mickg
  0 siblings, 0 replies; 44+ messages in thread
From: mickg @ 2007-04-16 17:42 UTC (permalink / raw)
  To: linux-raid

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I have a raid5 array /dev/md1, being used as the pv of an LVM Volume Group.

I have a very peculiar problem with the array:

Writes to it happen at 40MB/sec or so.

But *reads* from it happen at 10MB/sec.

This, given how raid5 works, is a bit weird.


 dd if=/dev/md1 of=/disks/raid_backup/test_speed bs=10M
	gives 21MB/sec, which is, while not good, not bad for dd.

while:
 dd if=/dev/mapper/system-raid_lvm of=/disks/raid_backup/test_speed bs=10M
4+0 records in
3+0 records out
31457280 bytes (31 MB) copied, 8.75426 seconds, 3.6 MB/s
which is obviously bogus.


dd if=/dev/sdg of=/disks/raid_lvm/test.speed bs=10M
24+0 records in
23+0 records out
241172480 bytes (241 MB) copied, 11.6211 seconds, 20.8 MB/s
So, writes to the system VG happen at least 4xfaster than reads.

This to me seems insane.


Note that:
 pvs
  PV         VG     Fmt  Attr PSize PFree
  /dev/md0   backup lvm2 a-   1.46T 159.20G
  /dev/md1   system lvm2 a-   1.82T  63.04G

/disks/raid_backup/ is actually the backup VG.
/disks/raid_lvm/ is actually the system VG.

Any ideas on why this happens would be very appreciated.



mickg@mickg.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)

iD8DBQFGI7WOoRaxTYdM/EwRAqWnAKDadOnzfPuzzoMILAsaddWwdK2XIgCgmGzm
dUlR7OPxasuKa1JwtUoR60E=
=8Vtw
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2007-04-16 17:42 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-06 11:46 raid5 performance question Raz Ben-Jehuda(caro)
2006-03-06 11:59 ` Gordon Henderson
2006-03-06 12:56   ` Raz Ben-Jehuda(caro)
2006-03-13 22:36     ` raid5 hang on get_active_stripe Patrik Jonsson
2006-03-13 23:17       ` Neil Brown
2006-05-11 15:13         ` dean gaudet
2006-05-17 18:41           ` dean gaudet
2006-05-19  3:46             ` Neil Brown
2006-05-23  2:33             ` Neil Brown
2006-05-26 16:07               ` dean gaudet
2006-05-26 23:55                 ` Neil Brown
2006-05-27  0:28                   ` dean gaudet
2006-05-27 15:42                   ` dean gaudet
2006-05-28 12:04                     ` Neil Brown
2006-05-29 20:56                       ` dean gaudet
2006-05-29 23:51                         ` Neil Brown
2006-05-31  0:15                           ` dean gaudet
2006-05-31  0:46                             ` Neil Brown
2006-05-31  1:03                               ` dean gaudet
2006-05-31  1:38                                 ` Neil Brown
2006-05-31  1:46                                   ` dean gaudet
2006-06-01  2:51                                     ` Neil Brown
2006-06-02  7:10                                       ` dean gaudet
2006-06-02  7:27                                         ` Neil Brown
2006-06-10 19:49                                           ` dean gaudet
2006-06-13 18:53                                           ` Bill Davidsen
2006-06-13 19:05                                             ` dean gaudet
2006-06-13 23:13                                             ` Neil Brown
2006-10-07 23:25                                               ` Chris Allen
2006-10-09 11:03                                                 ` Chris Allen
2006-10-09 23:06                                                   ` Neil Brown
2006-10-09 23:21                                                     ` Chris Allen
2006-10-10  0:08                                                       ` Neil Brown
2006-10-10 10:27                                                         ` Bas van Schaik
2006-11-14 10:28                                                         ` Chris Allen
2006-11-15 20:39                                                           ` dean gaudet
2006-03-06 22:17 ` raid5 performance question Guy
2006-03-06 22:24 ` Neil Brown
2006-03-07  8:40   ` Raz Ben-Jehuda(caro)
2006-03-07 23:03     ` Neil Brown
2006-03-22 13:22       ` Bill Davidsen
2006-03-24  4:40         ` Neil Brown
2006-03-08  6:45   ` thunder7
  -- strict thread matches above, loose matches on Subject: below --
2007-04-16 17:42 Raid5 " mickg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).