Tags » Shared Memory

Kernel tuning: shared memory

A general guideline for kernel tuning pertaining to shared memory (no core file generation) is as follows,

  • Obtain the total memory from the system
    • mem=$(free|grep Mem|awk ‘{print$2}’)
  • 92 more words

Enabling Shared Memory use with Huge Pages

There are two tunables that are relevant to the use of huge pages with shared memory. The first is the sysctl kernel.shmmax kernel parameter configured permanently in /etc/sysctl.conf or temporarily in /proc/sys/kernel/shmmax. 98 more words


Ways to share memory between processes in C

First of all why we need to share memory among different process?

The answer to this question is very simple whenever a program is loaded into main memory (RAM) it is allocated a certain amount of memory segment to it by operating system and no other process has permission to access that memory segment. 251 more words


How to find a process which is using the ipcs shared memory segment ?

IPC stands for Inter-process Communication.

This technique allows the processes to communicate with each another.

Since each process has its own address space and unique user space, how does the process communicate each other? 344 more words


Is there a reliable, cross-platform (on *nix anyway) way to create a temporary file on another device?

I’m trying to write a test case for some code that should iterates over a filesystem tree, but should stop if a file is on another device. 53 more words

Unix IPC - Shared Memory

This is a personal blog but this is a personal matter. I’m trying to figure out more about IPC’s. In this episode I’m featuring Shared Memory written in C on an Unix machine. 456 more words