On 2018-01-30 11:40 AM, Christian KÃnig wrote:
Am 30.01.2018 um 10:43 schrieb Michel DÃnzer:What exactly are you referring to by "the file descriptor" here?
[SNIP]My problem is that this needs to be bullet prove.
Would it be ok to hang onto potentially arbitrary mmget referencesHonestly, I think you and Christian are overthinking this. Let's try
essentially forever? If that's ok I think we can do your process based
account (minus a few minor inaccuracies for shared stuff perhaps, but no
one cares about that).
charging the memory to every process which shares a buffer, and go from
there.
For example imagine an application which allocates a lot of BOs, then
calls fork() and let the parent process die. The file descriptor lives
on in the child process, but the memory is not accounted against the child.
What happens to BO handles in general in this case? If both parent andCorrect.
child process keep the same handle for the same BO, one of them
destroying the handle will result in the other one not being able to use
it anymore either, won't it?