From owner-freebsd-stable@FreeBSD.ORG Tue Aug 14 14:31:05 2007 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B40F716A41B for ; Tue, 14 Aug 2007 14:31:05 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from mail.ticketswitch.com (mail.ticketswitch.com [194.200.93.188]) by mx1.freebsd.org (Postfix) with ESMTP id 802F313C465 for ; Tue, 14 Aug 2007 14:31:05 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from dilbert.rattatosk ([10.50.50.6] helo=dilbert.ticketswitch.com) by mail.ticketswitch.com with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IKxQG-000CIP-49 for freebsd-stable@FreeBSD.ORG; Tue, 14 Aug 2007 15:31:04 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IKxQG-0001oe-3M for freebsd-stable@FreeBSD.ORG; Tue, 14 Aug 2007 15:31:04 +0100 To: freebsd-stable@FreeBSD.ORG Message-Id: From: Pete French Date: Tue, 14 Aug 2007 15:31:04 +0100 Cc: Subject: Static linking and memory usage X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2007 14:31:05 -0000 If I have an executable which is staticly linked with many copies of it running (a CGI script in fact), will all those copies share the text segment of the executable on the disc, or will it actually use up real memory resource with many copies of the executable ? I have been assuming the former, but possibly that is not correct. cheers, -pcf.