From owner-freebsd-current Sat Feb 6 22:21:54 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA12193 for freebsd-current-outgoing; Sat, 6 Feb 1999 22:21:54 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from iquest3.iquest.net (iquest3.iquest.net [209.43.20.203]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA12188 for ; Sat, 6 Feb 1999 22:21:51 -0800 (PST) (envelope-from toor@y.dyson.net) Received: (qmail 16360 invoked from network); 7 Feb 1999 06:15:09 -0000 Received: from dyson.iquest.net (HELO y.dyson.net) (198.70.144.127) by iquest3.iquest.net with SMTP; 7 Feb 1999 06:15:09 -0000 Received: (from root@localhost) by y.dyson.net (8.9.1/8.9.1) id BAA00269 for current@freebsd.org; Sun, 7 Feb 1999 01:15:07 -0500 (EST) Message-Id: <199902070615.BAA00269@y.dyson.net> Subject: Significant page coloring improvement To: current@FreeBSD.ORG Date: Sun, 7 Feb 1999 01:15:07 -0500 (EST) From: "John S. Dyson" Reply-To: dyson@iquest.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM918368107-256-0_ Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --ELM918368107-256-0_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit When reviewing the VM code regarding another issue (another significant VM contributor had found an interesting anomoly), I noticed that the coloring wasn't as complete as it should be. Attached is a patch that appears to make a reasonable improvement in performance, when using both my slightly more advanced VM kernel, and also the stuff in -current. I seem to see a fork() only performance improvement of about 10% on a 2 processor SMP PPro, using lmbench. On vfork (which isn't completely implemented on a PPro, but is still faster than fork), the improvement appears to be about 5%. Of course, any page coloring improvement is dependent on alot of factors, but the missing object coloring handling is a problem... -- John | Never try to teach a pig to sing, dyson@iquest.net | it makes one look stupid jdyson@nc.com | and it irritates the pig. --ELM918368107-256-0_ Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: attachment; filename=vm.diff Content-Description: vm.diff Content-Transfer-Encoding: 7bit Index: vm/vm_object.c =================================================================== RCS file: /local/home/ncvs/src/sys/vm/vm_object.c,v retrieving revision 1.144 diff -r1.144 vm_object.c 215a216 > kmem_object->pg_color = (kernel_object->pg_color + PQ_L2_SIZE/4) & PQ_L2_MASK; 945a947 > result->pg_color = (source->pg_color + OFF_TO_IDX(*offset)) & PQ_L2_MASK; --ELM918368107-256-0_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message