SHMMAX share Linux memory

The Linux kernel has many parameters that may be tuned, and are not well documented. Shared memory has been a big issue with big application like Oracle, Tibco, Webmethods on linux, This is the way to show you how to set limit of your used memory .  

To determine the maximum size of a shared memory segment, run:

# cat /proc/sys/kernel/shmmax



The default shared memory limit for SHMMAX can be changed in the proc file system without reboot:

# echo 2147483648 > /proc/sys/kernel/shmmax

Alternatively, you can use sysctl(8) to change it:

# sysctl -w kernel.shmmax=2147483648

To make a change permanent, add the following line to the file /etc/sysctl.conf (your setting may vary). This file is used during the boot process.

# echo "kernel.shmmax=2147483648" >> /etc/sysctl.conf

{loadposition user9}

Related Articles By Tags:

{loadposition user1}

  • haider abbas

    I add
    kernel.shmall = 4294967296
    kernel.shmmax = 4294967296
    in /etc/sysctl.conf

    to increase shared memory
    but when I run the command sysctl -a|grep shmmax it shows
    root@haider-desktop:~# sysctl -a|grep shmmax
    kernel.shmmax = 0
    error: "Invalid argument" reading key "fs.binfmt_misc.register"
    error: permission denied on key ‘net.ipv4.route.flush’
    error: permission denied on key ‘net.ipv6.route.flush’

    I again run the command /etc/sysctl.conf -w
    then it shows
    root@haider-desktop:~# /etc/sysctl.conf -w
    bash: /etc/sysctl.conf: Permission denied

    however I am the running these command by root
    I dont understand what is going on what is the actual problem
    again by
    ipcs -l it get

    —— Shared Memory Limits ——–
    max number of segments = 4096
    max seg size (kbytes) = 0
    max total shared memory (kbytes) = 0
    min seg size (bytes) = 1

    —— Semaphore Limits ——–
    max number of arrays = 128
    max semaphores per array = 250
    max semaphores system wide = 32000
    max ops per semop call = 32
    semaphore max value = 32767

    —— Messages: Limits ——–
    max queues system wide = 1668
    max size of message (bytes) = 8192
    default max size of queue (bytes) = 16384


    with regards
    Dr. Haider Abbas

  • Synagen IQ

    I think this is one of the most significant info for me.
    And i am glad reading your article. But want to remark on some
    general things, The website style is perfect, the articles is really nice
    : D. Good job, cheers


    Great post. I used to be checking continuously this
    blog and I’m impressed! Extremely helpful information specifically the closing
    part :) I deal with such information a lot. I used to be looking
    for this particular info for a very lengthy time.
    Thanks and best of luck.

  • rack

    After I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I
    recieve four emails with the same comment. Is there a means you are able to remove me from that service?

  • family photographers Santa Rosa Beach

    Hello There. I ffound your blog using msn. This is a really well written article.
    I’ll make sure to bookmark it and return too read more of your useful information. Thanks ffor the post.
    I wll certainly return.

  • sell

    One important point to consider: if you or your parents have
    several items of value — paintings, art, collectibles, precious metals and jewelry —
    consider hiring a professional appraiser to determine the fair market value of those items.
    If you plan ahead and take into consideration the unique features that a steel building can afford you
    with your plans as musicians, you will find that a steel building is
    the perfect solution for an affordable music studio. Military hangars serve the
    purpose of national security and thus are valued and expensive.

  • xem tai day

    My partner and I stumbled over here different website and thought I might check things out.
    I like what I see so i am just following you. Look forward to finding out about your web page repeatedly.

  • The 50K Mission

    Ridiculous story there. What occurred after? Take care!

  • Bob

    Technical Analysis- Technical Analysis iis the study of economic markets and price movements.

  • Demi

    Thanks for sharing your thoughts. I truly appreciate your efforts and I am waiting for your next post thanks once again.

  • personalized tshirts

    You ought to take part in a contest for one of the best
    websites online. I will recommend this website!

  • Como Saber Si Las Ugg Son Originales

    Everything is very open with a precise clarification of the challenges.
    It was truly informative. Your site is extremely
    helpful. Thanks for sharing!


    This piece of writing is in fact a good one it assists
    new internet viewers, who are wishing for blogging.


    It should be implemented in a way that it protects the human rights along with providing security to the utmost.

    A good kit also comes with a warranty or a guarantee.
    ATR: Adaptive Tone Reproduction: ATR improves the visibility of
    the entire picture by providing the optimum gradation compensation.

  • เครื่องวัดอุณหภูมิราคา

    I would like to thank you for the efforts you’ve put in writing this site.

    I really hope to check out the same high-grade content from you in the future as
    well. In fact, your creative writing abilities
    has motivated me to get my own site now ;)

  • letto a castello a scomparsa prezzi

    You really make it seem so easy along with your presentation however I to find
    this matter to be really something that I think I might by no
    means understand. It kind of feels too complex and extremely large for me.
    I’m looking ahead on your subsequent post, I’ll try to get the hang of it!

  • Funny

    What’s up, every time i used to check web site pߋsts here іn the eаrly hours in the break of day, for
    the reason tҺat i enjoy to gain knowledge of more ɑnd more.

  • make some money

    These involve simple tasks such as trying too discover something on a intesrnet site
    or feeding back on a new homepage.

  • black dress shoes aldo on sale

    You might be near you Santa with the mall should you that.

    “Triple play” means the telecommunications network, radio networks and Internet convergence.
    So it is better to choose strapless dress shoes, which have a long, sleek look with enclosed toes.
    When it comes to color, most experts will tell you to choose
    something neutral such as black, brown or navy. Available on Minimalist Shoes store and LEMs
    online store. Extremely packable, lightweight and easy to rinse out, it’s sure to
    be a favorite. Snug short event dress is fine greatly for slim ladies.

  • Beau

    Hey there fantastic blog! Does runing a blog simiilar to this take a massive amount work?
    I have virtually no understanding of programming however I was hkping to start my own blog soon. Anyhow, should you have any
    ideas or tips for new blog owners please share. I understand this is off topic buut I
    just wanted to ask. Thanks a lot!

  • halloween costume

    certainly like your web-site but you need to check the spelling on several of your posts.
    Many of them are rife with spelling issues and I in finding it very troublesome to inform the reality then again I’ll definitely come back again.

  • sex

    It’s awesome designed for me to have a web page, which is beneficial designed for my experience.
    thanks admin

  • Miracle Slim Cleanse Reviews

    I really like it when individuals get together and
    share thoughts. Great site, stick with it!

  • نمایندگی پرینتر سه بعدی

    This post will assist the internet viewers for creating new web site or even a blog from start to end.

  • Cialis

    Impotence has presented in plenty of traditional stories, also
    many cases of impotence were revealed and although many irrational
    values were associated with this condition, Islamic
    physicians recommended a variety of solutions
    to possibly treat erection concerns. Food and Drug Administration has just approved Cialis (tadalafil) to treat the signs and symptoms of benign prostatic hyperplasia (BPH), a
    condition in which the prostate gland becomes enlarged, and for the treatment
    of BPH and erectile dysfunction (ED), when the conditions occur
    simultaneously. The penalties for such a crime appear to be relatively minor.


    I will show yyou one of the best ways to take hesd to podcasts on your Android device.

  • Hack for blitz brigade I Found

    Thanks a bunch forr sharing this with aall of us youu really realize what you are speaking approximately!
    Bookmarked. Please additionally seek advice from my web siute =).
    We may have a hyperlink exchange arrangement between us

  • read full article

    Then, just when you least expect it, someone comes along and cuts a
    hole in the side of your newly constructed home leaving with all of the items you have worked so hard to collect.
    The King Post is a board that runs directly vertical from the top of the bottom chord to the underside
    of the top chords where they meet in the center of the shed.
    Over 90% of items in attics are usually discarded due to exposure to hot and cold, or items that
    are no longer useful.

  •;u=432 แทงบอลผ่านเน็ต

    I feel this is one of the most important information for me.
    And i’m satisfied reading your article. But wanna statement on few basic
    issues, The website taste is wonderful, the articles is in reality great : D.
    Excellent process, cheers

  • Christian

    Hey very interesting blog!

  • Online Home Payday Reviews

    Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is valuable and everything.

    Nevertheless think of if you added some great visuals
    or videos to give your posts more, “pop”!
    Your content is excellent but with images and videos, this website could
    definitely be one of the best in its field. Excellent blog!

  • atlanta allergy center

    Peculiar article, just what I was looking for.

  • Cheap Nike Free Run 5.0

    Hello there, I do think your web site may be having internet browser compatibility problems.
    When I look at your blog in Safari, it looks fine however, if opening in Internet Explorer, it’s got some overlapping issues.
    I merely wanted to provide you with a quick heads up!
    Other than that, wonderful blog!

  • Flat Abs for Life

    This high failure rate can be easily ascribed to
    the fact that most Fad Diet programs center on macro-nutrient
    manipulations mixed with low-calorie intake to achieve their fat reduction effects
    and this plan is something that can’t be maintained
    by an individual for very long. Taking into account daily routines, family, work,
    eating habits, and finances will create a working template
    for a healthy lifestyle. Other diets that were
    rated from the do-it-yourself category were the Paleo
    Diet, the Slim-Fast Diet, the South Beach Diet, and Spark – People.


    Hi! This post could not be written any better! Reading this post reminds me
    of my old room mate! He always kept chatting about this.

    I will forward this article to him. Pretty sure he will have
    a good read. Thank you for sharing!

  • True Derma Instant Lift Skincare

    It’s an amazing post designed for all the internet users; they
    will take advantage from it I am sure.

  • 5 figure day guide

    But when the book finally came out it was just, because I had laid
    the groundwork ahead of time, that one just seemed to explode

  • how to treat bunions on toes

    Sitting on the couch gave me ample time to notice the lint on the rugs, dust in the corners and dirt on the linoleum kitchen floor.

  • best chinese action movies

    Chinese faces even appeared in the Resident Evil, Transformers and X-Males sequence.

  • $1.98 Invitation Kits – DIY Pocket Wedding Invitations‎

    With a proper invitation there needs to be no graphics.

  • minneapolis web development

    I am not sure where you’re getting your info, but good
    topic. I needs to spend some time learning more or understanding more.

    Thanks for magnificent information I was looking for this info for my mission.

  • continue reading this..

    Made of bolted metal and easily locked they are far more secure than the traditional wood garage or wood structure.
    When you should have additional storage space to safeguard expensive equipment, one of these structures is an economical solution. This means although the
    pump is spinning it may not actually be pumping any water
    through the system.

  • West Germany Movie 1981 || The Strange Case Of Dr Jekyll And Miss Osbourne || Horror Movie

    I was wondering if you ever thought of changing the structure of your blog?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of
    content so people could connect with it better. Youve got an awful lot of text for only having 1
    or two pictures. Maybe you could space it out better?


    Rest assured there is a rocking chair design for you.

    This is also a good indicator as to whether to
    buy the mini or child size rocker. These chairs come in a variety
    of styles and sizes, including antique, traditional, glider, and outdoor.