Results 1 to 3 of 3

Thread: sysctl -w kernel.shmmax= fails to survive a reboot

  1. #1
    Join Date
    Nov 2005
    Location
    Atlanta GA
    Beans
    297
    Distro
    Ubuntu 16.04 Xenial Xerus

    sysctl -w kernel.shmmax= fails to survive a reboot

    sysctl -w kernel.shmmax=120337984
    is required to get my highly ptuned postgresql-9.1 server to start on a 10.04 LTS server.
    From what I have found, the -w is supposed to stand for "write to system config file" not "well, it might happen if you wish hard enough."

    What am I doing -wrong?
    Wolf Halton - Senior PCI Compliance/Vulnerability Engineer @ Atlanta Cloud Technology
    Today is Yesterday's Tomorrow!
    'This Apt Has Super Cow Powers! -"Have you mooed today?"'

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: sysctl -w kernel.shmmax= fails to survive a reboot

    -w makes the change temporarily for the current boot. To make it permanent, add it to the end of /etc/sysctl.conf:
    Code:
    kernel.shmmax = 120337984

  3. #3
    Join Date
    Nov 2005
    Location
    Atlanta GA
    Beans
    297
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: sysctl -w kernel.shmmax= fails to survive a reboot

    Thanks! I have read that before but since that file is full of network packet-handling directives and nothing else, it seemed unlikely.

    I will try it and see

    Wolf
    Wolf Halton - Senior PCI Compliance/Vulnerability Engineer @ Atlanta Cloud Technology
    Today is Yesterday's Tomorrow!
    'This Apt Has Super Cow Powers! -"Have you mooed today?"'

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •