Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 09/09/2003 15:02:46
Module Name: src
Committed By: drochner
Date: Tue Sep 9 15:02:46 UTC 2003
Modified Files:
src/sys/kern: sysv_shm.c
Log Message:
Make per-process shm segment descriptor magement scale better for large
shminfo.shmseg, in view of the fact that only few processes utilize a
significant fraction of it:
-turn the table into a linked list, elements allocated from a pool(9)
-On fork(), just bump a refcount instead of copying the list; it will
be decremented on exit() and exec(). Only copy if an attach or detach
takes place in between, which is rarely the case.
To generate a diff of this commit:
cvs rdiff -r1.68 -r1.69 src/sys/kern/sysv_shm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.