Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2014 15:55:47 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-x11@FreeBSD.org
Cc:        FreeBSD Current <freebsd-current@FreeBSD.org>
Subject:   [TTM] Unable to allocate page
Message-ID:  <52FE2063.9090905@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

I am using "radeonkms" on a machine with quite mixed, diverse and varying loads.
Sometimes I get an X server crash like the following:

kernel: [TTM] Unable to allocate page
kernel: error: [drm:pid1815:radeon_gem_object_create] *ERROR* Failed to allocate
GEM object (25591808, 2, 4096, -12)
kernel: [TTM] Unable to allocate page
kernel: [TTM] Buffer eviction failed
kernel: vm_fault: pager read error, pid 1815 (Xorg)
kernel: pid 1815 (Xorg), uid 0: exited on signal 11 (core dumped)

At the same time there was the following in X servers stderr:
Failed to allocate :
   size      : 25589760 bytes
   alignment : 256 bytes
   domains   : 2

I wonder if this is a generic problem for example caused by severe resource
exhaustion or if this is something where FreeBSD specific code does not do its best.
In particular, it caught my attention that ttm_get_pages() effectively has
semantics of M_NOWAIT as it never retries allocation failures in
vm_page_alloc_contig().

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52FE2063.9090905>