From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 25 Mar 2004 14:54:33 +0300 From: Sergey Vlasov To: ALT Linux Sisyphus discussion list Subject: Re: [sisyphus] Shared memory - HELP PLEASE! Message-ID: <20040325115433.GE1756@master.mivlgu.local> Mail-Followup-To: ALT Linux Sisyphus discussion list , devel@altlinux.ru References: <20040223182241.028ed881.iadzhubey@rics.bwh.harvard.edu> <200403250217.54298.iadzhubey@rics.bwh.harvard.edu> <20040325104429.19718769.bga-no-spam@kovgok.ru> <200403250324.31415.iadzhubey@rics.bwh.harvard.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200403250324.31415.iadzhubey@rics.bwh.harvard.edu> Cc: devel@altlinux.ru X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.4 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 11:54:34 -0000 Archived-At: List-Archive: On Thu, Mar 25, 2004 at 03:24:31AM -0500, Ivan Adzhubey wrote: > size = [1..1024] > shmblock = 0 > size = [1025..2047] > shmblock = 4096 > size = [2048..4095] > shmblock = 8192 > size = [4096..5119] > shmblock = 16384 > > и тд. > > Какое же это rounded up to a multiple of PAGE_SIZE, даже если например > PAGE_SIZE == 4096? Это делает ipcs. Кто-нибудь может пояснить происхождение патча util-linux-2.11y-rh-ipcs-84243-86285.patch в пакете util-linux? Правильные данные о размере можно найти в /proc/sysvipc/shm. A PAGE_SIZE на x86 действительно 4096.