Thread: Need larger shmget() size.

  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,059
    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, 03:55 AM
  2. Generic heapsort
    By Sephiroth1109 in forum C Programming
    Replies: 15
    Last Post: 12-07-2007, 06:14 PM
  3. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 02: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