Bug 33309

Summary: [performance] Elevator starvation (regression relative to recent 2.2)
Product: [Retired] Red Hat Linux Reporter: Ed McKenzie <eem12>
Component: kernelAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: medium    
Version: 7.1CC: dnielsen
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-03 13:12:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ed McKenzie 2001-03-27 00:14:34 UTC
Large dd operations under 2.4.* cause the system to become almost totally
unusable (e.g. netscape takes several minutes to load, ls -lR is extremely
slow, etc.) I don't think this is a VM issue, as vmstat shows minimal swap
activity.

Disk starvation is not absolute, as it was prior to 2.2.16, but it's pretty
bad, and this is an easy DoS that works as any user. I'd consider this a
security issue since it's really difficult for root to intervene locally or
remotely; of course, on 2.4, dd can also create really big files.

Comment 1 Stephen Tweedie 2001-03-27 17:29:14 UTC
It's not an elevator bug: I'm pretty sure that this is a VM balancing bug, and
yes, it's easily reproducible and obviously needs fixing.

Comment 2 Ed McKenzie 2001-04-07 20:56:33 UTC
2.4.2-0.1.49 is *much* better overall, but I can still effectively starve the
entire system of disk access with a large dd operation. I can't do this on 2.2;
even with a dd running, ls -lR in the same directory runs, albeit in spurts. The
same test under 2.4 results in ls not doing very much.

Comment 3 Ed McKenzie 2001-05-20 19:05:57 UTC
Followup: it's not just an IDE issue. I also see disk starvation under 2.4.2-2
on an all-SCSI setup.

Comment 4 Arjan van de Ven 2001-05-20 19:14:58 UTC
2 questions: 
1) could you tru 2.4.3-5 from rawhide
2) could you use elvtune to change the defaults of the elevator ?
   (or use a recent snapshot of powertweak (www.powertweak.org) for that)

Comment 5 Ed McKenzie 2001-05-21 06:12:00 UTC
2.4.3-5 seems no different wrt the elevator, and it seems to have other issues
as well.

What are suggested fair, low-latency values for elvtune?  I couldn't improve
things beyond "slightly less starvation..."

Comment 6 Ed McKenzie 2001-06-11 18:10:11 UTC
Upgrading to 2.4.5-0.2.9 didn't improve I/O fairness.

Comment 7 Ed McKenzie 2001-07-01 06:21:36 UTC
2.4.3-12 also appears to be broken.

Comment 8 Ed McKenzie 2001-07-03 13:12:13 UTC
2.4.5-10 is also broken wrt dd usage.  However, interactivity is somewhat 
better when operating on large tarballs than earlier RH kernels.

Comment 9 Ed McKenzie 2001-09-01 15:09:36 UTC
Performance seems to be subjectively better in recent (2.4.7, 2.4.8-ac) kernels.

Comment 10 Need Real Name 2001-09-14 20:11:33 UTC
*** Bug 42355 has been marked as a duplicate of this bug. ***