~hristoast/hristoast

c2200e8727fa9cf45ae3c3724db8402e56755903 — Hristos N. Triantafillou 4 months ago 6d1f553
PDS out, TKG/MuQSS in
2 files changed, 16 insertions(+), 16 deletions(-)

M site/xbps.html
R site/xbps/{linux-pds.html => linux-tkg.html}
M site/xbps.html => site/xbps.html +1 -1
@@ 21,5 21,5 @@
<p><a href="repo">Browse the repository</a>, packages are detailed below.</p>

<ul>
  <li><a href="/xbps/linux-pds/"><code>linux-pds</code></a>: The Void Linux equivalent of <a href="https://aur.archlinux.org/packages/linux-pds/">the AUR's <code>linux-pds</code></a>, including variants that sport CPU-specific optimizations.</li>
  <li><a href="/xbps/linux-tkg/"><code>linux-tkg</code></a>: Linux kernel with <a href="https://github.com/Frogging-Family/linux-tkg/">TKG patches</a> including the MuQSS scheduler, fsync, and more.</li>
</ul>

R site/xbps/linux-pds.html => site/xbps/linux-tkg.html +15 -15
@@ 1,56 1,56 @@
<h1 id="title">linux-pds</h1>
<h1 id="title">linux-tkg</h1>

<div id="toc"></div>

<p>
  Inspired by <a href="https://aur.archlinux.org/packages/linux-pds/">the AUR's <code>linux-pds</code></a> package. Three variants are available, along with <code>-header</code> packages:
  <a href="https://github.com/hristoast/void-packages/tree/linux-tkg/srcpkgs/linux5.9-tkg-muqss/patches">TKG patches</a> taken from <a href="https://github.com/Frogging-Family/linux-tkg/tree/06bf39a7686bec4a48fae9a819b262f7c00dace6">here</a>, <a href="https://github.com/hristoast/void-packages/tree/linux-tkg/srcpkgs/linux5.9-tkg-muqss-zen/patches">CPU optimization patch</a> from <a href="https://github.com/graysky2/kernel_gcc_patch/tree/98c0a7fbcd0721b4e95e9305ed13b6000ee26e62">here</a>. Two variants are available, along with <code>-header</code> packages:
</p>

<ul>
  <li><code>linux5.9-pds</code>: With generic CPU optimizations.</li>
  <li><code>linux5.9-pds-zen</code>: With AMD Zen family CPU optimizations.</li>
  <li><code>linux5.9-tkg-muqss</code>: With the MuQSS I/O scheduler and generic CPU optimizations.</li>
  <li><code>linux5.9-tkg-muqss-zen</code>: With the MuQSS I/O scheduler and AMD Zen family CPU optimizations.</li>
</ul>

<p>Templates are available on <a href="https://github.com/hristoast/void-packages/tree/linux-pds">the <code>linux-pds</code> branch of my void-packages fork</a>.</p>
<p>Templates are available on <a href="https://github.com/hristoast/void-packages/tree/linux-tkg">the <code>linux-tkg</code> branch of my void-packages fork</a>.</p>

<h3>How To Install From My Repo</h3>

<ol>
  <li><a href="/xbps/#how-to-use">Add my repo</a>.</li>
  <li>Update your package index: <code>xbps-install -S</code></li>
  <li>Install the package: <code>xbps-install linux-pds # or -zen as desired</code></li>
  <li>Install the package: <code>xbps-install linux-tkg-muqss # or -zen as desired</code></li>
  <li>Reboot! Note that the kernel may be listed below the stock Void kernel and you may need to manually select it in grub.</li>
</ol>

<h3>How To Build From My Template</h3>

<ol>
  <li>Clone <a href="https://github.com/hristoast/void-packages/tree/linux-pds">my fork of void-packages</a>, or add it as a remote to an existing clone. Ensure you are on the <code>linux-pds</code> branch.</li>
  <li>Clone <a href="https://github.com/hristoast/void-packages/tree/linux-tkg">my fork of void-packages</a>, or add it as a remote to an existing clone. Ensure you are on the <code>linux-tkg</code> branch.</li>
  <li><a href="https://github.com/void-linux/void-packages/#quick-start">Create</a> or <a href="https://github.com/void-linux/void-packages/#updating-masterdir">update</a> your xbps-src bootstrap env as needed.</li>
  <li>Build the packages (this takes a long time): <code>./xbps-src pkg linux-pds # or -zen as desired</code></li>
  <li>Install from your local repo: <code>xbps-install --repository=./hostdir/binpkgs/linux-pds linux-pds # or -zen as desired</code></li>
  <li>Build the packages (this takes a long time): <code>./xbps-src pkg linux-tkg # or -zen as desired</code></li>
  <li>Install from your local repo: <code>xbps-install --repository=./hostdir/binpkgs/linux-tkg linux-tkg-muqss # or -zen as desired</code></li>
  <li>Reboot! Note that the kernel may be listed below the stock Void kernel and you may need to manually select it in grub.</li>
</ol>

<h3>Tips</h3>

<h4>Boot Into PDS</h4>
<h4>Boot Into This Kernel</h4>

<p>You can find the index for each of your installed kernels like this:</p>

<pre><code class="language-sh">grep 'menuentry ' /boot/grub/grub.cfg | cut -f 2 -d "'" | nl -v -1
    -1	Void GNU/Linux
     0	Void GNU/Linux, with Linux 5.9.3_1
     1	Void GNU/Linux, with Linux 5.9.3_1 (recovery mode)
     2	Void GNU/Linux, with Linux 5.9.3-pds_1
     3	Void GNU/Linux, with Linux 5.9.3-pds_1 (recovery mode)</code></pre>
     0	Void GNU/Linux, with Linux 5.9.12_2
     1	Void GNU/Linux, with Linux 5.9.12_2 (recovery mode)
     2	Void GNU/Linux, with Linux 5.9.12-tkg-muqss_1
     3	Void GNU/Linux, with Linux 5.9.12-tkg-muqss_1 (recovery mode)</code></pre>

<p>
  In this example, you can set your <code>GRUB_DEFAULT</code> value in <code>/etc/default/grub</code> to <code>"1>2"</code> to boot into the PDS kernel by default (be sure to run <code>update-grub</code> after making this change to apply it).
</p>

<p>
  If you've got both an official <code>linuxN.N</code> package as well as a PDS kernel of the corresponding version, in most cases <code>"1>2"</code> should enable you to boot into the PDS kernel.
  If you've got both an official <code>linuxN.N</code> package as well as a TKG kernel of the corresponding version, in most cases <code>"1>2"</code> should enable you to boot into the PDS kernel.
</p>

<p>