Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2009 17:12:08 GMT
From:      durga velagapudi <dvelagapudi@adaranet.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/136226: ipcs -bp doesn't display the shm segsz if it is bigger than 2GB
Message-ID:  <200907011712.n61HC8lb044063@www.freebsd.org>
Resent-Message-ID: <200907011720.n61HK1OV042180@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136226
>Category:       kern
>Synopsis:       ipcs -bp doesn't display the shm segsz if it is bigger than 2GB
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 01 17:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     durga velagapudi
>Release:        FreeBSD 7.2-RELEASE #0
>Organization:
adara networks
>Environment:
FreeBSD host64-1 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The process allocates shared memory of size 9GB

When ipcs -bp is executed from command line

Shared Memory:
T           ID          KEY MODE        OWNER    GROUP           SEGSZ         CPID         LPID
m        65541         1296 --rw-rw---- root     wheel               0         1590         1576

The SEGSZ is 9GB allocated but it is shown as 0
>How-To-Repeat:
run a process which requestes shmget() api requesting 9GB. also set the sysctl.shmmax to 10GB
>Fix:
got to change the struct shmid_kernel struct member seg_sz to type size_t or unsigned long.



>Release-Note:
>Audit-Trail:
>Unformatted:



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