Re: slow down capture, speed up analysis or increase ring bu
Posted: Mon Oct 24, 2011 5:40 pm
bb99,
So I attempted to apply that performance patch......tons of errors =\
[root@zoneminder ZoneMinder-1.25.0]# patch -p1 < zm_1_24_4-perfpatch_v1m.patch
patching file config.h.in
Hunk #1 FAILED at 177.
Hunk #2 succeeded at 292 (offset 18 lines).
1 out of 2 hunks FAILED -- saving rejects to file config.h.in.rej
patching file configure
Hunk #1 succeeded at 5787 (offset 1 line).
Hunk #2 succeeded at 5811 (offset 1 line).
Hunk #3 succeeded at 6244 (offset 1 line).
Hunk #4 FAILED at 7542.
1 out of 4 hunks FAILED -- saving rejects to file configure.rej
patching file configure.ac
Hunk #1 FAILED at 246.
Hunk #2 FAILED at 284.
2 out of 2 hunks FAILED -- saving rejects to file configure.ac.rej
patching file db/zm_create.sql.in
Hunk #1 succeeded at 329 (offset 15 lines).
patching file scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in
patching file scripts/ZoneMinder/lib/ZoneMinder/Memory.pm.in
patching file src/Makefile.am
patching file src/Makefile.in
Hunk #1 succeeded at 242 (offset -4 lines).
patching file src/zm_camera.cpp
patching file src/zm_camera.h
patching file src/zm_config.h.in
Hunk #1 succeeded at 38 (offset 3 lines).
patching file src/zm_config_defines.h
Hunk #1 FAILED at 27.
Hunk #2 succeeded at 250 (offset 21 lines).
Hunk #3 succeeded at 470 (offset 42 lines).
1 out of 3 hunks FAILED -- saving rejects to file src/zm_config_defines.h.rej
patching file src/zm_event.cpp
Hunk #1 FAILED at 38.
Hunk #2 FAILED at 596.
Hunk #3 FAILED at 637.
Hunk #4 FAILED at 751.
Hunk #5 FAILED at 1185.
Hunk #6 FAILED at 1196.
Hunk #7 FAILED at 1208.
Hunk #8 FAILED at 1219.
Hunk #9 FAILED at 1240.
Hunk #10 FAILED at 1269.
10 out of 10 hunks FAILED -- saving rejects to file src/zm_event.cpp.rej
patching file src/zm_ffmpeg_camera.cpp
Hunk #3 FAILED at 91.
1 out of 6 hunks FAILED -- saving rejects to file src/zm_ffmpeg_camera.cpp.rej
patching file src/zm_ffmpeg_camera.h
patching file src/zm_file_camera.cpp
patching file src/zm_file_camera.h
Hunk #1 succeeded at 36 (offset 2 lines).
patching file src/zm_image.cpp
patching file src/zm_image.h
can't find file to patch at input line 5121
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/zm_jpeg.c b/src/zm_jpeg.c
|index a7517c5..996003a 100644
|--- a/src/zm_jpeg.c
|+++ b/src/zm_jpeg.c
--------------------------
File to patch: src/zm_jpeg.cpp
patching file src/zm_jpeg.cpp
Hunk #1 succeeded at 393 with fuzz 2 (offset 4 lines).
patching file src/zm_jpeg.h
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED -- saving rejects to file src/zm_jpeg.h.rej
patching file src/zm_local_camera.cpp
patching file src/zm_local_camera.h
patching file src/zm_mem_utils.h
patching file src/zm_monitor.cpp
patching file src/zm_monitor.h
patching file src/zm_mpeg.cpp
patching file src/zm_mpeg.h
patching file src/zm_remote_camera.cpp
patching file src/zm_remote_camera_http.cpp
Hunk #1 FAILED at 1096.
Hunk #2 FAILED at 1112.
Hunk #3 FAILED at 1123.
3 out of 3 hunks FAILED -- saving rejects to file src/zm_remote_camera_http.cpp.rej
patching file src/zm_remote_camera_rtsp.cpp
Hunk #4 FAILED at 231.
1 out of 4 hunks FAILED -- saving rejects to file src/zm_remote_camera_rtsp.cpp.rej
patching file src/zm_remote_camera_rtsp.h
patching file src/zm_rgb.h
patching file src/zm_stream.cpp
patching file src/zm_thread.h
patching file src/zm_utils.cpp
Hunk #1 FAILED at 18.
1 out of 2 hunks FAILED -- saving rejects to file src/zm_utils.cpp.rej
patching file src/zm_utils.h
patching file src/zm_zone.cpp
patching file src/zm_zone.h
patching file src/zma.cpp
Hunk #1 succeeded at 91 with fuzz 2 (offset -2 lines).
patching file src/zmc.cpp
Hunk #1 succeeded at 149 with fuzz 2 (offset -2 lines).
patching file src/zmf.cpp
Hunk #1 succeeded at 159 with fuzz 2 (offset -2 lines).
patching file src/zms.cpp
Hunk #1 succeeded at 86 with fuzz 2 (offset -2 lines).
patching file src/zmstreamer.cpp
Hunk #1 FAILED at 146.
1 out of 1 hunk FAILED -- saving rejects to file src/zmstreamer.cpp.rej
patching file web/includes/actions.php
patching file web/lang/big5_big5.php
patching file web/lang/cn_zh.php
patching file web/lang/cs_cz.php
patching file web/lang/de_de.php
patching file web/lang/dk_dk.php
patching file web/lang/en_gb.php
Hunk #1 succeeded at 81 with fuzz 2 (offset 9 lines).
Hunk #2 succeeded at 149 (offset 10 lines).
patching file web/lang/en_us.php
patching file web/lang/es_ar.php
patching file web/lang/et_ee.php
patching file web/lang/fr_fr.php
patching file web/lang/he_il.php
patching file web/lang/hu_hu.php
patching file web/lang/it_it.php
patching file web/lang/ja_jp.php
patching file web/lang/nl_nl.php
patching file web/lang/pl_pl.php
patching file web/lang/pt_br.php
patching file web/lang/ro_ro.php
patching file web/lang/ru_ru.php
patching file web/lang/se_se.php
patching file web/skins/classic/views/js/monitor.js.php
patching file web/skins/classic/views/monitor.php
patching file web/skins/classic/views/monitorprobe.php
Trying your suggestion on the pre-event.......
So I attempted to apply that performance patch......tons of errors =\
[root@zoneminder ZoneMinder-1.25.0]# patch -p1 < zm_1_24_4-perfpatch_v1m.patch
patching file config.h.in
Hunk #1 FAILED at 177.
Hunk #2 succeeded at 292 (offset 18 lines).
1 out of 2 hunks FAILED -- saving rejects to file config.h.in.rej
patching file configure
Hunk #1 succeeded at 5787 (offset 1 line).
Hunk #2 succeeded at 5811 (offset 1 line).
Hunk #3 succeeded at 6244 (offset 1 line).
Hunk #4 FAILED at 7542.
1 out of 4 hunks FAILED -- saving rejects to file configure.rej
patching file configure.ac
Hunk #1 FAILED at 246.
Hunk #2 FAILED at 284.
2 out of 2 hunks FAILED -- saving rejects to file configure.ac.rej
patching file db/zm_create.sql.in
Hunk #1 succeeded at 329 (offset 15 lines).
patching file scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in
patching file scripts/ZoneMinder/lib/ZoneMinder/Memory.pm.in
patching file src/Makefile.am
patching file src/Makefile.in
Hunk #1 succeeded at 242 (offset -4 lines).
patching file src/zm_camera.cpp
patching file src/zm_camera.h
patching file src/zm_config.h.in
Hunk #1 succeeded at 38 (offset 3 lines).
patching file src/zm_config_defines.h
Hunk #1 FAILED at 27.
Hunk #2 succeeded at 250 (offset 21 lines).
Hunk #3 succeeded at 470 (offset 42 lines).
1 out of 3 hunks FAILED -- saving rejects to file src/zm_config_defines.h.rej
patching file src/zm_event.cpp
Hunk #1 FAILED at 38.
Hunk #2 FAILED at 596.
Hunk #3 FAILED at 637.
Hunk #4 FAILED at 751.
Hunk #5 FAILED at 1185.
Hunk #6 FAILED at 1196.
Hunk #7 FAILED at 1208.
Hunk #8 FAILED at 1219.
Hunk #9 FAILED at 1240.
Hunk #10 FAILED at 1269.
10 out of 10 hunks FAILED -- saving rejects to file src/zm_event.cpp.rej
patching file src/zm_ffmpeg_camera.cpp
Hunk #3 FAILED at 91.
1 out of 6 hunks FAILED -- saving rejects to file src/zm_ffmpeg_camera.cpp.rej
patching file src/zm_ffmpeg_camera.h
patching file src/zm_file_camera.cpp
patching file src/zm_file_camera.h
Hunk #1 succeeded at 36 (offset 2 lines).
patching file src/zm_image.cpp
patching file src/zm_image.h
can't find file to patch at input line 5121
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/zm_jpeg.c b/src/zm_jpeg.c
|index a7517c5..996003a 100644
|--- a/src/zm_jpeg.c
|+++ b/src/zm_jpeg.c
--------------------------
File to patch: src/zm_jpeg.cpp
patching file src/zm_jpeg.cpp
Hunk #1 succeeded at 393 with fuzz 2 (offset 4 lines).
patching file src/zm_jpeg.h
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED -- saving rejects to file src/zm_jpeg.h.rej
patching file src/zm_local_camera.cpp
patching file src/zm_local_camera.h
patching file src/zm_mem_utils.h
patching file src/zm_monitor.cpp
patching file src/zm_monitor.h
patching file src/zm_mpeg.cpp
patching file src/zm_mpeg.h
patching file src/zm_remote_camera.cpp
patching file src/zm_remote_camera_http.cpp
Hunk #1 FAILED at 1096.
Hunk #2 FAILED at 1112.
Hunk #3 FAILED at 1123.
3 out of 3 hunks FAILED -- saving rejects to file src/zm_remote_camera_http.cpp.rej
patching file src/zm_remote_camera_rtsp.cpp
Hunk #4 FAILED at 231.
1 out of 4 hunks FAILED -- saving rejects to file src/zm_remote_camera_rtsp.cpp.rej
patching file src/zm_remote_camera_rtsp.h
patching file src/zm_rgb.h
patching file src/zm_stream.cpp
patching file src/zm_thread.h
patching file src/zm_utils.cpp
Hunk #1 FAILED at 18.
1 out of 2 hunks FAILED -- saving rejects to file src/zm_utils.cpp.rej
patching file src/zm_utils.h
patching file src/zm_zone.cpp
patching file src/zm_zone.h
patching file src/zma.cpp
Hunk #1 succeeded at 91 with fuzz 2 (offset -2 lines).
patching file src/zmc.cpp
Hunk #1 succeeded at 149 with fuzz 2 (offset -2 lines).
patching file src/zmf.cpp
Hunk #1 succeeded at 159 with fuzz 2 (offset -2 lines).
patching file src/zms.cpp
Hunk #1 succeeded at 86 with fuzz 2 (offset -2 lines).
patching file src/zmstreamer.cpp
Hunk #1 FAILED at 146.
1 out of 1 hunk FAILED -- saving rejects to file src/zmstreamer.cpp.rej
patching file web/includes/actions.php
patching file web/lang/big5_big5.php
patching file web/lang/cn_zh.php
patching file web/lang/cs_cz.php
patching file web/lang/de_de.php
patching file web/lang/dk_dk.php
patching file web/lang/en_gb.php
Hunk #1 succeeded at 81 with fuzz 2 (offset 9 lines).
Hunk #2 succeeded at 149 (offset 10 lines).
patching file web/lang/en_us.php
patching file web/lang/es_ar.php
patching file web/lang/et_ee.php
patching file web/lang/fr_fr.php
patching file web/lang/he_il.php
patching file web/lang/hu_hu.php
patching file web/lang/it_it.php
patching file web/lang/ja_jp.php
patching file web/lang/nl_nl.php
patching file web/lang/pl_pl.php
patching file web/lang/pt_br.php
patching file web/lang/ro_ro.php
patching file web/lang/ru_ru.php
patching file web/lang/se_se.php
patching file web/skins/classic/views/js/monitor.js.php
patching file web/skins/classic/views/monitor.php
patching file web/skins/classic/views/monitorprobe.php
Trying your suggestion on the pre-event.......