Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#10946 closed Bug Report - General (fixed)

Combination Disk Scheduler improperly favors local drive

Reported by: ylee@… Owned by: cpinkham
Priority: minor Milestone: 0.27
Component: MythTV - Recording Version: 0.24.2
Severity: medium Keywords: disk scheduler combination weights
Cc: Ticket locked: no

Description

I have 16 filesystems in Storage Groups for recordings from my five physical tuners; one filesystem is local to the backend, and the others are remote and are mounted on the backend by CIFS. I wish to have all 16 filesystems treated equally when mythbackend chooses which one to use, with the only criteria being 1) free space and 2) whether the filesystem is being used already. If five recordings begin at once the backend should select the five filesystems with the most free space. To achieve this, I chose the Combination disk scheduler (In the above scenario Balanced Free Space puts all five recordings on the single filesystem with the most free space), and manually inserted SGweightLocalStarting = 0 to have the backend treat local and remote filesystems equally.

When I start a single recording, the disk scheduler still favors the local filesystem even if a remote one has more free space and the calculated weights for all 16 filesystems are equal. (See the attached mythbackend log extract with -v none,schedule,file.) My experience matches Jon Larson's report from 2008, back when Combination was the only available setting.

Attachments (2)

mythbackendextract.log (13.4 KB ) - added by ylee@… 13 years ago.
mythbackend.log extract with -v none,file,record
patch-10946.diff (788 bytes ) - added by ylee@… 13 years ago.
Patch for 0.25. It alters the balanced I/O disk scheduler to use absolute free space as a tiebreaker if, and only if, weights are equal.

Download all attachments as: .zip

Change History (5)

by ylee@…, 13 years ago

Attachment: mythbackendextract.log added

mythbackend.log extract with -v none,file,record

comment:1 by danielk, 13 years ago

Owner: changed from danielk to cpinkham
Status: newassigned

by ylee@…, 13 years ago

Attachment: patch-10946.diff added

Patch for 0.25. It alters the balanced I/O disk scheduler to use absolute free space as a tiebreaker if, and only if, weights are equal.

comment:2 by Yeechang Lee <ylee@…>, 12 years ago

Resolution: fixed
Status: assignedclosed

In 8876503c53e612c2663578b2a7750333d9dca208/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:3 by paulh, 12 years ago

Milestone: unknown0.27
Note: See TracTickets for help on using tickets.