Re: OpenBSD 6.0-stable: uvm_mapent_alloc: out of static map entries

2016-10-28 Thread Stefan Kempf
mxb wrote:
> Hey,
> seeing following in dmesg:
> 
> uvm_mapent_alloc: out of static map entries
> 
> Wasn’t it fixed so system dynamically adjusted this or do I stil need to
> increase and re-compile kernel ?

uvm amaps got restructured that way for 6.0. What you are seeing is in
a different part of uvm.

>From uvm_mapent_alloc in sys/uvm/uvm_map.c: Looks like the allocation
succeeds, but your system is allocating map entries at a too high rate.
Can't tell why that is though.

if (map->flags & VM_MAP_INTRSAFE || cold) {
mtx_enter(&uvm_kmapent_mtx);
if (SLIST_EMPTY(&uvm.kentry_free)) {
ne = km_alloc(PAGE_SIZE, &kv_page, &kp_dirty,
&kd_nowait);
if (ne == NULL)
panic("uvm_mapent_alloc: cannot allocate map "
"entry");
for (i = 0; i < PAGE_SIZE / sizeof(*ne); i++) {
SLIST_INSERT_HEAD(&uvm.kentry_free,
&ne[i], daddrs.addr_kentry);
}
if (ratecheck(&uvm_kmapent_last_warn_time,
&uvm_kmapent_warn_rate))
printf("uvm_mapent_alloc: out of static "
"map entries\n");
}
me = SLIST_FIRST(&uvm.kentry_free);
SLIST_REMOVE_HEAD(&uvm.kentry_free, daddrs.addr_kentry);
uvmexp.kmapent++;
mtx_leave(&uvm_kmapent_mtx);
me->flags = UVM_MAP_STATIC;
...

 
> P.S.
> Have plenty of RAM (15G free) on this box.
> 
> 
> //mxb



OpenBSD 6.0-stable: uvm_mapent_alloc: out of static map entries

2016-10-26 Thread mxb
Hey,
seeing following in dmesg:

uvm_mapent_alloc: out of static map entries

Wasn’t it fixed so system dynamically adjusted this or do I stil need to
increase and re-compile kernel ?

P.S.
Have plenty of RAM (15G free) on this box.


//mxb