Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 May 2005 19:39:33 +0000
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Subject:   [patch] 2Gb SYSVSHM limitation
Message-ID:  <20050525193933.GA32095@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
I am looking for a review and testers for a fix to the 2 Gig memory
limitation when allocating system V shared memory segments.

A couple of notes:

1) This patch breaks ABI because it changes the size of the shminfo
   structure. This means that ipcs will need to be recompiled. (and
   anything else which uses struct shminfo).

2) Because this changes the size limitations stored in struct shminfo from
   a signed integer to an unsigned long, it allows x86 to allocate up
   to 4 gigs and also allows 64 bit architectures to do far more.

Even though the size parameter used by shmget(2) is a size_t, the upper
size limit is currently stored in a signed int. Limiting the maximum size of an
allocation to 2147483647 bytes.

Patch can be downloaded from:

http://people.freebsd.org/~csjp/bigsharedmem.1117028863.diff

Should apply to any recent version of -CURRENT cleanly.

Thanks!

-- 
Christian S.J. Peron
csjp@FreeBSD.ORG
FreeBSD Committer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050525193933.GA32095>