Forums
  News| Documentation| Screenshots| Downloads| Support| Forums| Wiki| Shop| Search| Donate| Contact Home
FAQFAQ SearchSearch MemberlistMemberlist UsergroupsUsergroups RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

jpeg SIMD (MMX) success!
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Donate $20 Donate $40
Post new topic   Reply to topic    ZoneMinder Forum Index -> ZoneMinder Previous Versions
View previous topic :: View next topic  
Author Message
krietor



Joined: 21 May 2006
Posts: 7
Location: Astoria, Oregon

PostPosted: Fri Oct 17, 2008 6:53 pm    Post subject: These JPEG libs are great. Reply with quote

I experienced a DRAMATIC reduction in load - I mean from around 1.0 to down to about 0.25 ! All I did was the following and then restarted ZM from the console.
Code:

wget http://cetus.sakura.ne.jp/softlab/jpeg-x86simd/sources/jpegsrc-6b-x86simd-1.02.tar.gz
tar xzvf jpegsrc-6b-x86simd-1.02.tar.gz
wget http://internap.dl.sourceforge.net/sourceforge/nasm/nasm-2.02.tar.gz
tar -xvf nasm-2.02.tar.gz
cd nasm-2.02

Install some developer libraries and then compile:
Code:
 sudo apt-get install libc6-dev g++ gcc
./configure
make
sudo make install
cd ../jpeg-6bx/
./configure --enable-shared
make
sudo make install
ldconfig
Back to top
View user's profile Send private message Visit poster's website
akmoller



Joined: 20 Jan 2009
Posts: 3

PostPosted: Thu Feb 05, 2009 4:27 pm    Post subject: Reply with quote

Worked for me too, just halved my processor load.

I followed all the steps for the install but the cpu load didn't decrease, which led me to believe that the libs weren't installed. I looked again on the webpage with the source and there is a exec patch for the library - seems there were some modifications in january. Only after i applied the patch it worked like it should. Hope it helps someone.
Back to top
View user's profile Send private message
CX23882-19



Joined: 08 Jul 2007
Posts: 4

PostPosted: Tue Mar 10, 2009 5:26 pm    Post subject: Reply with quote

Could somebody please explain in simple terms (to a Linux newbie) how to replace these JPEG libraries on a ZMLiveCD 1.22 hard disk installation?

At this point, I've got a folder at /home/guest/jpeg-6bx/.libs/ that contains the following files:
cjpeg
djpeg
jpegtran
libjpeg.la
libjpeg.lai
libjpeg.so
libjpeg.so.62
libjpeg.so.62.1.0

I don't know what to do with them. Do they go under /lib/ or /usr/lib/? Do they all go there or just some of them? What's the best way to put them there (konsole?)?

In some ways I wish that there was a version of ZoneMinder for Windows, as I could do stuff like this in a matter of minutes, but I keep telling myself that I will learn how to use Linux, eventually, and the system has been running 24/7 for over a year and a half without crashing once.

It's an ancient Pentium III 650MHz (with 768MB RAM), so I'd like to squeeze every bit of juice out of that processor, even though it appears to run just fine.

I'm tempted to move to a Ubuntu 8.04 based system but don't know if it's worth mucking about with it when it's working. Mandriva 2007.0 is starting to become a pain in the arse with dependencies.
Back to top
View user's profile Send private message
lorsungcu



Joined: 23 Jun 2008
Posts: 23

PostPosted: Tue Mar 10, 2009 6:09 pm    Post subject: Reply with quote

we use ubuntu server with no issues, 12 cameras at 10-15fps. dont install any gui, if youre interested in saving cycles. The posts earlier in the thread lay out exactly how to do this; just read them and apply them to your distro. it's spelled out really clearly - just be patient and remember it's just a matter of pressing the right buttons in the right order.
Back to top
View user's profile Send private message
SyRenity



Joined: 24 Jan 2005
Posts: 301

PostPosted: Sat Mar 21, 2009 11:38 pm    Post subject: Reply with quote

Hi.

Any idea if the x64 libraries will ever come out?

Regards.
Back to top
View user's profile Send private message
skydreamer



Joined: 09 Apr 2009
Posts: 6

PostPosted: Thu Apr 09, 2009 2:47 am    Post subject: Reply with quote

Worked for me too, the load on Q6700 2.66GHz went down from 1.0 to 0.33 (1.0 is 25% load on quad core). I needed the patch as per the above post on FC8:

akmoller wrote:
......on the webpage with the source and there is a exec patch for the library - seems there were some modifications in january. Only after i applied the patch it worked like it should. Hope it helps someone.


Thanks!
Back to top
View user's profile Send private message
rony000



Joined: 15 Apr 2009
Posts: 3
Location: dhaka

PostPosted: Wed Apr 15, 2009 5:32 pm    Post subject: Post subject: jpeg SIMD (MMX) su Reply with quote

I don't know what to do with them. Do they go under /lib/ or /usr/lib/? Do they all go there or just some of them? What's the best way to put them there (konsole?)?

