From owner-freebsd-current@FreeBSD.ORG Fri Feb 14 13:57:12 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 73CE0BD8; Fri, 14 Feb 2014 13:57:12 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3DCC919B9; Fri, 14 Feb 2014 13:57:10 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA14962; Fri, 14 Feb 2014 15:57:09 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1WEJGP-000NmF-1t; Fri, 14 Feb 2014 15:57:09 +0200 Message-ID: <52FE2063.9090905@FreeBSD.org> Date: Fri, 14 Feb 2014 15:55:47 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-x11@FreeBSD.org Subject: [TTM] Unable to allocate page X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 13:57:12 -0000 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