Bug 153123 - [rc] [patch] add gsched rc file to automatically insert gsched on top of storage device(s)
Summary: [rc] [patch] add gsched rc file to automatically insert gsched on top of stor...
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-rc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 15:40 UTC by David Naylor
Modified: 2014-12-16 14:28 UTC (History)
1 user (show)

See Also:


Attachments
file.txt (1.89 KB, text/plain)
2010-12-13 15:40 UTC, David Naylor
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Naylor 2010-12-13 15:40:06 UTC
Add a gsched rc file to automatically insert gsched on top of a storage device(s).  The rc file inserts the scheduler on startup and removes the scheduler on shutdown.  It could also be integrated into devd.  

I have used this without incident with the following in my rc.conf:
gsched_enable="YES"
gsched_devs="ad4 ad8"

There are two issues when using the following for devd:
notify 100 {
	match "system"		"DEVFS";
	match "subsystem"	"CDEV";
	match "type"		"CREATE";
	match "cdev"		"(ad|ada|cd|da)[0-9]+";
	action "/etc/rc.d/gsched start $cdev";
};

1) a scheduler insert is attempted twice on startup (devd appears to run the script when it is first run)
2) using the above to insert a scheduler on a memory stick causes KDE (via hal, I assume) to loose the labels.

Fix: Patch attached with submission follows:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-12-13 18:30:58 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to maintainer(s).
Comment 2 David Naylor freebsd_committer freebsd_triage 2014-12-16 14:28:03 UTC
No interest in this change (no obvious benefit)