Need larger shmget() size.

This is a discussion on Need larger shmget() size. within the C Programming forums, part of the General Programming Boards category; My shmget() limit is 100, yet I need it to be 10000. Is there any way around this?...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    2

    Need larger shmget() size.

    My shmget() limit is 100, yet I need it to be 10000. Is there any way around this?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    100 * 4KB -> 400KB, 10000 * 4KB -> 40MB, which doesn't sound entirely unreasonable much. There is supposedly a kernel configuraition:
    Shared Memory Configuration

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,047
    Quote Originally Posted by endomlic View Post
    My shmget() limit is 100, yet I need it to be 10000. Is there any way around this?
    Only by increasing the corresponding kernel parameter.
    On most Unixes it is shmmax, so check the local system docs.
    Btw what platform and OS are you on?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Fixing my program
    By Mcwaffle in forum C Programming
    Replies: 5
    Last Post: 11-05-2008, 02:55 AM
  2. Generic heapsort
    By Sephiroth1109 in forum C Programming
    Replies: 15
    Last Post: 12-07-2007, 05:14 PM
  3. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 01:15 AM
  4. An exercise in optimization
    By Prelude in forum Contests Board
    Replies: 10
    Last Post: 04-29-2005, 03:06 PM
  5. shmget function
    By clancyPC in forum C Programming
    Replies: 5
    Last Post: 06-19-2002, 10:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21