Opened 6 years ago

Closed 5 years ago

Last modified 5 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


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@… 6 years ago.
mythbackend.log extract with -v none,file,record
patch-10946.diff (788 bytes) - added by ylee@… 6 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)

Changed 6 years ago by ylee@…

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

comment:1 Changed 6 years ago by danielk

  • Owner changed from danielk to cpinkham
  • Status changed from new to assigned

Changed 6 years ago by ylee@…

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 Changed 5 years ago by Yeechang Lee <ylee@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 8876503c53e612c2663578b2a7750333d9dca208/mythtv:

Allow the Disk I/O Storage Group scheduler to fallback to free space

The "Balanced Disk I/O" Storage Group scheduler was indeterminate when
the weights of two filesystems were equal. This commit makes that
decision more determinate by allowing the scheduler to fall back to using
the amount of free space on the filesystems to make the decision when
two filesystems have the same weight.

Closes #10946.

Signed-off-by: Chris Pinkham <cpinkham@…>

comment:3 Changed 5 years ago by paulh

  • Milestone changed from unknown to 0.27

Add Comment

Modify Ticket

as closed The owner will remain cpinkham.
The resolution will be deleted. Next status will be 'new'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.