[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 2/2] osdep: support mempolicy for preallocation in os_mem_
From: |
David Hildenbrand |
Subject: |
Re: [PATCH v1 2/2] osdep: support mempolicy for preallocation in os_mem_prealloc |
Date: |
Tue, 7 Dec 2021 16:05:39 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
On 07.12.21 14:58, Daniil Tatianin wrote:
> I believe you're right. Looking at the implementation of
> shmem_alloc_page, it uses the inode policy, which is set via
> vma->set_policy (from the mbind() call in this case). set_mempolicy is
> both useless and redundant here, as thread's
> policy is only ever used in case vma->get_policy returns NULL (which it
> doesn't in our case).
> Sorry for the confusion.
Hi Danlil,
not an issue, the man page is really confusing ... so I was similarly
confused a few months ago until I actually started to dig :)
--
Thanks,
David / dhildenb