summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-01-30 14:50:28 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-01-30 14:50:28 +0100
commitb76b5901ff41c7851df1f452578d8d5fa4e5f933 (patch)
treed81666f6631616deadcd59bb2ef988ff932c0a21
parentd21af173677127813b63a61a97131de821a680d6 (diff)
kernel: increase size of palloc.mem[] user page bank array
we'r hitting the limit of user page banks on some asrock mainboard, so doubling the size of the array twice to make running out unlikely.
-rw-r--r--sys/src/9/port/portdat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h
index 71fd1d2b4..af33ea8a1 100644
--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -491,13 +491,13 @@ struct Pallocmem
struct Palloc
{
Lock;
- Pallocmem mem[4];
Page *head; /* freelist head */
ulong freecount; /* how many pages on free list now */
Page *pages; /* array of all pages */
ulong user; /* how many user pages */
Rendez r; /* Sleep for free mem */
QLock pwait; /* Queue of procs waiting for memory */
+ Pallocmem mem[16]; /* physical user page banks */
};
struct Waitq