Re: [Info-ingres] (Fwd) Linux shared memory



On Tue, 23 May 2006 08:16:02 -0400, <martin.bowes@xxxxxxxxxxxxx> wrote:
Hi Dudes,

I'd like to configure some shared cache servers on a Linux box. But
that box has a tiddly shared memory segment.

How do I configure scads of shared memory on Linux?

I'm running: Red Hat Linux release 7.1 (Seawolf)

Martin Bowes

You can write to the proc file system (as root), for example:
echo 134217728 > /proc/sys/kernel/shmall
echo 134217728 > /proc/sys/kernel/shmmax

You can also use sysctl, and can make the new settings survive reboot by putting them in /etc/sysctl.conf, for example:
kernel.shmall = 134217728
kernel.shmmax = 134217728

MikeT

--
Michael Touloumtzis
Ingres Corporation
.



Relevant Pages

  • POSIX shm and mmap on Solaris problem -- a bug?
    ... works fine on Linux. ... we need to attach two POSIX shared memory ... In order to find the suitable addresses for the second segment, ... if (ftruncate(sfd, shmsize)) { ...
    (comp.unix.solaris)
  • POSIX shm and mmap on Solaris problem -- a bug?
    ... works fine on Linux. ... we need to attach two POSIX shared memory ... In order to find the suitable addresses for the second segment, ... if (ftruncate(sfd, shmsize)) { ...
    (comp.unix.programmer)
  • Re: Quad AMD opteron system and Linux
    ... linux doesn't like processes bigger than 1.5G. ... I'd like to be able to have 8GB of shared memory, for DB cache, and ... 16GB of memory being used for filesystem cache. ... I blew up a box this time last week with dual-Xeon/4GB RAM when it had ...
    (comp.os.linux.hardware)
  • [Info-ingres] (Fwd) Linux shared memory
    ... I'd like to configure some shared cache servers on a Linux box. ... How do I configure scads of shared memory on Linux? ... Random Duckman Quote #108: ... Giving Duckman an aphrodysiac is like giving Michael ...
    (comp.databases.ingres)
  • PTHREAD_PROCESS_SHARED on GNU/Linux
    ... a stock Linux kernel won't release the lock on behalf of the ... mutex, so you'd probably have to stop everything and re-initialize the ... shared memory if any process dies unexpectedly. ...
    (comp.programming.threads)