[SM-Commit] GIT changes to master grimoire by Juuso Alasuutari (9268e457d5d9b30424e60891402b865001e32c77)

Juuso Alasuutari scm at sourcemage.org
Wed Apr 18 13:02:45 EDT 2007


GIT changes to master grimoire by Juuso Alasuutari <iuso at sourcemage.org>:

 ChangeLog                |    4 ++++
 utils/rtirq/BUILD        |    1 +
 utils/rtirq/DEPENDS      |    1 +
 utils/rtirq/DETAILS      |   21 +++++++++++++++++++++
 utils/rtirq/HISTORY      |    2 ++
 utils/rtirq/INSTALL      |    4 ++++
 utils/rtirq/init.d/rtirq |   26 ++++++++++++++++++++++++++
 7 files changed, 59 insertions(+)

New commits:
commit 09f968562867bcb366f65ac1c81f23a1b79e9588
Author: Juuso Alasuutari <iuso at sourcemage.org>
Commit: Juuso Alasuutari <iuso at sourcemage.org>

    rtirq: new spell, script for raising priority of audio devices' irq
    threads

diff --git a/ChangeLog b/ChangeLog
index c72deac..7ef0c60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-18 Juuso Alasuutari <iuso at sourcemage.org>
+	* utils/rtirq: New spell, script that raises audio devices' IRQ
+	  thread priorities.
+
 2007-04-17 Eric Sandall <sandalle at sourcemage.org>
 	* http/nvu: Added Mozilla-based web page editor
 
diff --git a/utils/rtirq/BUILD b/utils/rtirq/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/utils/rtirq/BUILD
@@ -0,0 +1 @@
+true
diff --git a/utils/rtirq/DEPENDS b/utils/rtirq/DEPENDS
new file mode 100755
index 0000000..0527dd3
--- /dev/null
+++ b/utils/rtirq/DEPENDS
@@ -0,0 +1 @@
+depends  schedutils
diff --git a/utils/rtirq/DETAILS b/utils/rtirq/DETAILS
new file mode 100755
index 0000000..3f97ece
--- /dev/null
+++ b/utils/rtirq/DETAILS
@@ -0,0 +1,21 @@
+           SPELL=rtirq
+         VERSION=20070101
+          SOURCE=$SPELL-$VERSION.tar.gz
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+   SOURCE_URL[0]=http://www.rncbc.org/jack/$SOURCE
+     SOURCE_HASH=sha512:295cc04a708f3a5e2a3fbf0b7355bd8829134107fc34ddc69d01cfe9e9026209b449712b9383f8cee0ea83931817347d57ba451a9e41a531f04ce5762dc17c81
+        WEB_SITE=http://www.rncbc.org/jack/
+         ENTERED=20070418
+      LICENSE[0]=GPL
+        KEYWORDS="utils"
+           SHORT="Rtirq raises the priority of audio devices' IRQ threads."
+cat << EOF
+The rtirq script is a bash script written by Rui Nuno Capela which works
+in conjunction with the realtime kernel patch by Ingo Molnar. The script
+takes advantage of the fact that realtime kernels use threads for IRQs
+management, and as such these threads (like any other thread running on
+your system) can be given maximum priority in an effort to minimize the
+latency of audio peripherals. The script identifies the audio devices
+present on the machine and raises the priority of the threads that handle
+the IRQs of such devices.
+EOF
diff --git a/utils/rtirq/HISTORY b/utils/rtirq/HISTORY
new file mode 100644
index 0000000..f9cd493
--- /dev/null
+++ b/utils/rtirq/HISTORY
@@ -0,0 +1,2 @@
+2007-04-18 Juuso Alasuutari <iuso at sourcemage.org>
+	* DETAILS, DEPENDS, BUILD, INSTALL, init.d/rtirq: Created spell.
diff --git a/utils/rtirq/INSTALL b/utils/rtirq/INSTALL
new file mode 100755
index 0000000..bc4a0a1
--- /dev/null
+++ b/utils/rtirq/INSTALL
@@ -0,0 +1,4 @@
+cp                   "$SOURCE_DIRECTORY/rtirq.sh"         \
+                     "$INSTALL_ROOT/usr/bin/"             &&
+install_config_file  "$SOURCE_DIRECTORY/rtirq.conf"       \
+                     "$INSTALL_ROOT/etc/sysconfig/rtirq"
diff --git a/utils/rtirq/init.d/rtirq b/utils/rtirq/init.d/rtirq
new file mode 100644
index 0000000..3571f20
--- /dev/null
+++ b/utils/rtirq/init.d/rtirq
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+RUNLEVEL=3
+NEEDS=
+PROGRAM=/usr/bin/rtirq.sh
+
+.  /etc/init.d/smgl_init
+
+start()
+{
+  echo  "Modifying IRQ thread priorities..."
+  $PROGRAM  start
+  evaluate_retval
+}
+
+stop()
+{
+  echo "Stopping script..."
+  $PROGRAM  stop
+  evaluate_retval
+}
+
+status()
+{
+  $PROGRAM  status
+}



More information about the SM-Commit mailing list