Yuratuhl wrote:
Ubuntu last update is turboAIDS, but the one right before that is classy.
Oh and suggestion instead of using generic kernels:
Grab the latest 2.6.39 source and pre-req:
Code:
sudo apt-get update
sudo apt-get install build-essential fakeroot kernel-package kernel-wedge libncurses5-dev libqt3-mt-dev
wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.39-rc7.tar.bz2
The latest snapshot patch:
Code:
wget http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.39-rc7-git5.bz2
Extract and cd;
The ubuntu patches:
Code:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/0001-base-packaging.patch
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/0003-debian-changelog.patch
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/0004-default-configs.patch
Clean patches (only the ubuntu ones); apply patches:
Code:
scripts/cleanfile 0001-base-packaging.patch
scripts/cleanfile 0002-debian-changelog.patch
scripts/cleanfile 0003-default-configs.patch
patch -p1 < patchname.patch
Prepare for build:
Code:
fakeroot
debian/rules clean
export CFLAGS="-march=native -O2 -pipe -mtune=native"
# 'native' sets the appropriate cflags for your processor, no need to specify core2 or corei7 or whatevs
export CXXFLAGS="$CFLAGS"
cp /boot/name-of-your-current-config.config .config
# copy your current (ubuntu generic) config to .config, speeds things up a bit
make oldconfig
make menuconfig
# or make xconfig
Configure it as you see fit,
enable pre-emptive desktop (low-latency) mode in general settings and set the frequency timer to 1000hz
In processor settings, select core2/newer xeon (if you have a core 2/quad/i3/i5/i7) or AMD
Select 'ondemand' as the default CPU governor, the default in the ubuntu config is performance
Select CFQ as the I/O scheduler and enable the CGROUPS options. That would be the famous "200 lines patch that does wonders"
Enable HPET and RTC in drivers->character devices
Add or remove whatever the fuck else you want or need that you know of in your hardware. The ubuntu default config is fine but I personally like slimmer configs
Save and exit
Build:
Code:
CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` make-kpkg --initrd --append-to-version=-preempt kernel_image kernel_headers
# add fakeroot after concurrency in that command if you lost it
Go out and buy a sandwich and beer in Switzerland, come back and
Code:
cd ..
mkdir linux-2.6.39-rc7-preempt
mv *.deb linux-2.6.39-rc7-preempt
cd linux-2.6.39-rc7-preempt
sudo dpkg -i *.deb
Check your /boot/grub/grub.cfg to make sure it's correct;
Reboot and check your dmesg
Start a youtube 720p video, a 720p video in VLC, and make -j64 something, jizz in your pants.
edit if you're wondering "how low can you go" in the latency department for sound and etc:
Code:
mbouffard@phy:~$ jack-info
SSE2 detected
system:playback_1
port latency = 1.300000 ms
total latency = 1.300000 ms
system:playback_2
port latency = 1.300000 ms
total latency = 1.300000 ms
buffer-size: 64 frames
samplerate: 96000