From owner-freebsd-hackers Mon Jun 24 19:58:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 0EED237B435 for ; Mon, 24 Jun 2002 19:57:03 -0700 (PDT) Received: from pool0555.cvx21-bradley.dialup.earthlink.net ([209.179.194.45] helo=mindspring.com) by snipe.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17MgVU-0002cX-00; Mon, 24 Jun 2002 19:56:40 -0700 Message-ID: <3D17DBC1.351A8A35@mindspring.com> Date: Mon, 24 Jun 2002 19:56:01 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: Patrick Thomas , freebsd-hackers@freebsd.org Subject: Re: tunings for many httpds... References: <20020624151650.I68572-100000@utility.clubscholarship.com> <3D17D27A.11E82B2B@mindspring.com> <20020625022238.GH53232@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > * Terry Lambert [020624 19:17] wrote: > > > > System V shared memory is allocated out of KVA space (annoying, > > but true). > > You keep saying this but the backing object allocated for sysvshm > is taken from either an OBJT_PHYS or OBJT_SWAP object. Uh, it's only ever an OBJT_SWAP; see line 532 of kern/sysv_shm.c. > At what point does it eat KVA that is other than for the backing > data structures? It eats address space, not RAM. And even if the mappings are not active (which they usually are, because of LRU and processes accessing them shared), the pages containing the page table entries for each process are themselves not swappable; anything with a large VSZ is going to eat 1/4k pages in KVA there, too. Ask yourself where a shared memory segment lives when it's not in attached to one process address space, prior to you ipcrm'ing it. It has to remain referenced so it isn't reclaimed. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message