Gentoo Archives: gentoo-server

From: David Miller <david3d@×××××.com>
To: gentoo-server@l.g.o
Subject: [gentoo-server] It's amazing what switching the IO scheduler can do.
Date: Fri, 05 Aug 2005 20:44:57
Message-Id: 9fd973b6050805134310a1f078@mail.gmail.com
1 I just had a break through with my main file server here in it's
2 ability to handle a high load with lots of read/writes going on
3 simultaneously so I figured I would pass this on in hopes that it will
4 help someone with a similar problem.
5
6 The setup:
7 Dual Xeon 2.8ghz, 2gb ram, LSI 320 pci-x dual channel scsi
8 controller with about 18tb of SATA over SCSI attached storage all in
9 RAID 5. All storage is managed using LVM2.
10
11 The workload:
12 This server does alot more reads than writes and is almost always
13 serving files over the network (copper Gigabit) at rates of 100 to 110
14 meg/s. This is done using samba as the client PC's are windows based.
15
16 The problem:
17 When server was serving files at high rates any writes would drive
18 up IO waits and server load to the point that samba would become
19 unhappy. In some cases the entire SCSI io system in the kernel would
20 become unhappy causing scsi bus resets, file systems to unmount etc.
21 Luckily this never resulted in any data loss or corruption but it has
22 stopped some of the processing that we were doing on the files.
23
24 My solution:
25 The solution seems to be CFQ IO scheduling. I had previously used
26 Deadline and the Anticipatory scheduler but neither of these solved
27 the problem. CFQ seems to keep everything happy even under a mixed
28 I/O load of multiple writes (35mb/s or so) and multiple I/O reads
29 (70mb/s or so). The server load is still high in the 12 to 14 range
30 but the server and it's services seem to be much more stable.
31
32 So what type of IO Scheduler have you found to handle your typical
33 load the best? Are there any other IO Schedulers that haven't made it
34 to the mainstream source trees yet that are worth a look? How long
35 until we have a IO scheduler that can adjust it self to deal with
36 various loads dynamically...I'm sure this is an ongoing area of
37 research.
38
39 -David
40
41 --
42 gentoo-server@g.o mailing list

Replies