[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] PCI passthrough partial success
On Sun, Jun 29, 2008 at 7:48 AM, Andy Burns <lists.xensource.com@adslpipe.co.uk> wrote:
I have mythbackend running in an Ubuntu-Hardy domU with a Centos 5.1 dom0. Here are the settings that work for me: In dom0 /boot/grub/: title CentOS (2.6.18-xen_3.2.0) root (hd0,5) kernel /boot/xen.gz-3.2 swiotlb=256 noirqdebug module /boot/vmlinuz-2.6-xen ro root=LABEL=/ max_loop=32 module /boot/initrd-2.6-xen.img In /etc/xen/Ubuntu-Hardy-Mythtv.cfg: bootloader = '/usr/bin/pygrub' memory = 640 name = "Ubuntu-Mythtv" disk = ['file:/mnt/VM/Ubuntu-Hardy-Mythtv.img,hda1,w','file:/mnt/VM/Ubuntu-Hardy-Mythtv-swap.img,hda2,w'] vif = [ '' ] pci = [ "0000:03:02.0","0000:04:08.0","0000:04:09.0","0000:02:00.0","0000:02:00.1" ] extra = "swiotlb=force all-generic-ide=1 clock=jiffies" sdl = 1 In the domU /boot/grub/menu.1st: title Ubuntu 8.04, kernel 2.6.24-16-xen root (hd0,0) kernel /boot/vmlinuz-2.6.24-16-xen root=/dev/hda1 ro console=xvc0 swiotlb=128,force initrd /boot/initrd.img-2.6.24-16-xen I have a jmicron pci express SATA-PATA combo card pcibacked, hence the all-generic-ide line above. For some reason jiffies in extra doesn't stick. Also, I followed a recommendation from the mythv list to chrt the ivtv pids. So I have a boot script in the domU to run: #!/bin/bash /bin/echo jiffies > /sys/devices/system/clocksource/clocksource0/current_clocksource /usr/bin/chrt -rp 99 `pgrep ivtv0` /usr/bin/chrt -rp 99 `pgrep ivtv1` /usr/bin/chrt -rp 99 `pgrep ivtv2` #It probably wont hurt to increase the domU's scheduling priority, run this in dom0: xm sched-credit -d Ubuntu-Mythtv -w 512 I would suggest having the Mythtv backend not do any transcoding or commflagging. Instead, create slave mythtv backends without tuners and have them do the transcode and commflagging. This effectively compartmentalizes the commflagger and transcoder so that the main mythtv backend will not drop frames when writing to the disk. My only problem with the system is I get dma timeout errors in dmesg. These were present even in a nonxen setup, so I think it is related to my hardware and ivtv. Hope that helps. I am still trying to find ways to optimize the mythbackend domU so If you have any ideas, please let me know. Chris _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |