Leif Delgass writes:
 > Have you tried a lower resolution? 
Not yet.

 > If it's some sort of memory leak, I'd
 > expect that you'd run into it eventually even at a lower resolution.  If
 > it doesn't happen at lower resolutions, maybe you really just don't have
 > enough offscreen memory at 1280x1024. 
What is meant with offscreen memory, main memory + card memory or smth else?
free:
             total       used       free     shared    buffers     cached
Mem:        127660     123760       3900          0       9104      44884
-/+ buffers/cache:      69772      57888
Swap:       130748      84172      46576

 > Also, did you run any GL apps
 > before starting mplayer or between attempts (or during attempts)? 
xscreensaver is running, so some 3D applications are possibly run when
it activates. The box is usually on all day.

 > The 
 > current code allocates and frees 3D offscreen mem when transitioning from
 > no GL contexts to one or more and on transitioning from one or more GL
 > contexts to none.  It's possible that there's a leak happening on the 
 > transitions.  Also could you send your complete X log after reproducing 
 > the problem?
Do you mean the XFree86.0.log or an strace log?
See also below.
 > 
 > --Leif
 > 

Can you please describe how memory (both card and main memory) is
allocated and released for 2D and 3D applications: What puzzles me is
that if I start with a fresh X everything is OK, but after the problem
occurs I have to exit X to be able to run the application again. It is
not sufficient to terminate the application to get back to the same
state as as when starting anew. 

Possible causes of the resource shortage can be:
1. The applications do not return memory when exiting.
2. X cannot reclaim the memory when the appications exit.
3. There is a memory leak somewhere.
4. Something else??

Thanks,
Svante

Selected parts of XFree86.0.log and strace mplayer -vo sdl file.avi below.

XFree86.0.log
(II) LoadModule: "vbe"
(II) Reloading /usr/X11R6/lib/modules/libvbe.a
(II) ATI(0): VESA BIOS detected
(II) ATI(0): VESA VBE Version 2.0
(II) ATI(0): VESA VBE Total Mem: 8192 kB
(II) ATI(0): VESA VBE OEM: ATI MACH64
(II) ATI(0): VESA VBE OEM Software Rev: 1.0
(II) ATI(0): VESA VBE OEM Vendor: ATI Technologies Inc.
(II) ATI(0): VESA VBE OEM Product: MACH64LP
(II) ATI(0): VESA VBE OEM Product Rev: 01.00
(II) ATI(0): VESA VBE DDC supported
(II) ATI(0): VESA VBE DDC Level 2
(II) ATI(0): VESA VBE DDC transfer in appr. 2 sec.
(II) ATI(0): VESA VBE DDC read successfully
(II) ATI(0): Manufacturer: NOK  Model: 1b0  Serial#: 33583
(II) ATI(0): Year: 1998  Week: 9
(II) ATI(0): EDID Version: 1.2
...
(--) ATI(0): ATI 3D Rage LT Pro graphics controller detected.
(--) ATI(0): Chip type 4C42 "LB", version 4, foundry UMC, class 0, revision 0x03
.
(--) ATI(0): AGP bus interface detected;  block I/O base is 0xD000.
(--) ATI(0): ATI Mach64 adapter detected.
(!!) ATI(0): For information on using the multimedia capabilities
 of this adapter, please see http://gatos.sf.net.
(--) ATI(0): Internal RAMDAC (subtype 1) detected.
(==) ATI(0): RGB weight 565
(==) ATI(0): Default visual is TrueColor
(==) ATI(0): Using gamma correction (1.0, 1.0, 1.0)
(II) ATI(0): Using Mach64 accelerator CRTC.
(**) ATI(0): Using CRT interface and disabling digital flat panel.
(II) ATI(0): Storing hardware cursor image at 0xE47FFC00.
(II) ATI(0): Using 8 MB linear aperture at 0xE4000000.
(!!) ATI(0): Virtual resolutions will be limited to 8191 kB
 due to linear aperture size and/or placement of hardware cursor image area.
