Re: shmget.2: SHMALL & kernel version inconsistency ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/28/2014 12:09 AM, Simon Paillard wrote:
> Hi,
> 
>>From shmget.2:
> =======================================================================
> SHMALL System wide maximum of shared memory pages.   Since  Linux  2.2,
>        the default value for this limit is
> 
>            SHMMAX / PAGE_SIZE * (SHMMNI / 16)
> 
>        Assuming  a 4kB page size, this formula yields (since Linux 2.4)
>        the value 2^20 (2,097,152).
> 
>        On Linux, this limit can be read and modified via /proc/sys/ker‐
>        nel/shmall.
> =======================================================================
> 
> Linux 2.2 or 2.4 ?
> 
> I understand from lxr contant this is actually 2.4.
> http://lxr.linux.no/#linux-old+v2.2.0/include/linux/shm.h#L53
> http://lxr.linux.no/#linux-old+v2.4.0/include/linux/shm.h#L15

Thanks, Simon. Yes, it should have been 2.4. The fix is in Git.

Cheers,

Michael

 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux