LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2012, 04:49 PM   #1
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 42

Rep: Reputation: 0
Question Zoneminder Error - Shared Memory?


So I've installed Zone Minder and I set up a camera to play around with. I've been having fun trying to define the zones and trying to set how sensitive they are. One thing I have noticed is that I can't get a few errors to go away. The whole system appears to work, I get video feed, alerts are saved and events are created.

The errors I get are:

"Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results"

and

"Got unexpected memory map file size 36865524, expected 92162484"

I don't know much about shared memory but reading through the docs for the error I have found that I can use ipcs and ipcrm to take a peek at what is currently shared.

Looking through the ZoneMinder "options" I see that SHM_KEY is set to 0x7a6d0000 but polling the ipcs -m at a command line makes it seem like that key is not getting set (0x00000000 is though).

SHM_KEY | Shared memory root key to use | 0x7a6d0000

Code:
> ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x00000000 1376256    user   777        8294400    2          dest

>
How do I fix this? Am I missing something? Maybe it isn't a concern?

Thanks,
-Greg
 
Old 10-16-2012, 09:00 AM   #2
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 100

Rep: Reputation: 3
It is likely your shared memory size is too small. What output do you get for "cat /proc/sys/kernel/shmall"?
 
Old 10-16-2012, 09:04 AM   #3
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by blueh2o View Post
It is likely your shared memory size is too small. What output do you get for "cat /proc/sys/kernel/shmall"?
Yeah, I thought about that and increased it to 1GB:

$ cat /proc/sys/kernel/shmall
1073741824
$

Still no dice.
 
Old 10-16-2012, 09:23 AM   #4
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 100

Rep: Reputation: 3
What have you got for shmmax?
 
Old 10-16-2012, 09:25 AM   #5
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by blueh2o View Post
What have you got for shmmax?
Same:
$ cat /proc/sys/kernel/shmmax
1073741824
$
 
Old 10-16-2012, 09:41 AM   #6
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 100

Rep: Reputation: 3
That is very strange. Here is what my shared memory looks like:

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x740380aa 3538944 root 600 4 0
0x74038080 4227073 root 600 4 0
0x7a6d0001 4587522 apache 700 243307124 2
0x7403807f 4194307 root 600 4 0

You can see there the segment for zoneminder that is owned by apache. I am using zoneminder 1.24.2, on CentOS 5.8.

I cannot explain how you are having SHM issues and still getting video. Have you tried turning on "EXTRA_DEBUG"? Maybe zmc will spit out something useful.
 
Old 10-16-2012, 01:31 PM   #7
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by blueh2o View Post
That is very strange. Here is what my shared memory looks like:

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x740380aa 3538944 root 600 4 0
0x74038080 4227073 root 600 4 0
0x7a6d0001 4587522 apache 700 243307124 2
0x7403807f 4194307 root 600 4 0

You can see there the segment for zoneminder that is owned by apache. I am using zoneminder 1.24.2, on CentOS 5.8.

I cannot explain how you are having SHM issues and still getting video. Have you tried turning on "EXTRA_DEBUG"? Maybe zmc will spit out something useful.
I think I may have just figured this out... at least why I'm not seeing anything in shared memory using ipcs. I'm using 1.25.x and, apparently, the new version uses memory mapped files (in /dev/shm/zm or /run/shm/zm) instead of shared memory (using ipcs/ipcrm). But this doesn't help me to understand why I can't clean up the errors. :-\
 
Old 03-02-2014, 07:54 PM   #8
FreakWent
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 7

Rep: Reputation: 2
Sorry for bumping!

I have the same problem, and I can't find much on the Internet other than this. Did you ever get it working? What did you do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inconsistent error 75 using fchmod on shared memory file descriptors (x64) gquinlan Linux - Server 1 10-07-2011 07:13 PM
How to create a shared memory and some shared objects in linux? jeremy28 Programming 6 06-11-2010 05:21 AM
Linux shared memory segment access problem and x86 Virtual Memory layout. regmee Linux - Kernel 1 08-23-2008 12:11 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration