All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <deathsimple@vodafone.de>
To: "Michel Dänzer" <michel@daenzer.net>, "Dave Airlie" <airlied@gmail.com>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: order 5 memory allocation failures in radeon_vm_get_bos
Date: Fri, 17 Oct 2014 19:30:26 +0200	[thread overview]
Message-ID: <54415232.5040606@vodafone.de> (raw)
In-Reply-To: <544088DE.6020904@daenzer.net>

Am 17.10.2014 um 05:11 schrieb Michel Dänzer:
> On 17.10.2014 09:23, Dave Airlie wrote:
>> I have someone running F20 + a hacked up glamor to fix some leaks,
>> however he is getting
>> order 4/5 memory allocation failures in the kmalloc_array in 
>> radeon_vm_get_bos
>>
>> radeon_vm_get_bos+0x30/0x120
>>
>> I think we should fallback to vmalloc or just use drm_malloc_ab in 
>> here instead,
>>
>> any reason we haven't?
>
> I don't think so, see 
> https://bugs.freedesktop.org/show_bug.cgi?id=81991 . I didn't know 
> about drm_malloc_ab, that looks like the easiest fix indeed.

Mhm fixing this using another allocator function is probably a good 
idea, but on the other hand why does X want to allocate an order 4/5 in 
vm_get_bos in the first place?

Assuming 64 bytes per array element that would mean that we have over 1K 
BOs for the address space handling. Even with the lowest settings on BO 
size that covers something like 4GB of GPU address space and with normal 
settings it is more something like 256GB...

So question here is why does X need so much GPU address space? The box 
doesn't even have so much memory, doesn't it?

Cheers,
Christian.

  reply	other threads:[~2014-10-17 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17  0:23 order 5 memory allocation failures in radeon_vm_get_bos Dave Airlie
2014-10-17  3:11 ` Michel Dänzer
2014-10-17 17:30   ` Christian König [this message]
2014-10-22  1:10     ` Dave Airlie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54415232.5040606@vodafone.de \
    --to=deathsimple@vodafone.de \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=michel@daenzer.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.