From owner-freebsd-stable@FreeBSD.ORG Tue Oct 16 20:32:28 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 BB57F16A417 for ; Tue, 16 Oct 2007 20:32:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 79A7513C474 for ; Tue, 16 Oct 2007 20:32:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l9GJtFZc018002; Tue, 16 Oct 2007 15:55:15 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org Date: Tue, 16 Oct 2007 15:55:07 -0400 User-Agent: KMail/1.6.2 References: <20071015141714.GL24828@rambler-co.ru> In-Reply-To: <20071015141714.GL24828@rambler-co.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200710161555.12384.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV version 0.90.2, clamav-milter version 0.90.2 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Peter Jeremy , freebsd-stable@FreeBSD.org Subject: Re: 2G+ sysv shm segments 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, 16 Oct 2007 20:32:28 -0000 On Monday 15 October 2007 10:17 am, Igor Sysoev wrote: > Two years ago Christian S.J. Peron had increased total number of > SysV shm pages on 64-bit platform, that allows to create many shm > segments more than 2G in sum. However, the patch does not allow to > create a single large segment more than 2G. The attached patches > against 6.x and 7.x allow to create 2G+ segments. I know that stock > 6.x will not have this feature because of compatibility, but I send > 6.x patch too because someone may want to use 2G+ shm on 6.x. > > To install: > > patch -d < /usr < big_sysvshmX.txt > > [ rebuild kernel ] > > cd /usr/src/include/ > make obj > make > make install > > cd /usr/src/usr.bin/ipcs/ > make obj > make > make install Actually there is a PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=113218 Unfortunately it breaks ABI because it increases sizeof(struct shmid_ds). Since the tree is unfrozen, I can commit it, though. ;-) Jung-uk Kim [Note: Peter, thanks for the casting suggestion.]