(II) ATI(0): Using Block 0 MMIO aperture at 0xE6000400.
(II) ATI(0): Using Block 1 MMIO aperture at 0xE6000000.
(==) ATI(0): Write-combining range (0xe4000000,0x800000)
(II) ATI(0): MMIO write caching enabled.
(--) ATI(0): 8192 kB of SGRAM (1:1) detected (using 8191 kB).
(WW) ATI(0): Cannot shadow an accelerated frame buffer.
(--) ATI(0): Internal programmable clock generator detected.
(--) ATI(0): Reference clock 29.500 MHz.
...
(II) ATI(0): [drm] created "mach64" driver at busid "PCI:1:0:0"
(II) ATI(0): [drm] added 8192 byte SAREA at 0xc8958000
(II) ATI(0): [drm] mapped SAREA 0xc8958000 to 0x40013000
(II) ATI(0): [drm] framebuffer handle = 0xe4000000
(II) ATI(0): [drm] added 1 reserved context for kernel
(II) ATI(0): [drm] Will request asynchronous DMA mode
(**) ATI(0): [agp] Using AGP 2x Mode
(==) ATI(0): [agp] Using 8 MB AGP aperture
(II) ATI(0): [agp] Mode 0x1f000203 [AGP 0x8086/0x7190; Card 0x1002/0x4c42]
(II) ATI(0): [agp] 8192 kB allocated with handle 0xc915c000
(==) ATI(0): [agp] Using 2 MB for DMA buffers
(II) ATI(0): [agp] Using 6 MB for AGP textures
(II) ATI(0): [agp] vertex buffers handle = 0xe0000000
(II) ATI(0): [agp] Vertex buffers mapped at 0x40b0c000
(II) ATI(0): [agp] AGP texture region handle = 0xe0200000
(II) ATI(0): [agp] AGP Texture region mapped at 0x40d0c000
(II) ATI(0): [drm] register handle = 0xe6000000
(II) ATI(0): [dri] Visual configs initialized
(II) ATI(0): [dri] Block 0 base at 0xe6000400
(II) ATI(0): Memory manager initialized to (0,0) (1280,3276)
(II) ATI(0): Largest offscreen area available: 1280 x 2252
(II) ATI(0): Will use 511 kB of offscreen memory for XAA
(II) ATI(0): Will use back buffer at offset 0x2ff800
(II) ATI(0): Will use depth buffer at offset 0x57f800
(II) ATI(0): Using XFree86 Acceleration Architecture (XAA)
        Screen to screen bit blits
        Solid filled rectangles
        8x8 mono pattern filled rectangles
        Indirect CPU to Screen color expansion
        Solid Lines
        Offscreen Pixmaps
        Setting up tile and stipple cache:
                32 128x128 slots
                14 256x256 slots
                5 512x512 slots
(==) ATI(0): Backing store disabled
(==) ATI(0): Silken mouse enabled
(**) Option "dpms"
(**) ATI(0): DPMS enabled
(**) ATI(0): DPMS enabled
(II) ATI(0): ecp_div is 1
(II) ATI(0): 0x55 0xaa
(II) ATI(0): No MM_TABLE found
...
(II) ATI(0): [drm] installed DRM signal handler
(II) ATI(0): [DRI] installation complete
(II) ATI(0): [drm] Added 128 16384 byte DMA buffers
(II) ATI(0): [drm] Mapped 128 DMA buffers at 0x4130c000
(II) ATI(0): Direct rendering enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER

strace output:
read(8, "SO8859-15\niso8859-1/XLC_LOCALE:\t"..., 4096) = 4096
close(8)                                = 0
munmap(0x40018000, 4096)                = 0
access("/usr/X11R6/lib/X11/locale/iso8859-1/XLC_LOCALE", R_OK) = 0
open("/usr/X11R6/lib/X11/locale/iso8859-1/XLC_LOCALE", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0644, st_size=798, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
read(8, "#  $Xorg: iso8859-1,v 1.3 2000/0"..., 4096) = 798
brk(0x8411000)                          = 0x8411000
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0x40018000, 4096)                = 0
brk(0x8419000)                          = 0x8419000
brk(0x8422000)                          = 0x8422000
brk(0x8423000)                          = 0x8423000
brk(0x8424000)                          = 0x8424000
brk(0x8425000)                          = 0x8425000
brk(0x8426000)                          = 0x8426000
brk(0x8427000)                          = 0x8427000
brk(0x8428000)                          = 0x8428000
brk(0x8429000)                          = 0x8429000
brk(0x842a000)                          = 0x842a000
write(2, "X Error of failed request:  BadA"..., 78X Error of failed request:  BadAlloc 
(insufficient reso
urces for operation)  ) = 78
write(2, "Major opcode of failed request: "..., 36Major opcode of failed request:  
142) = 36
write(2, " (XVideo)\n", 10 (XVideo))             = 10
write(2, "  ", 2  )                       = 2
write(2, "Minor opcode of failed request: "..., 35Minor opcode of failed request:  19) 
= 35
write(2, " ()", 3 ())                      = 3
write(2, "\n", 1)                       = 1
write(2, "  ", 2  )                       = 2
write(2, "Serial number of failed request:"..., 36Serial number of failed request:  
21) = 36
write(2, "\n  ", 3  )                     = 3
write(2, "Current serial number in output "..., 43Current serial number in output 
stream:  22) = 43
write(2, "\n", 1)                       = 1
munmap(0x40012000, 4096)                = 0
_exit(1)                                = ?


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to