RAID write performance is horrible. max_sectors_kb is set to the odd value of 127
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
RAID-5/6 write performance utterly sucks. Initially we were on RAID-6, since RAID write performance was really really poor I converted it to RAID-5. This only took around 9 days...
After I pointed out write performance was bad on the LIO mailing list (export it as iSCSI volume through LIO) that the write performance was horribly bad they stated I should have a look at /sys/block/
Since max_hw_sectors_kb has 127 as value as well I can't set it higher. All block devices used in the RAID set have their values set at 4096. I think the optimum value would be something like (D-P)*512/
Can't find much about it. Some guy reported his issues were gone once he upgraded the kernel to 3.3. Also saw this: http://
In any case, I'm quite shocked it hasn't been noticed/fixed. I get like 20-30MiB/s write sequential sustained (when doing over 10GB writes with dd for example, the first ~8G or so go fast due to buffers, once they're full performance crumbles down to utter shit) on a 8 disk RAID set. Individual disks do nearly 100MiB/s sequential each (even when they're all under load at the same time), CPU's are hardly loaded at all so it's not a checksumming thing.
1) 12.04 LTS server 64-bit (upgraded from 8.04 -> 10.04 -> 11.?? (had issues with mvsas controllers - they're replaced (LSI) now, not that this version helped it :)) -> 12.04)
2) 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
3) At least 200-300MiB/s write performance sustained (sequential oc). Note the at least :).
4) Crappy performance like 20-30MiB/s sustained sequential.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.2.0-26-generic x86_64
AlsaDevices:
total 0
crw-rw---T 1 root audio 116, 1 Jul 8 14:29 seq
crw-rw---T 1 root audio 116, 33 Jul 8 14:29 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Tue Jul 31 10:30:29 2012
HibernationDevice: RESUME=
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
IwConfig:
lo no wireless extensions.
eth1 no wireless extensions.
eth0 no wireless extensions.
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0557:2221 ATEN International Co., Ltd
MachineType: Supermicro X8SIL
PciMultimedia:
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.79
RfKill: Error: [Errno 2] No such file or directory
SourcePackage: linux
UpgradeStatus: Upgraded to precise on 2012-07-06 (24 days ago)
dmi.bios.date: 02/25/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.0c
dmi.board.
dmi.board.name: X8SIL
dmi.board.vendor: Supermicro
dmi.board.version: 0123456789
dmi.chassis.
dmi.chassis.type: 24
dmi.chassis.vendor: Supermicro
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: X8SIL
dmi.product.
dmi.sys.vendor: Supermicro
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
After talking in #ubuntu-server I also got a report from a guy that he has the same issue in 10.04 with the 2.6.32 kernel. Apparently has been around for a while thus.