[RFC] Per file OOM badness
roger
honghe at amd.com
Fri Jan 19 10:02:12 UTC 2018
On 2018年01月19日 16:25, Michal Hocko wrote:
> [removed the broken quoting - please try to use an email client which
> doesn't mess up the qouted text]
>
> On Fri 19-01-18 06:01:26, He, Roger wrote:
> [...]
>> I think you are misunderstanding here.
>> Actually for now, the memory in TTM Pools already has mm_shrink which is implemented in ttm_pool_mm_shrink_init.
>> And here the memory we want to make it contribute to OOM badness is not in TTM Pools.
>> Because when TTM buffer allocation success, the memory already is removed from TTM Pools.
>
> I have no idea what TTM buffers are. But this smells like something
> rather specific to the particular subsytem. And my main objection here
> is that struct file is not a proper vehicle to carry such an
> information. So whatever the TTM subsystem does it should contribute to
> generic counters rather than abuse fd because it happens to use it to
> communicate with userspace.
>
got it. thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180119/c16a200c/attachment-0001.html>
More information about the dri-devel
mailing list