]> git.parisson.com Git - yomguy-tools.git/commitdiff
update cloning
authoryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Sat, 4 Dec 2010 00:06:55 +0000 (00:06 +0000)
committeryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Sat, 4 Dec 2010 00:06:55 +0000 (00:06 +0000)
git-svn-id: http://svn.parisson.org/svn/tools/trunk@127 457c0346-1240-4656-8a5a-9edca8063506

tips/tips.html
tips/tips.txt

index 29ff2ee319466831cab6eacf41a5c0fc8b0f7c8b..67e77c82462586bb11ade75e90f0098a64d670c3 100644 (file)
@@ -1171,51 +1171,50 @@ home 10 Go XFS
 <pre class="literal-block">
 su
 mkdir /mnt/root
-mount /dev/sdb1 /mnt/root
-mount /dev/sdb2 /mnt/root/home
+mount /dev/sdb1 /mn
+mount /dev/sdb2 /mn
 
-rsync -a --delete --hard-links --one-file-system / /mnt/root/
-rsync -a --delete /home/ /mnt/root/home/
-rm -rf /mnt/root/home/telecaster/archives/*
-rm -rf /mnt/root/home/telecaster/trash/*
+rsync -a --delete -
+rsync -a --delete -
 sync
 
-umount /mnt/root/home
+umount /mnt/root/ho
 umount /mnt/root
 </pre>
-<p>Live Install ISO on USB Disk /dev/sdb BOOT
-Ghost on USB Disk /dev/sdc
-Destination SSD /dev/sda:</p>
+<p>Live Install ISO on USB Disk /dev/sdb BOOT</p>
+<p>Ghost on USB Disk /dev/sdc</p>
+<p>Destination SSD /dev/sda:</p>
 <pre class="literal-block">
 (AUTO)
+su
 mkdir /mnt/root
 mount /dev/sda1 /mnt/root
 mount /dev/sda2 /mnt/root/home
-rsync -a /media/disk/ /mnt/root/
-rsync -a /media/disk-1/ /mnt/root/home/
+mount /dev/sdc1 /mnt/ghost_root
+mount /dev/sdc2 /mnt/ghost_home
+rsync -a /mnt/ghost_root/ /mnt/root/
+rsync -a /mnt/ghost_home/ /mnt/root/home/
 sync
-umount  /media/disk/
-umount  /media/disk-1/
+umount  /mnt/ghost_root/
+umount  /mnt/ghost_home/
 mount -o bind /dev /mnt/root/dev
 mount -t proc none /mnt/root/proc
 chroot /mnt/root/
 ls /dev/disk/by-uuid
-
-(MANU)
-nano /etc/fstab
-(edit to get right UUID, save)
-
-(AUTO)
-grub install /dev/sda
+</pre>
+<dl class="docutils">
+<dt>(MANU)</dt>
+<dd>nano /etc/fstab
+(edit to get right UUID, save)</dd>
+<dt>(AUTO)</dt>
+<dd>grub install /dev/sda
 update-grub
 exit
 umount /mnt/root/proc
 umount /mnt/root/dev
 umount /mnt/root/home
 umount /mnt/root
-reboot
-</pre>
-<dl class="docutils">
+reboot</dd>
 <dt>OR ?::</dt>
 <dd><dl class="first docutils">
 <dt>grub-install /dev/sda</dt>
@@ -1224,7 +1223,7 @@ root (hd0,1)
 setup (hd0)</dd>
 </dl>
 <div class="system-message">
-<p class="system-message-title">System Message: WARNING/2 (<tt class="docutils">tips.txt</tt>, line 1013)</p>
+<p class="system-message-title">System Message: WARNING/2 (<tt class="docutils">tips.txt</tt>, line 1016)</p>
 Definition list ends without a blank line; unexpected unindent.</div>
 <p class="last">quit</p>
 </dd>
@@ -1410,11 +1409,20 @@ Xorg -config xorg.conf.new</p>
 <h1>SWAP (clean)</h1>
 <p>sudo swapoff -a &amp;&amp; sudo swapon -a</p>
 </div>
+<div class="section" id="jack">
+<h1>JACK</h1>
+<p>Jackd, performances and harddisks</p>
+<p>2010.11.30
+So you have your sample loading working in a separate thread to your realtime audio code and the interface i/o communication is also tucked away in it’s own thread. You have a lock free mechanism for communicating between all threads and still, sometimes – when loading data from disk jackd chucks your program off for blocking – usually during a live performance, and you have to fumble around restarting the audio server. What’s going on?</p>
+<p>Well, it turns out that when your hard drive goes to sleep, the spin up resulting from a disk access request (such as mid-performance sample loading) can cause the kernel to block, which causes jackd to panic and either stop entirely or detach your client. This is even with jackd running with the –nozombies switch, so it must be the watchdog thread at work.</p>
+<p>The solution is simply to prevent your drive spinning down when you are performing, by adding “hdparm -S 0 /dev/yourharddisk” to your live audio startup script. Thanks to ClaudiusMaximus for helping me fix this at Piksel – it’s been bothering me for ages.</p>
+<p>Categories : howto   slub</p>
+</div>
 </div>
 <div class="footer">
 <hr class="footer" />
 <a class="reference external" href="tips.txt">View document source</a>.
-Generated on: 2010-11-25 13:24 UTC.
+Generated on: 2010-12-04 00:06 UTC.
 Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
 
 </div>
index dacce4ab84d5e5ae8706be95ef9a4e4e13d4f941..587662e4f78b96d11164e4a95e27698c0ca6f474 100644 (file)
@@ -958,51 +958,54 @@ USB Disk on /dev/sdb::
    
 Master machine system /dev/sda to USB external Ghost /dev/sdb::
 
-    su
-    mkdir /mnt/root
-    mount /dev/sdb1 /mnt/root
-    mount /dev/sdb2 /mnt/root/home
-   
-    rsync -a --delete --hard-links --one-file-system / /mnt/root/
-    rsync -a --delete /home/ /mnt/root/home/
-    rm -rf /mnt/root/home/telecaster/archives/*
-    rm -rf /mnt/root/home/telecaster/trash/*
-    sync
-    
-    umount /mnt/root/home
-    umount /mnt/root
+ su
+ mkdir /mnt/root
+ mount /dev/sdb1 /mn
+ mount /dev/sdb2 /mn
+
+ rsync -a --delete -
+ rsync -a --delete -
+ sync
+
+ umount /mnt/root/ho
+ umount /mnt/root
 
 Live Install ISO on USB Disk /dev/sdb BOOT
+
 Ghost on USB Disk /dev/sdc
+
 Destination SSD /dev/sda::
 
-    (AUTO)
-    mkdir /mnt/root
-    mount /dev/sda1 /mnt/root
-    mount /dev/sda2 /mnt/root/home
-    rsync -a /media/disk/ /mnt/root/
-    rsync -a /media/disk-1/ /mnt/root/home/
-    sync
-    umount  /media/disk/
-    umount  /media/disk-1/
-    mount -o bind /dev /mnt/root/dev
-    mount -t proc none /mnt/root/proc
-    chroot /mnt/root/
-    ls /dev/disk/by-uuid
-   
-    (MANU)    
-    nano /etc/fstab
-    (edit to get right UUID, save)
-    
-    (AUTO)
-    grub install /dev/sda
-    update-grub
-    exit
-    umount /mnt/root/proc
-    umount /mnt/root/dev
-    umount /mnt/root/home 
-    umount /mnt/root
-    reboot
+ (AUTO)
+ su 
+ mkdir /mnt/root
+ mount /dev/sda1 /mnt/root
+ mount /dev/sda2 /mnt/root/home
+ mount /dev/sdc1 /mnt/ghost_root
+ mount /dev/sdc2 /mnt/ghost_home
+ rsync -a /mnt/ghost_root/ /mnt/root/
+ rsync -a /mnt/ghost_home/ /mnt/root/home/
+ sync
+ umount  /mnt/ghost_root/
+ umount  /mnt/ghost_home/  
+ mount -o bind /dev /mnt/root/dev
+ mount -t proc none /mnt/root/proc
+ chroot /mnt/root/
+ ls /dev/disk/by-uuid
+
+(MANU)    
+ nano /etc/fstab
+ (edit to get right UUID, save)
+
+(AUTO)
+ grub install /dev/sda
+ update-grub
+ exit
+ umount /mnt/root/proc
+ umount /mnt/root/dev
+ umount /mnt/root/home 
+ umount /mnt/root
+ reboot
 
 
 OR ?::
@@ -1218,4 +1221,17 @@ SWAP (clean)
 sudo swapoff -a && sudo swapon -a
 
 
+JACK
+=====
+
+Jackd, performances and harddisks
+
+2010.11.30
+So you have your sample loading working in a separate thread to your realtime audio code and the interface i/o communication is also tucked away in it’s own thread. You have a lock free mechanism for communicating between all threads and still, sometimes – when loading data from disk jackd chucks your program off for blocking – usually during a live performance, and you have to fumble around restarting the audio server. What’s going on?
+
+Well, it turns out that when your hard drive goes to sleep, the spin up resulting from a disk access request (such as mid-performance sample loading) can cause the kernel to block, which causes jackd to panic and either stop entirely or detach your client. This is even with jackd running with the –nozombies switch, so it must be the watchdog thread at work.
+
+The solution is simply to prevent your drive spinning down when you are performing, by adding “hdparm -S 0 /dev/yourharddisk” to your live audio startup script. Thanks to ClaudiusMaximus for helping me fix this at Piksel – it’s been bothering me for ages.
+
+Categories : howto   slub