Re: Failure to allocate contiguous memory
On Fri, Mar 23, 2012 at 7:41 PM, Kyuupi kyuupic...@gmail.com wrote: I have jerky window dragging where repainting is very slow. I believe it is because DRI is not working with my graphics card, in turn because of a failure to allocate contiguous memory. Relevant snippets of dmesg below. Is there something I can do to fix this? I'm using kernel source as of about 48 hours ago. Neil. DragonFly v2.13.0.381.gca541-DEVELOPMENT #0: Sun Nov 27 12:27:02 JST 2011 r...@athlon2.akihabara.co.uk:/usr/obj/usr/src/sys/X86_64_GENERIC CPU: AMD Athlon(tm) Dual Core Processor 5050e (2600.16-MHz K8-class CPU) Origin = AuthenticAMD Id = 0x60fb2 Stepping = 2 Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C MOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT Features2=0x2001SSE3,CX16 AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow! AMD Features2=0x11fLAHF,CMP,SVM,ExtAPIC,CR8,Prefetch real memory = 4025809920 (3839 MB) avail memory = 3718107136 (3545 MB) DMA space used: 2540k, remaining available: 16384k Mounting devfs drm0: ATI Radeon HD 3200 Graphics on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] Initialized radeon 1.31.0 20080613 contigmalloc_map: failed size 16777216 low=0 high= align=4096 boundary=0 flags=0102 contigmalloc_map: failed size 16777216 low=0 high= align=4096 boundary=0 flags=0102 pid 27585 (conftest), uid 0: exited on signal 11 Warning: busy page 0xffe0036c39a8 found in cache From the drm(4) manpage: If Xorg(1) acceleration fails to initialize with a ``contigmalloc_map: failed size...'' error in dmesg, the reserve of memory for DMA ran out early and should be increased to a sufficiently high value by setting the vm.dma_reserved loader tunable. A read only sysctl(8) variable of the same name is provided for obtaining its current value. Sam
Re: Failure to allocate contiguous memory
On Fri, Mar 23, 2012 at 9:41 PM, Kyuupi kyuupic...@gmail.com wrote: I have jerky window dragging where repainting is very slow. I believe it is because DRI is not working with my graphics card, in turn because of a failure to allocate contiguous memory. Relevant snippets of dmesg below. Is there something I can do to fix this? I'm using kernel source as of about 48 hours ago. Neil. DragonFly v2.13.0.381.gca541-DEVELOPMENT #0: Sun Nov 27 12:27:02 JST 2011 r...@athlon2.akihabara.co.uk:/usr/obj/usr/src/sys/X86_64_GENERIC CPU: AMD Athlon(tm) Dual Core Processor 5050e (2600.16-MHz K8-class CPU) Origin = AuthenticAMD Id = 0x60fb2 Stepping = 2 Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C MOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT Features2=0x2001SSE3,CX16 AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow! AMD Features2=0x11fLAHF,CMP,SVM,ExtAPIC,CR8,Prefetch real memory = 4025809920 (3839 MB) avail memory = 3718107136 (3545 MB) DMA space used: 2540k, remaining available: 16384k Mounting devfs drm0: ATI Radeon HD 3200 Graphics on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] Initialized radeon 1.31.0 20080613 contigmalloc_map: failed size 16777216 low=0 high= align=4096 boundary=0 flags=0102 contigmalloc_map: failed size 16777216 low=0 high= align=4096 boundary=0 flags=0102 pid 27585 (conftest), uid 0: exited on signal 11 Warning: busy page 0xffe0036c39a8 found in cache Yep! Some AMD (ATI) graphics cards seem to require a 32MB physmem region for DRI to work. In /boot/loader.conf, set vm.dma_reserved to 32MB. Should work well! Good luck, -- vs; http://ops101.org/4k/
Re: Failure to allocate contiguous memory
On 24 March 2012 10:53, Venkatesh Srinivas vsrini...@ops101.org wrote: Yep! Some AMD (ATI) graphics cards seem to require a 32MB physmem region for DRI to work. In /boot/loader.conf, set vm.dma_reserved to 32MB. Should work well! Good luck, -- vs; http://ops101.org/4k/ Thanks Srinivas. I upped it to 32m, but then drm0: ATI Radeon HD 3200 Graphics on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] Initialized radeon 1.31.0 20080613 contigmalloc_map: failed size 33554432 low=0 high= align=4096 boundary=0 flags=0102 So then I upped it to 64m. rm0: ATI Radeon HD 3200 Graphics on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] Initialized radeon 1.31.0 20080613 info: [drm] Setting GART location based on new memory map info: [drm] Loading RS780/RS880 Microcode info: [drm] Resetting GPU info: [drm] writeback test succeeded in 1 usecs And now window dragging is very smooth. X also starts up faster. Thanks a lot. Neil.