In some ways I wish that there was a version of ZoneMinder for Windows, as I could do stuff like this in a matter of minutes, but I keep telling myself that I will learn how to use Linux, eventually, and the system has been running 24/7 for over a year and a half without crashing on Rolling Eyes
_________________
rony
Back to top
View user's profile Send private message
robfantini



Joined: 19 Nov 2008
Posts: 6

PostPosted: Mon Apr 20, 2009 2:05 am    Post subject: Ubuntu hardy install notes Reply with quote

dbosso: thank you for the tips..
this might be posted elsewhere , but this is how we installed .

Code:

aptitude install nasm

cd /usr/src

wget http://cetus.sakura.ne.jp/softlab/jpeg-x86simd/sources/jpegsrc-6b-x86simd-1.02.tar.gz

tar xzvf jpegsrc-6b-x86simd-1.02.tar.gz

cd jpeg-6bx

./configure enable-shared

make
make install
ldconfig


then restart zm
Code:

/etc/init.d/zoneminder restart
Back to top
View user's profile Send private message
johnnytolengo



Joined: 14 Oct 2008
Posts: 184

PostPosted: Sun Nov 08, 2009 7:08 pm    Post subject: 64bit Reply with quote

Does it work under 64 bit OS?

J.
Back to top
View user's profile Send private message
kingofkya



Joined: 26 Mar 2007
Posts: 947
Location: Las Vegas, Nevada

PostPosted: Sat Nov 14, 2009 12:38 am    Post subject: Reply with quote

no 64 bit support last I checked
_________________
Book Recommendation:
SOFTWARE WARS
GOOGLE TUTORIAL

Professional ZM install $30
Camera Setup $5 per cam
PM for details.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
trendkill



Joined: 10 Mar 2007
Posts: 35

PostPosted: Wed Dec 02, 2009 2:53 pm    Post subject: Re: 64bit Reply with quote

No, and it dosen't work under i686 too Sad

configure: error: This version of JPEG library is for i386 or compatible processors only.

root@dxn-dvr:~/jpeg-6bx# uname -a
Linux dxn-dvr 2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux


johnnytolengo wrote:
Does it work under 64 bit OS?

J.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jfkastner



Joined: 17 Jun 2009
Posts: 72

PostPosted: Tue Dec 08, 2009 2:09 am    Post subject: Reply with quote

"... is for i386 or compatible processors only"

strange - the 386, 486 and early pentiums did NOT have MMX or SIMD like SSE etc

would be great to have such a lib working ... any ideas?
Back to top
View user's profile Send private message
coke



Joined: 30 Jan 2008
Posts: 517
Location: St. Louis, MO, USA

PostPosted: Mon Dec 14, 2009 9:22 pm    Post subject: Reply with quote

So, somewhere in the upgrade from Ubuntu 8.0.4 and Zoneminder 1.24.1 to U-9.10 and ZM 1.24.2, something whined at me about wanting libjpeg version 7, so I went ahead and used it. My system load was horrible, so I dropped the venerable old SIMD files on top of them, and now I'm back to a usable machine.

So apparently they still work. Though you'd think someone could have threaded it and made improvements by now, but I'm not complaining, 2006's apparently still a good vintage for libjpeg mmx.
Back to top
View user's profile Send private message
aklettke



Joined: 29 Jan 2010
Posts: 4

PostPosted: Fri Jan 29, 2010 12:12 am    Post subject: SUCCESS! Reply with quote

I know this is old, but...

There is now a 64-bit (and optimized 32-bit) versions of libjpeg/SIMD, brought to you by the TigerVNC team. We have personally tested this with a Debian server running Zoneminder for 24 cameras, and our CPU usage on the box has dropped from ~80% to ~40%, a HUGE difference. We were looking at a beefier server to handle the addition of more cameras, now there is no need.

For more information, see here: http://www.virtualgl.org/DeveloperInfo/Libjpeg

I was able to get this from DRC (drcommander-at-users-dot-sourceforge-dot-net), a developer with TigerVNC. He offers consulting services for libjpeg/SIMD at $60/hour.


Last edited by aklettke on Fri Jan 29, 2010 10:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
knnniggett



Joined: 18 Oct 2007
Posts: 77
Location: St. Louis, MO

PostPosted: Fri Jan 29, 2010 2:27 am    Post subject: Reply with quote

Hey, great work!
Here are my results for 64bit CentOS 5.4.

The version of nasm found in the CentOS repositories is 0.98. According to the website mentioned, I need nasm-2.05.

Finding an rpm for nasm-2.05 was easy, but unfortunately nasm-2.05 requires glibc-2.7.

Because glibc is a core component, I'm choosing to stop at this point unless someone can offer a way around this requirement.

I'm sure this problem does not exist for distributions that use newer components so don't let this post discourage you if you are running some other linux distro.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ZoneMinder Forum Index -> ZoneMinder Previous Versions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
 ©2007 Triornis Ltd News • Documentation • Screenshots • Downloads • Support • Forums • Wiki • Shop • Search • Donate • Contact • Home