[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Soundcard problems in domU
Hi! I'm trying to get a soundcard running in a xen 3.0.2 domU, but every time an application tries to read or write /dev/dsp I get a ENOMEM (Cannot allocate memory). Changing mixer settings (with aumix) works fine... Here's some debugging stuff: grub config (menu.lst): title kernel 2.6.16-xen0 root (hd0,2) #512 MB fuer dom0 kernel /xen.gz dom0_mem=524288 module /vmlinuz-2.6.16-xen0 root=/dev/hda5 ro console=tty0 max_loop=128 pciback.hide=(0000:00:05.0) savedefault boot config of the domU: name = "vm02" memory = 128 pci = [ '0000:00:05.0' ] disk = [ 'file:/data/xen_vserver/vm02.img,hda1,w','file:/data/xen_vserver/vm02-swap.img, kernel = "/boot/vmlinuz-2.6.16-xenU" vif = [ '' ] dhcp="off" ip="1.2.3.4" netmask="255.255.255.240" gateway="1.2.3.5" hostname="vm02.foo.bar" root = "/dev/hda1 ro" extra = "4" vm02:~# lsmod Module Size Used by snd_pcm_oss 47648 0 snd_mixer_oss 16000 1 snd_pcm_oss snd_cmipci 29632 0 snd_pcm 77060 2 snd_pcm_oss,snd_cmipci snd_page_alloc 8712 1 snd_pcm snd_opl3_lib 8704 1 snd_cmipci snd_timer 20548 2 snd_pcm,snd_opl3_lib snd_hwdep 7492 1 snd_opl3_lib snd_mpu401_uart 6528 1 snd_cmipci snd_rawmidi 20640 1 snd_mpu401_uart snd 44832 9 snd_pcm_oss,snd_mixer_oss,snd_cmipci,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi soundcore 7584 1 snd md5 4416 1 ipv6 242688 12 vm02:~# lspci 0000:00:05.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10) vm02:~# cat /dev/urandom > /dev/dsp cat: write error: Cannot allocate memory vm02:~# cat /dev/dsp cat: /dev/dsp: Cannot allocate memory vm02:~# strace cat /dev/dsp execve("/bin/cat", ["cat", "/dev/dsp"], [/* 14 vars */]) = 0 uname({sys="Linux", node="vm02", ...}) = 0 brk(0) = 0x804d000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f5a000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f59000 open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=13542, ...}) = 0 mmap2(NULL, 13542, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f55000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220T\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1177116, ...}) = 0 mmap2(NULL, 1186964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e33000 mmap2(0xb7f4b000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x117) = 0xb7f4b000 mmap2(0xb7f53000, 7316, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f53000 close(3) = 0 mprotect(0xb7f4b000, 20480, PROT_READ) = 0 munmap(0xb7f55000, 13542) = 0 brk(0) = 0x804d000 brk(0x806e000) = 0x806e000 fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 open("/dev/dsp", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(14, 3), ...}) = 0 read(3, 0x804d080, 4096) = -1 ENOMEM (Cannot allocate memory) write(2, "cat: ", 5cat: ) = 5 write(2, "/dev/dsp", 8/dev/dsp) = 8 write(2, ": Cannot allocate memory", 24: Cannot allocate memory) = 24 write(2, "\n", 1 ) = 1 close(3) = 0 close(1) = 0 exit_group(1) = ? Process 4135 detached vm02:~# strace cat /dev/urandom > /dev/dsp execve("/bin/cat", ["cat", "/dev/urandom"], [/* 14 vars */]) = 0 uname({sys="Linux", node="vm02", ...}) = 0 brk(0) = 0x804d000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f98000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f97000 open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=13542, ...}) = 0 mmap2(NULL, 13542, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f93000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220T\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1177116, ...}) = 0 mmap2(NULL, 1186964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e71000 mmap2(0xb7f89000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x117) = 0xb7f89000 mmap2(0xb7f91000, 7316, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f91000 close(3) = 0 mprotect(0xb7f89000, 20480, PROT_READ) = 0 munmap(0xb7f93000, 13542) = 0 brk(0) = 0x804d000 brk(0x806e000) = 0x806e000 fstat64(1, {st_mode=S_IFCHR|0660, st_rdev=makedev(14, 3), ...}) = 0 open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFCHR|0444, st_rdev=makedev(1, 9), ...}) = 0 read(3, "5U\232b\241\231\262\7o\346\4\'tC31\205\256\30\305\"\1\21"..., 4096) = 4096 write(1, "5U\232b\241\231\262\7o\346\4\'tC31\205\256\30\305\"\1\21"..., 4096) = -1 ENOMEM (Cannot allocate memory) write(2, "cat: ", 5cat: ) = 5 write(2, "write error", 11write error) = 11 write(2, ": Cannot allocate memory", 24: Cannot allocate memory) = 24 write(2, "\n", 1 ) = 1 exit_group(1) = ? Process 4138 detached I'm grateful for any help... Regards, Tobias -- _______________/\ \ /\__________________________________________________ \/ http://www.oberkommando.org mailto:grondhal@xxxxxxxxxxx You cannot achieve the impossible without attempting the absurd. _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |