Shared memory errors (yes I've read the wiki!)
Posted: Sun Sep 12, 2010 4:16 pm
Hi, i'm totally new to Zoneminder but fairly familiar with Linux.
I'm running an Ubuntu 10.04.1 server edition inside a virtual machine on a Vmware ESXi host server.
The virtual machine has been granted 1GB of memory and high CPU resources.
However yesterday when first installing zoneminder, I started immediately getting shared memory errors.
Strangely, these disappeared after a couple of reboots.
Today however, while I was setting up pan/tilt control of my Foscam FI8908W camera, after a reboot the errors returned.
When this happens , these are the errors I'm seeing in syslog:
Now I've search most of the day for possible solutions, and about every page I found repeated what is already in the wiki about setting shared memory higher.
But just to be 100% sure, I will post some output of my ubuntu server here again:
contents of /etc/sysctl.conf:
Setting shared memory as per wiki:
Output of ipcs -l:
I'm running an Ubuntu 10.04.1 server edition inside a virtual machine on a Vmware ESXi host server.
The virtual machine has been granted 1GB of memory and high CPU resources.
However yesterday when first installing zoneminder, I started immediately getting shared memory errors.
Strangely, these disappeared after a couple of reboots.
Today however, while I was setting up pan/tilt control of my Foscam FI8908W camera, after a reboot the errors returned.
When this happens , these are the errors I'm seeing in syslog:
Code: Select all
UBUNTU-02 zma_m1[1595]: ERR [Shared data not initialised by capture daemon]
UBUNTU-02 zmdc[1518]: ERR ['zma -m 1' exited abnormally, exit status 255]
Now I've search most of the day for possible solutions, and about every page I found repeated what is already in the wiki about setting shared memory higher.
But just to be 100% sure, I will post some output of my ubuntu server here again:
contents of /etc/sysctl.conf:
Code: Select all
vyruz@UBUNTU-02:~$ cat /etc/sysctl.conf
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 4 4 1 7
##############################################################3
# Functions previously found in netbase
#
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
#net.ipv4.tcp_syncookies=1
# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
#net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Ignore ICMP broadcasts
#net.ipv4.icmp_echo_ignore_broadcasts = 1
#
# Ignore bogus ICMP errors
#net.ipv4.icmp_ignore_bogus_error_responses = 1
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
kernel.shmall = 134217728
kernel.shmmax = 134217728
Setting shared memory as per wiki:
Code: Select all
vyruz@UBUNTU-02:~$ sudo sysctl -p
kernel.shmall = 134217728
kernel.shmmax = 134217728
Code: Select all
vyruz@UBUNTU-02:~$ ipcs -l
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (kbytes) = 536870912
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 = 1719
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384