NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-evbmips/52501: erlite quickly fails to allocate memory and processes wedge
The following reply was made to PR port-evbmips/52501; it has been noted by GNATS.
From: coypu%sdf.org@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-evbmips/52501: erlite quickly fails to allocate memory and
processes wedge
Date: Mon, 28 Aug 2017 17:33:44 +0000
On Thu, Aug 24, 2017 at 10:30:01PM +0000, Nick Hudson wrote:
> I guess this helps with being able to use all free memory as well?
>
> If so this change is preferable because it at least tries to allocate
> pages (for DMA) from the best range, but falls back if there aren't any.
>
>
> Nick
>
>
> --------------9794A98B3DAA9AD1C6CAE85F
> Content-Type: text/x-patch;
> name="uvm_km.c.diff"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: attachment;
> filename="uvm_km.c.diff"
>
> Index: sys/uvm/uvm_km.c
> ===================================================================
> RCS file: /cvsroot/src/sys/uvm/uvm_km.c,v
> retrieving revision 1.143
> diff -u -p -r1.143 uvm_km.c
> --- sys/uvm/uvm_km.c 1 Jun 2017 02:45:15 -0000 1.143
> +++ sys/uvm/uvm_km.c 24 Aug 2017 20:45:18 -0000
> @@ -663,7 +663,7 @@ uvm_km_alloc(struct vm_map *map, vsize_t
>
> pg = uvm_pagealloc_strat(NULL, offset, NULL, pgaflags,
> #ifdef UVM_KM_VMFREELIST
> - UVM_PGA_STRAT_ONLY, UVM_KM_VMFREELIST
> + UVM_PGA_STRAT_FALLBACK, UVM_KM_VMFREELIST
> #else
> UVM_PGA_STRAT_NORMAL, 0
> #endif
>
>
> --------------9794A98B3DAA9AD1C6CAE85F--
>
This works - I can use all RAM.
Home |
Main Index |
Thread Index |
Old Index