Re: Kernel-rt issues solved, but configuring X still is a PITA
Hi Ralf, nvidia prop drivers for your card never will build with new rt-kernels. I see you compile customized kernels. I'd recommend trying 2.3.36.xxx and even 2.6.37-rcxx with preempt settings. They run here on a geriatric amd64x2 machine under lucid (10.04) ubuntustudio/kx mashing with proprietary nvidia drivers, full rt support. Only missing against rt-kernels is the possibility to adjust rtirq settings which as I see *possibly* *might* give *a* *little* benefit *only* for ffado/firewire devices. Nevertheless I hope someone will implemet this rtirq tweaking stuff into mainline kernels. Regards Gerhard Am 27.12.2010 22:37, schrieb Ralf: Hi :) I build a kernel-rt for an upgraded Ubuntu Studio 10.04 Lucid, testing a knack still to get an initrd, when building it by make-kpkg. This mail is on HTML to enable copy and paste. SOLVED I now can build an initrd for self build kernels. I now can start a kernel-rt from the repositories. NEW AND UNSOLVED ISSUE The monitor resolution for the GDM login menu is 'broken'. ### Preparing to build the kernel $ cd /usr/src $ ls linux -l lrwxrwxrwx 1 spinymouse src 19 2010-10-03 02:39 linux - linux-2.6.33.7-rt29 $ rm linux $ ln -s linux-2.6.33.7.2-rt30 linux $ wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.7.tar.bz2 http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.33.7.2-rt30.bz2 ### Extracting the sources and patching the kernel $ tar xjf linux-2.6.33.7.tar.bz2 $ rm linux-2.6.33.7.tar.bz2 $ mv linux-2.6.33.7 linux-2.6.33.7.2-rt30 $ cd linux $ bunzip2 ../patch-2.6.33.7.2-rt30.bz2 $ patch -p1 ../patch-2.6.33.7.2-rt30 $ rm ../patch-2.6.33.7.2-rt30 ### Editing a configuration $ uname -a Linux ubuntu 2.6.32-27-preempt #49-Ubuntu SMP PREEMPT Thu Dec 2 03:21:34 UTC 2010 x86_64 GNU/Linux $ cp /boot/config-$(uname -r) .config $ make oldconfig Pushing enter only. ### Disabling staging, without testing if it's needed to to disable it for building the current kernel $ gedit .config Editing CONFIG_STAGING=y to # CONFIG_STAGING is not set $ make oldconfig Nothing to do. ### Building the kernel $ make-kpkg clean $ export CONCURRENCY_LEVEL=2 $ make-kpkg --rootcmd fakeroot --initrd kernel-image kernel-headers kernel-source ### Unfortunately there wasn't enough free disk space when I first build the kernel. OT: Btw. is there a list of apps that can be removed from Ubuntu Studio, without getting issues? I e.g. don't need AppAmor, Firewalls etc. and especially I would like to get rid of PulseAudio. [End OT] ### After removing some old kernel stuff and the already new build image and headers, I build the kernel again, but I guess it would have been ok, if I just would have installed the image and headers, because only the unneeded source was missing. I also think, that not running 'make-kpkg clean' again, would have made the repeated compiling faster, but I dunno. $ rm -r ../*rt29* $ rm ../linux-h* ../linux-i* $ make-kpkg clean $ echo $CONCURRENCY_LEVEL 2 $ make-kpkg --rootcmd fakeroot --initrd kernel-image kernel-headers kernel-source $ sudo dpkg -i ../linux-image-2.6.33.7.2-rt30_2.6.33.7.2-rt30-10.00.Custom_amd64.deb $ ls -hAl /boot total 21M -rw-r--r-- 1 root root 632K 2010-12-02 07:02 abi-2.6.32-27-preempt -rw-r--r-- 1 root root 109K 2010-12-02 07:02 config-2.6.32-27-preempt -rw-r--r-- 1 root root 108K 2010-12-27 18:47 config-2.6.33.7.2-rt30 drwxr-xr-x 3 root root 12K 2010-12-27 20:07 grub -rw-r--r-- 1 root root 8.0M 2010-12-27 09:28 initrd.img-2.6.32-27-preempt -rw-r--r-- 1 root root 157K 2010-03-23 10:40 memtest86+.bin -rw-r--r-- 1 root root 2.1M 2010-12-02 07:02 System.map-2.6.32-27-preempt -rw-r--r-- 1 root root 2.1M 2010-12-27 19:52 System.map-2.6.33.7.2-rt30 -rw-r--r-- 1 root root 1.4K 2010-12-02 07:08 vmcoreinfo-2.6.32-27-preempt -rw-r--r-- 1 root root 4.0M 2010-12-02 07:02 vmlinuz-2.6.32-27-preempt -rw-r--r-- 1 root root 4.0M 2010-12-27 19:52 vmlinuz-2.6.33.7.2-rt30 ### The knack $ sudo update-initramfs -c -k 2.6.33.7.2-rt30 FWIW it took 77 minutes + less but 48 seconds on my machine to compile the kernel and 5.45 GiB to build and install the kernel + initrd. $ ls -hAl /boot total 30M -rw-r--r-- 1 root root 632K 2010-12-02 07:02 abi-2.6.32-27-preempt -rw-r--r-- 1 root root 109K 2010-12-02 07:02 config-2.6.32-27-preempt -rw-r--r-- 1 root root 108K 2010-12-27 18:47 config-2.6.33.7.2-rt30 drwxr-xr-x 3 root root 12K 2010-12-27 20:07 grub -rw-r--r-- 1 root root 8.0M 2010-12-27 09:28 initrd.img-2.6.32-27-preempt -rw-r--r-- 1 root root 8.2M 2010-12-27 20:12 initrd.img-2.6.33.7.2-rt30 -rw-r--r-- 1 root root 157K 2010-03-23 10:40 memtest86+.bin -rw-r--r-- 1 root root 2.1M 2010-12-02 07:02 System.map-2.6.32-27-preempt -rw-r--r-- 1 root root 2.1M 2010-12-27 19:52 System.map-2.6.33.7.2-rt30 -rw-r--r-- 1 root root 1.4K 2010-12-02 07:08 vmcoreinfo-2.6.32-27-preempt -rw-r--r-- 1 root root 4.0M 2010-12-02
Re: Kernel-rt issues solved, but configuring X still is a PITA
On Mon, 2010-12-27 at 23:56 +0100, Gerhard Lang wrote: Hi Ralf, nvidia prop drivers for your card never will build with new rt-kernels. I see you compile customized kernels. I'd recommend trying 2.3.36.xxx and even 2.6.37-rcxx with preempt settings. They run here on a geriatric amd64x2 machine under lucid (10.04) ubuntustudio/kx mashing with proprietary nvidia drivers, full rt support. Only missing against rt-kernels is the possibility to adjust rtirq settings which as I see *possibly* *might* give *a* *little* benefit *only* for ffado/firewire devices. Nevertheless I hope someone will implemet this rtirq tweaking stuff into mainline kernels. Regards Gerhard Hi Gerhard :) kernel 2.6.31.6-rt19 + the proprietary nvidia driver is ok for my Suse 11.2 install and my GeForce 7200 GS (GeForce 7300 SE). I could test this kernel-rt, if needed. I don't categorically need the proprietary driver for Ubuntu Studio too, but I wish to have the monitor's resolution settings for any WM and the GDM login menu, a problem that should be independent from the used driver. I'm wary of non-kernels-rt, because I fear worsening MIDI jitter for PCI MIDI. I get best results for my 2 Envy24 PCI MIDI devices and even for my USB MIDI device, when running alsa-midi-latency-test, but I'm used to hard real-time by the C64 and Atari ST + SMPTE sync to analog tape and not fine with so called 'less' MIDI jitter by Linux. When using HPET (HRTIMER) it might be, that it could be able to fix this, but only if I can keep the audio latency as short as possible, because there is a correlation between audio recordings of external MIDI equipment and MIDI jitter. I never compared just PREEMPT and PREEMPT RT. At http://www.rncbc.org/jack/ Rui's version of rtirq still is rtirq-20090920.tar.gz , should be equal to 20090920-0ubuntu1. I never noticed any different between rtirq installed and customized and not being installed or not being customized. Thank you, I had issues regarding to the graphics with kernels-rt ex 2.6.31.6-rt19, but can't remember of what kind exactly. Cheers! Ralf -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users