shithub: patch

Download patch

ref: 2e8143a2636dcf6601ef3fc69f1ef7c099b4f112
parent: ca59246091915eb88599c0f0e76cb0029a0a7349
author: qwx <qwx@sciops.net>
date: Mon Jan 17 20:23:13 EST 2022

page-rice: bump NPROC while we're at it

--- a/page-rice
+++ b/page-rice
@@ -1,6 +1,15 @@
 diff 6f9838a6a5b80e0253bdc8fb194ad6f15eb655f5 uncommitted
 --- a//sys/src/cmd/page.c
 +++ b//sys/src/cmd/page.c
+@@ -54,7 +54,7 @@
+ char pagespool[] = "/tmp/pagespool.";
+ 
+ enum {
+-	NPROC = 4,
++	NPROC = 8,
+ 	NBUF = 8*1024,
+ 	NPATH = 1024,
+ };
 @@ -898,10 +898,6 @@
  {
  	int fd;
@@ -58,7 +67,7 @@
  		addpage(root, "stdin", popenfile, strdup("/fd/0"), -1);
  	for(; *argv; argv++)
  		addpage(root, *argv, popenfile, strdup(*argv), -1);
-+	for(i=0; i<NPROC-1; i++)	/* rice */
++	for(i=0; i<NPROC/4; i++)	/* rice */
 +		showpage1(current);
  
  	drawlock(1);