Hello,
When creating shared memory in C, should be remove shared memory with shmctl function when don't need it. If it didn't remove, occupied shared memory stay and remain.
If we create shared memory repeatedly without removing unusable shared memory, /dev/shm will full.
Does Unix or Linux distributions do action to them?
The man page for top defines SHR as:
t: SHR -- Shared Mem size (kb) The amount of shared memory used by a
task. It simply reflects memory that could be potentially shared with
other processes.
I can see this growing for one process but I am unsure of what exactly is being reported here.
Hello.
I am new to this forum and I would like to ask for advice about low level POSIX programming.
I have to implement a POSIX compliant C shared library.
A file will have some variables and the shared library will have some functions which need those variables.
There is one special requirement, the access to the variables should be as quick as posible, which means that variables should be
if you are interested in motivation Ill elaborate it in next few sentences, if not just skip to the Q.
I was thinking about making fast logger but the one that is not affected when program crashes(aka few last log msgs arent lost).
During the Postgres Installation on Mac OS X 10.7, I get the following message:
Your system seems to be configured with less than 32MB of shared
memory, which is required for this application.
An interesting change in the 2.6.32 Linux kernel is Kernel Shared Memory (KSM). KSM allows the hypervisor to increase the number of concurrent virtual machines by consolidating identical memory pages. Explore the ideas behind KSM (such as storage de-duplication), its implementation, and how you manage it.
What's the location of the sysctl.conf file on lion? In Snow Leopard it was in /etc/sysctl.conf but now that folder doesn't contain it anymore. Searching for the file in spotlight yields no results.
Have the shared memory settings been moved to a different conf file? What is it's name?
EDIT
I am trying to modify the kernel shared memory settings of the machine.
Linux as a hypervisor includes a number of innovations, and one of the more interesting changes in the 2.6.32 kernel is Kernel Shared Memory (KSM). KSM allows the hypervisor to increase the number of concurrent virtual machines by consolidating identical memory pages.
My linux distro uses William LeFebvre's version of top. The version of top supports colors, but one must export the TOPCOLORS variable to enable it.