changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: kernel: increase size of palloc.mem[] user page bank array

changeset 4240: b62414ff39c6
parent 4239: a2f421c84c3a
child 4241: 9cac2fa385e6
author: cinap_lenrek@felloff.net
date: Fri, 30 Jan 2015 14:50:28 +0100
files: sys/src/9/port/portdat.h
description: 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.
     1.1--- a/sys/src/9/port/portdat.h
     1.2+++ b/sys/src/9/port/portdat.h
     1.3@@ -491,13 +491,13 @@ struct Pallocmem
     1.4 struct Palloc
     1.5 {
     1.6 	Lock;
     1.7-	Pallocmem	mem[4];
     1.8 	Page	*head;			/* freelist head */
     1.9 	ulong	freecount;		/* how many pages on free list now */
    1.10 	Page	*pages;			/* array of all pages */
    1.11 	ulong	user;			/* how many user pages */
    1.12 	Rendez	r;			/* Sleep for free mem */
    1.13 	QLock	pwait;			/* Queue of procs waiting for memory */
    1.14+	Pallocmem	mem[16];	/* physical user page banks */
    1.15 };
    1.16 
    1.17 struct Waitq