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


Groups > linux.kernel > #1451759

[RFC] can we use vmalloc to alloc thread stack if compaction failed

From Xishi Qiu <qiuxishi@huawei.com>
Newsgroups linux.kernel
Subject [RFC] can we use vmalloc to alloc thread stack if compaction failed
Date 2016-07-28 09:20 +0200
Message-ID <rZNLP-2UX-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Usually THREAD_SIZE_ORDER is 2, it means we need to alloc 16kb continuous
physical memory during fork a new process.

If the system's memory is very small, especially the smart phone, maybe there
is only 1G memory. So the free memory is very small and compaction is not
always success in slowpath(__alloc_pages_slowpath), then alloc thread stack
may be failed for memory fragment.

Can we use vmalloc to alloc thread stack if compaction failed in slowpath?
e.g. Use vmalloc as a fallback if alloc_page/kamlloc failed.

I think the performance may be a little regression, and any other problems?

Thanks,
Xishi Qiu

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


Thread

[RFC] can we use vmalloc to alloc thread stack if compaction failed Xishi Qiu <qiuxishi@huawei.com> - 2016-07-28 09:20 +0200
  Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Michal Hocko <mhocko@kernel.org> - 2016-07-28 09:30 +0200
    Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Michal Hocko <mhocko@kernel.org> - 2016-07-28 10:00 +0200
      Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Xishi Qiu <qiuxishi@huawei.com> - 2016-07-28 11:40 +0200
        Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Michal Hocko <mhocko@kernel.org> - 2016-07-28 11:50 +0200
          Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Xishi Qiu <qiuxishi@huawei.com> - 2016-07-28 14:10 +0200
            Re: [RFC] can we use vmalloc to alloc thread stack if compaction failed Andy Lutomirski <luto@kernel.org> - 2016-07-28 17:10 +0200
              Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-07-29 05:00 +0200
                Re: [RFC] can we use vmalloc to alloc thread stack if compaction failed Andy Lutomirski <luto@amacapital.net> - 2016-07-29 21:50 +0200
                Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-08-01 07:50 +0200
                Re: [RFC] can we use vmalloc to alloc thread stack if compaction failed Andy Lutomirski <luto@amacapital.net> - 2016-08-10 21:10 +0200
    Re: [RFC] can we use vmalloc to alloc thread stack if compaction  failed Xishi Qiu <qiuxishi@huawei.com> - 2016-07-28 10:00 +0200

csiph-web