Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1703770

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

From Igor Stoppa <igor.stoppa@huawei.com>
Newsgroups linux.kernel
Subject Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator
Date 2017-08-04 10:10 +0200
Message-ID <uaFQd-4tx-5@gated-at.bofh.it> (permalink)
References (4 earlier) <uanqi-8kg-23@gated-at.bofh.it> <uaoPn-Jx-1@gated-at.bofh.it> <uapBM-1kp-9@gated-at.bofh.it> <uapV8-1If-13@gated-at.bofh.it> <uaq4P-1Mc-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 03/08/17 18:15, Michal Hocko wrote:

> I would check the one where we have mapping. It is rather unlikely
> vmalloc users would touch this one.

That was also the initial recommendation from Jerome Glisse, but it
seemed unusable, because of the related comment.

I should have asked for clarifications back then :-(

But it's never too late ...


struct page {
  /* First double word block */
  unsigned long flags;		/* Atomic flags, some possibly
				 * updated asynchronously */
union {
	struct address_space *mapping;	/* If low bit clear, points to
					 * inode address_space, or NULL.
					 * If page mapped as anonymous
					 * memory, low bit is set, and
					 * it points to anon_vma object:
					 * see PAGE_MAPPING_ANON below.
					 */
...
}

mapping seems to be used exclusively in 2 ways, based on the value of
its lower bit.

Therefore I discarded it as valid option ("private", otoh was far more
alluring), but maybe I could wrap it inside a union, together with vm_area?

---
thanks, igor

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC] Tagging of vmalloc pages for supporting the pmalloc allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-02 17:20 +0200
  Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Jerome Glisse <jglisse@redhat.com> - 2017-08-02 19:20 +0200
    Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-03 12:20 +0200
      Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Michal Hocko <mhocko@kernel.org> - 2017-08-03 13:50 +0200
        Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-03 14:30 +0200
          Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Michal Hocko <mhocko@kernel.org> - 2017-08-03 16:00 +0200
            Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Jerome Glisse <jglisse@redhat.com> - 2017-08-03 16:50 +0200
              Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-03 17:10 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Michal Hocko <mhocko@kernel.org> - 2017-08-03 17:20 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-04 10:10 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Michal Hocko <mhocko@kernel.org> - 2017-08-04 10:20 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-07 13:30 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Michal Hocko <mhocko@kernel.org> - 2017-08-07 13:40 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Jerome Glisse <jglisse@redhat.com> - 2017-08-07 15:40 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-07 16:20 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Jerome Glisse <jglisse@redhat.com> - 2017-08-07 21:20 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-08 15:10 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Jerome Glisse <jglisse@redhat.com> - 2017-08-09 01:20 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-09 09:30 +0200
                Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Michal Hocko <mhocko@kernel.org> - 2017-08-10 09:20 +0200
            Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc  allocator Igor Stoppa <igor.stoppa@huawei.com> - 2017-08-03 16:50 +0200

csiph-web