Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148417 - Xcache : a php opcode cacher
Summary: Xcache : a php opcode cacher
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PHP Bugs
URL: http://trac.lighttpd.net/xcache/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-20 13:24 UTC by Saurabh Singhvi
Modified: 2007-02-13 23:48 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for xcache 1.0.1 (should be usable for all releases, excluding RCs) (xcache-1.0.1.ebuild,2.86 KB, text/plain)
2006-09-21 09:36 UTC, Christian Hoffmann (RETIRED)
Details
Ebuild for xcache 1.1_rc1 (should be usable for all RCs, don't know whether the hardened thing still works) (xcache-1.1_rc1.ebuild,2.89 KB, text/plain)
2006-09-21 09:42 UTC, Christian Hoffmann (RETIRED)
Details
Ebuild for xcache svn trunk (don't know whether the hardened thing still works) (xcache-9999.ebuild,2.88 KB, text/plain)
2006-09-21 09:49 UTC, Christian Hoffmann (RETIRED)
Details
Patch for xcache to work with hardened-php again, found it somewhere on their wiki iirc, but don't know if it works/applies with current releases or if it is still necessary, it worked with 1.0.0 (xcache-1.0-hardening-0.4.11.patch,630 bytes, text/plain)
2006-09-21 09:50 UTC, Christian Hoffmann (RETIRED)
Details
xcache-1.1_rc2.ebuild (xcache-1.1_rc2.ebuild,2.64 KB, text/plain)
2006-11-04 06:21 UTC, Lars Strojny
Details
Ebuild for stable xcache versions (1.1.0 in this case) (xcache-1.1.0.ebuild,2.41 KB, text/plain)
2006-12-09 12:26 UTC, Christian Hoffmann (RETIRED)
Details
Ebuild for xcache release candidates (1.2.0_rc2 in this case) (xcache-1.2.0_rc2.ebuild,2.49 KB, text/plain)
2006-12-09 12:30 UTC, Christian Hoffmann (RETIRED)
Details
Ebuild for xcache svn trunk (xcache-9999.ebuild,2.46 KB, text/plain)
2006-12-09 12:31 UTC, Christian Hoffmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Saurabh Singhvi 2006-09-20 13:24:35 UTC
XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load. It is tested (on linux) and supported on all of the latest PHP cvs branches such as PHP_4_3 PHP_4_4 PHP_5_0 PHP_5_1 PHP_5_2 HEAD(6.x). ThreadSafe/Windows is also supported. It overcomes a lot of problems that has been with other competing opcachers such as being able to be used with new PHP versions.

please add this to portage :)

thanks
Saurabh
Comment 1 Christian Hoffmann (RETIRED) gentoo-dev 2006-09-21 09:36:24 UTC
Created attachment 97671 [details]
Ebuild for xcache 1.0.1 (should be usable for all releases, excluding RCs)
Comment 2 Christian Hoffmann (RETIRED) gentoo-dev 2006-09-21 09:42:16 UTC
Created attachment 97672 [details]
Ebuild for xcache 1.1_rc1 (should be usable for all RCs, don't know whether the hardened thing still works)
Comment 3 Christian Hoffmann (RETIRED) gentoo-dev 2006-09-21 09:49:22 UTC
Created attachment 97674 [details]
Ebuild for xcache svn trunk (don't know whether the hardened thing still works)
Comment 4 Christian Hoffmann (RETIRED) gentoo-dev 2006-09-21 09:50:46 UTC
Created attachment 97675 [details]
Patch for xcache to work with hardened-php again, found it somewhere on their wiki iirc, but don't know if it works/applies with current releases or if it is still necessary, it worked with 1.0.0
Comment 5 Christian Hoffmann (RETIRED) gentoo-dev 2006-09-21 09:55:06 UTC
I attached all ebuilds for xcache I have. All do compile on both of my machines (with all useflags enabled), but I only tested with php5 (so it was dev-php5/xcache), but I don't see a reason why they should not work with php4 (maybe they need different blockers for the other opcode caches, if those blockers are even required)
They were some of my first ebuilds, so please don't kill me if I did something terribly wrong. :p
Comment 6 Saurabh Singhvi 2006-09-21 19:41:14 UTC
Thanks a lot man !! The first ebuild I tested, and it works gr8 :)
Comment 7 Saurabh Singhvi 2006-09-23 16:58:42 UTC
(In reply to comment #6)
> Thanks a lot man !! The first ebuild I tested, and it works gr8 :)
> 

The svn ebuild works good on ppc platform :)
Comment 8 Lars Strojny 2006-10-30 15:47:05 UTC
The USE-flags seems completely useless to me. Just enable all options per default. Introducing local USE-flags here seems to be overhead.
Comment 9 Lars Strojny 2006-11-04 06:21:14 UTC
Created attachment 101218 [details]
xcache-1.1_rc2.ebuild

Cleaned up the ebuild, removed useless USE-flags, included IUSE=test, which I'm not sure, if it is working.
Comment 10 Saurabh Singhvi 2006-11-07 09:29:43 UTC
1.1rc1 works fine here on x86
Comment 11 Xuefer 2006-12-07 18:43:08 UTC
the ini is changed since 1.2

Ini Settings Changes 
======== 
 * new: xcache.stat = On 
 * new: xcache.coverager =  Off 
 * chg: xcache.coveragedump_directory default to "" 
 * del: xcache.coveragedumper = Off 

see http://trac.lighttpd.net/xcache/browser/trunk/NEWS
Comment 12 Christian Hoffmann (RETIRED) gentoo-dev 2006-12-09 12:26:12 UTC
Created attachment 103712 [details]
Ebuild for stable xcache versions (1.1.0 in this case)
Comment 13 Christian Hoffmann (RETIRED) gentoo-dev 2006-12-09 12:30:17 UTC
Created attachment 103713 [details]
Ebuild for xcache release candidates (1.2.0_rc2 in this case)
Comment 14 Christian Hoffmann (RETIRED) gentoo-dev 2006-12-09 12:31:27 UTC
Created attachment 103714 [details]
Ebuild for xcache svn trunk
Comment 15 Christian Hoffmann (RETIRED) gentoo-dev 2006-12-09 12:34:38 UTC
Added updated ebuilds...

(In reply to comment #9)
> Cleaned up the ebuild, removed useless USE-flags, included IUSE=test, which I'm
> not sure, if it is working.
Thanks for the cleanup -- I didn't even notice how I messed up the indentions. :\
Regarding test: --enable-xcache-test (which, btw, is according to the configure help "FOR DEVELOPERS ONLY!!!") currently doesn't do anything as far as I see (I compared the output of make, make test and make xcachetest -- no difference).
The usual make test is broken and says "ERROR: Cannot run tests without CLI sapi.", make xcachetest fails as well as it seems to require the whole PHP testing framework -- adding support for that is useless IMO.
That's why I removed the test use flag again.

(In reply to comment #11)
> the ini is changed since 1.2
> 
> Ini Settings Changes 
> ======== 
>  * new: xcache.stat = On 
>  * new: xcache.coverager =  Off 
>  * chg: xcache.coveragedump_directory default to "" 
>  * del: xcache.coveragedumper = Off 
> 
> see http://trac.lighttpd.net/xcache/browser/trunk/NEWS
Yup, added them to the ebuild. :)
Comment 16 Saurabh Singhvi 2006-12-21 12:00:57 UTC
1.2.0_rc2 compiles and works fine on sparc. Please add ~sparc :)
Comment 17 Markus Ullmann (RETIRED) gentoo-dev 2007-02-03 12:58:53 UTC
Imported to tree, thanks :)
Comment 18 ned moltoya 2007-02-12 20:46:40 UTC
(In reply to comment #14)
> Created an attachment (id=103714) [edit]
> Ebuild for xcache svn trunk
> 

I have had several issues with this ebuild. Over at xcache they tell me the 2.0-dev release on which this ebuild is based is nowhere near stable. On their website (http://trac.lighttpd.net/xcache) they recommend v1.0.x for php4 and 1.2.x for php5
Comment 19 ned moltoya 2007-02-12 20:49:58 UTC
(In reply to comment #18)
> (In reply to comment #14)
> > Created an attachment (id=103714) [edit]
> > Ebuild for xcache svn trunk
> > 
> 
> I have had several issues with this ebuild. Over at xcache they tell me the
> 2.0-dev release on which this ebuild is based is nowhere near stable. On their
> website (http://trac.lighttpd.net/xcache) they recommend v1.0.x for php4 and
> 1.2.x for php5
> 
the issues I had were with php4.4.4-p18-gentoo

Comment 20 Christian Hoffmann (RETIRED) gentoo-dev 2007-02-12 20:56:45 UTC
(In reply to comment #18)
> I have had several issues with this ebuild. Over at xcache they tell me the
> 2.0-dev release on which this ebuild is based is nowhere near stable. On their
> website (http://trac.lighttpd.net/xcache) they recommend v1.0.x for php4 and
> 1.2.x for php5
I don't see a problem here. In the tree there is only 1.2 for php5 which is what upstream recommends. I created and attached the svn ebuild because some months ago the releases were not done that often and there were several bugs which were fixed in svn trunk.
So, simply don't use -9999 if you don't need it. Use the 1.2 ebuild in the tree for php5.
I'm not sure what to use for php4 though. On their wiki they say that 1.0 is recommended, but they don't explicitly state that 1.2 removes or decreases support for php4. So I'd try 1.2 here as well. Going to ask moolight later though.
Comment 21 Christian Hoffmann (RETIRED) gentoo-dev 2007-02-13 13:28:46 UTC
I just asked moolight (xcache developer), he recommends 1.2.0 for php4 as well.
Comment 22 ned moltoya 2007-02-13 15:43:00 UTC
(In reply to comment #21)
> I just asked moolight (xcache developer), he recommends 1.2.0 for php4 as well.
> 
thanks but emerging dev-php5/xcache will do little to speed up my php4 configuration
Comment 23 Christian Hoffmann (RETIRED) gentoo-dev 2007-02-13 16:03:19 UTC
> thanks but emerging dev-php5/xcache will do little to speed up my php4
> configuration
But that's no gentoo-related problem. Upstream recommends 1.2 for both php4 and php5 and so it should work. If it doesn't, please report a bug at http://trac.lighttpd.net/xcache/report
Maybe you could also try upgrading to php5. It was released almost three years ago and probably contains many fixes which are not present in php4.
Comment 24 ned moltoya 2007-02-13 16:17:34 UTC
(In reply to comment #23)
> > thanks but emerging dev-php5/xcache will do little to speed up my php4
> > configuration
> But that's no gentoo-related problem. Upstream recommends 1.2 for both php4 and
> php5 and so it should work. If it doesn't, please report a bug at
> http://trac.lighttpd.net/xcache/report
> Maybe you could also try upgrading to php5. It was released almost three years
> ago and probably contains many fixes which are not present in php4.
> 
I think I'm missing something here. I simply wanted to point out that 1.2 isn't packaged for php4 so I can't use it unless I install it from source which is sort of defying the point of gentoo
Comment 25 Christian Hoffmann (RETIRED) gentoo-dev 2007-02-13 17:01:16 UTC
> I think I'm missing something here. I simply wanted to point out that 1.2 isn't
> packaged for php4 so I can't use it unless I install it from source which is
> sort of defying the point of gentoo
Sorry, misunderstood that. Of course, dev-php5/xcache installs xcache.so into the php5 extension dir and is only usable by php5.
Currently there is no dev-php4/xcache, maybe I'll test that and add the ebuild for php4 as well.
For now, as you already seem to have used the ebuild xcache-9999 from this bug, just do the same with xcache-1.2.0.ebuild (from the tree) and use it in an overlay in dev-php4.
Comment 26 ned moltoya 2007-02-13 23:48:24 UTC
(In reply to comment #25)
> > I think I'm missing something here. I simply wanted to point out that 1.2 isn't
> > packaged for php4 so I can't use it unless I install it from source which is
> > sort of defying the point of gentoo
> Sorry, misunderstood that. Of course, dev-php5/xcache installs xcache.so into
> the php5 extension dir and is only usable by php5.
> Currently there is no dev-php4/xcache, maybe I'll test that and add the ebuild
> for php4 as well.
> For now, as you already seem to have used the ebuild xcache-9999 from this bug,
> just do the same with xcache-1.2.0.ebuild (from the tree) and use it in an
> overlay in dev-php4.
> 

thanks for the suggestion. Works like a charm!