ZMLinuxOS live cd monitor size

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
neilk
Posts: 23
Joined: Sun Jun 03, 2007 2:54 pm

ZMLinuxOS live cd monitor size

Post by neilk »

well first off downloaded and installed ZMLinuxOS live.
quick edit of modprobe.conf to set card to same has i had working under ZM 1.23.3 on suse 10.1, no big problems working stable and a nice low load on the system.

Main problem is monitor size it will only run if i set size to 384x288 , why ?
under suse and the ZMLive cd 2007 i had 4 cam's running at 640x480 with no problems, apart from a load of 23.5 on the system .

yes i get the shared memory kick in the nut's, but no matter what i set shmall and shmmax to i still cant get a monitor to run at 640x480 they just go red.

and i have read the FAQ's re shared memory but as a linux noob, you may as well talk to me about AI :(

any help would be very thankfully received


Neil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

When you set the shared memory in /proc/sys/kernel/shmmax via echo,
Can you see the changes reflected with ipcs -l ?
and since you didn't mention it, did you restart the ZM service after the change?
neilk
Posts: 23
Joined: Sun Jun 03, 2007 2:54 pm

Post by neilk »

yes the changes are shown via ipcs -l after the echo'ed changes
i even edited the sysctl. file so the changes were set after a reboot.

as said it seems no matter how much memory change is done , the result stays the same ie unable to set monitor res higher then 384x288
error below
  • Jul 31 16:51:58 zmhost zma_m1[21521]: INF [House-back: 1669000 - Processing at 24.39 fps]
    Jul 31 16:52:12 zmhost zma_m2[21048]: INF [House-front: 1086000 - Processing at 15.38 fps]
    Jul 31 16:52:13 zmhost zma_m3[2287]: INF [Landing-dome: 46000 - Processing at 12.05 fps]
    Jul 31 16:52:18 zmhost zmc_dvideo2[5634]: INF [Landing-dome: 1750000 - Capturing at 11.90 fps]
    Jul 31 16:52:20 zmhost zmfix[2954]: INF [New Debug Level = 2, New Debug Log = /var/log/zm/zm_debug.log.02954]
    Jul 31 16:52:20 zmhost zmdc[5594]: INF ['zmc -d /dev/video1' stopping at 08/07/31 16:52:20]
    Jul 31 16:52:20 zmhost zmc_dvideo1[5751]: INF [Got signal (Terminated), exiting]
    Jul 31 16:52:20 zmhost zmdc[5594]: INF ['zmc -d /dev/video1' exited normally]
    Jul 31 16:52:20 zmhost zmdc[5594]: INF ['zmc -d /dev/video1' starting at 08/07/31 16:52:20, pid = 2964]
    Jul 31 16:52:20 zmhost zmdc[2964]: INF ['zmc -d /dev/video1' started at 08/07/31 16:52:20]
    Jul 31 16:52:20 zmhost zmc_dvideo1[2964]: INF [Debug Level = 0, Debug Log = <none>]
    Jul 31 16:52:20 zmhost zmc_dvideo1[2964]: INF [New Debug Level = 2, New Debug Log = /var/log/zm/zm_debug.log.02964]
    Jul 31 16:52:20 zmhost zmc_dvideo1[2964]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
this is after setting monitor res to 640x480, (house-front) Video1


ZM debug out put

  • 07/31/08 16:52:20.834547 zmc_dvideo1[2964].INF-zm_debug.c/305 [New Debug Level = 2, New Debug Log = /var/log/zm/zm_debug.log.02964]
    07/31/08 16:52:20.835486 zmc_dvideo1[2964].DB1-zm_monitor.cpp/1579 [Got 1 monitors]
    07/31/08 16:52:20.835614 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/91 [Old P:3]
    07/31/08 16:52:20.835638 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/92 [Old D:16]
    07/31/08 16:52:20.835659 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/93 [Old B:32768]
    07/31/08 16:52:20.835681 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/94 [Old h:32768]
    07/31/08 16:52:20.835702 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/95 [Old Cl:32768]
    07/31/08 16:52:20.835723 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/96 [Old Cn:32768]
    07/31/08 16:52:20.835760 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/140 [Old X:0]
    07/31/08 16:52:20.835781 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/141 [Old Y:0]
    07/31/08 16:52:20.835804 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/142 [Old W:384]
    07/31/08 16:52:20.835825 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/143 [Old H:288]
    07/31/08 16:52:20.835859 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/166 [vmb.frames = 16]
    07/31/08 16:52:20.835881 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/167 [vmb.size = 34078720]
    07/31/08 16:52:20.835927 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/192 [Old C:0]
    07/31/08 16:52:20.835948 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/193 [Old F:0]
    07/31/08 16:52:20.835970 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/194 [Old Fl:2]
    07/31/08 16:52:20.835991 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/195 [Old T:2]
    07/31/08 16:52:20.836015 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/212 [New X:0]
    07/31/08 16:52:20.836037 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/213 [New Y:0]
    07/31/08 16:52:20.836057 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/214 [New W:640]
    07/31/08 16:52:20.836078 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/215 [New H:480]
    07/31/08 16:52:20.836100 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/222 [New P:3]
    07/31/08 16:52:20.836122 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/223 [New D:16]
    07/31/08 16:52:20.836143 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/224 [New B:32768]
    07/31/08 16:52:20.836164 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/225 [New h:32768]
    07/31/08 16:52:20.836184 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/226 [New Cl:32768]
    07/31/08 16:52:20.836206 zmc_dvideo1[2964].DB1-zm_local_camera.cpp/227 [New Cn:32768]
    07/31/08 16:52:20.842092 zmc_dvideo1[2964].DB1-zm_monitor.cpp/259 [monitor purpose=1]
    07/31/08 16:52:20.842138 zmc_dvideo1[2964].DB1-zm_monitor.cpp/266 [shm.size=36865188]
    07/31/08 16:52:20.842223 zmc_dvideo1[2964].ERR-zm_monitor.cpp/270 [Can't shmget, probably not enough shared memory space free: Invalid argument]
output from zmwatch.log


08/02/08 12:27:40.574310 zmwatch[17467].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]

memory settings

cat /proc/sys/kernel/shmall 384000000

i have set all monitor size to 480x360

even with the monitor sizes set to 384x288 i was still getting the same memory errors


thanks for your time with this Cordel.

Neil
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Shared memory problems

Post by liviab »

Dec 17 16:15:39 liviab zmwatch[11806]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]

how can I fix this shared memory error??

The command ipcs -l shows:

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
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 = 1747
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
Post Reply