vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - datastore cache to XCache - boost your vBulletin (https://vborg.vbsupport.ru/showthread.php?t=141005)

doraj 02-15-2008 11:24 AM

If I use XCache Datastore, Can I also active "GZip Compression" to my AdminPC or are possible conflicts?

Thanks..

Mindwarp 02-16-2008 10:10 PM

Quote:

Originally Posted by Paul M (Post 1403946)
Just in case no one has noticed yet - xcache support has been added to vbulletin 3.7.

I saw where he said not to install the patch in the OP. I assumed the file was included somewhere in 3.7 but I haven't been able to find it.

Yes, I'm a newbie. :o

Icy 02-17-2008 04:15 AM

Quote:

Originally Posted by Mindwarp (Post 1444770)
I saw where he said not to install the patch in the OP. I assumed the file was included somewhere in 3.7 but I haven't been able to find it.

Just remove this modification then in ./includes/config.php
Search for:
PHP Code:

// $config['Datastore']['class'] = 'vB_Datastore_Filecache'; 

Add underneath or replace it with
PHP Code:

$config['Datastore']['class'] = 'vB_Datastore_XCache'


Mindwarp 02-17-2008 05:44 AM

Thank you very much Icy. :)

punchbowl 02-17-2008 09:05 PM

Quote:

Originally Posted by da420 (Post 1197533)
I applied the patch, and all I get is a blank page when accessing the forum.

are you php 5.0.x?

It's unsupported by xcache apparently. I get the blank pages too.

Amenadiel 02-29-2008 10:31 AM

This is weird. I have applied the patch, but xcache isn't showing datastore items as cached. Just regular php: no language, usergroup or anything.

I have already uploades class_datastore_xcache.php, edited config.php and class_datastore.php. Should I enable something else somewhere? What am I missing here?

Icy 02-29-2008 05:05 PM

Have you enabled varchache?

Amenadiel 02-29-2008 07:08 PM

uh... varcaché? where should I do that?

Icy 03-01-2008 02:19 AM

In your php.ini. i.e.
Quote:

; same as aboves but for variable cache
xcache.var_size = 6M
xcache.var_count = 4
xcache.var_slots = 8K
; default ttl
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 0

Amenadiel 03-02-2008 12:22 PM

Ok, I'll use this conf:

Quote:

xcache.var_size = 16M
xcache.var_count = 4
xcache.var_slots = 8K
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 0
I'll tell you how it goes.

Icy 03-02-2008 12:44 PM

Have you installed XCache as PHP extension? Would you please post your php.ini?

Amenadiel 03-02-2008 10:04 PM

yes, XCach? is running and I have 8 threads of php cached, but no cached vars.

https://vborg.vbsupport.ru/

IrPr 03-02-2008 10:13 PM

Hi moo
such a nice work! my huge forum is on the fly with lighty n xcache

Opcode cache works like a charm, Variable cache is workin too but there is sth wrong with this class to me
it kills my forum when i swich datastore to this class! server load increases upto 12 then will changes frequency up and down
Im using XCache for Template Cache module without such problem! template vars are cached and they'r fetching as charm
but for datastore it s*x! sth wrong when cachin or probably fetchin

here is my xcache admin interface snaps which indicates what i wrote
Attachment 76647
and here is my xcache configuration using 8 splits due to SMP CPU ( Clovertown Quad Core )
Code:

[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =                32M
xcache.count =                8
xcache.slots =                16K
xcache.ttl  =                0
xcache.gc_interval =          0

xcache.var_size  =            32M
xcache.var_count =            8
xcache.var_slots =            16K
xcache.var_ttl  =            0
xcache.var_maxttl  =          0
xcache.var_gc_interval =    300

xcache.test =                Off
xcache.readonly_protection = Off
xcache.mmap_path =    "/dev/zero"

xcache.coredump_directory =  "/tmp/phpcore/"
xcache.cacher =              On
xcache.stat  =              On
xcache.optimizer =          Off

[xcache.coverager]
xcache.coverager =          Off
xcache.coveragedump_directory = ""

PS: i loaded xcache.so with zend extension, not default extensions directive

Please help me guys, any suggestion is welcome!

Regards

IrPr 03-02-2008 10:27 PM

Quote:

Originally Posted by Amenadiel (Post 1455499)
yes, XCach? is running and I have 8 threads of php cached, but no cached vars.

http://www.chilehardware.com/images/...xcache_chw.jpg

Seems config.php issue to me
make sure that ur config.php is clean by one $config['Datastore']['class'] assigned by 'vB_Datastore_XCache' and not commented out!

IrPr 03-02-2008 10:35 PM

Quote:

Originally Posted by doraj (Post 1443601)
If I use XCache Datastore, Can I also active "GZip Compression" to my AdminPC or are possible conflicts?

Thanks..

Ofcourse You can, theres no relationship between PHP Output handlers (GZIP or Deflate) and PHP Opcoder/Variable cachers ( XCache or APC or eAccelerator )

Amenadiel 03-03-2008 09:09 PM

Ok I solved the mistery. I spoke to the machine admin (I run the forum but I avoid messing with server configuration for I am no linux expert) and he told me that he compiled xcache without var cache support. He thought it wasn't necessary.

We will recompile in a few days. I'll update you guys then.

Icy 03-04-2008 01:52 AM

IrPr! You should increase the memory for op code cache. OOMs (out of memory) is no good. Try using 64 MB & see if there are any OOMs.

IrPr 03-04-2008 11:07 AM

Quote:

Originally Posted by Icy (Post 1456415)
IrPr! You should increase the memory for op code cache. OOMs (out of memory) is no good. Try using 64 MB & see if there are any OOMs.

Thanks Icy, i will increase
but what about Datastore class issue? i mean Variable cache
any idea?

BTW is there any other modification which conflicts with?

Icy 03-05-2008 05:59 AM

What PHP version are your using? If PHP 5.2.5 then check this link & downgrade to PHP 5.2.4.

IrPr 03-05-2008 11:52 AM

Quote:

Originally Posted by Icy (Post 1457298)
What PHP version are your using? If PHP 5.2.5 then check this link & downgrade to PHP 5.2.4.

I did but still same problem
i get no segment error but server load still increases
here is my phpinfo()
MOo please help

Amenadiel 03-06-2008 12:35 AM

ok recompiled xcache and still no datastore vars are going into it.

Here's my phpinfo by the way

http://www.chilehardware.com/info.php

Icy 03-06-2008 03:18 AM

IrPr - Make sure the OOMs disappear.

Amenadiel - Double check that you have proparly uploaded the class_datastore_xcache.php & edited correctly class_datastore.php & config.php

Amenadiel 03-15-2008 12:29 AM

Already did. Perhaps it's a problem of file permisions... perhaps I should set datastore_xcache as an exception in lighty in order to avoid being redirected by vbseo?

where is class_datastore.php being called? I can't see an entry in config.php, just

$config['Datastore']['class'] = 'vB_Datastore_XCache';

must I enable datastore caching somewhere in config or admin panel?

Anyway, why not install memcached or file based datastore?

eido 03-16-2008 07:40 PM

how do i know what value do i put for xcache.size and xcache.var.size ? whats the best values?

tfw2005 03-23-2008 10:10 PM

Hey guys,

I have xcache installed on the server as a whole, and it sped up my forums greatly. Page loads went from 5-8 seconds to under 2 for the vbulletin areas.

Would installing this hack (Im on pre 3.6.X) for the datastore, provide an even greater increase to speed, load, etc?

I have a pretty busy forum with some heavy scripts running along side (multiple G2 galleries, etc etc). So if I can reduce further the forum needs, those other scripts might speed up too.

Just wondering if applying this to datastore is worth it if it is already kicking ass on a PHP level.

Thanks!

frantorm 04-01-2008 07:07 PM

Before upgrading to 3.6.9 vb had in this mod version 3.6.8 installed and my vbulletin was very fast now after upgrading will not let me install this mod and is very slow

that I can do?

Thanks

GTX2 04-01-2008 09:02 PM

i have no idea how to install xcache on the server... i run a centOS server and i've tried either using rpm and yum install....

any idea?
thanks

hydn 04-07-2008 06:22 PM

Quote:

Originally Posted by tfw2005 (Post 1472827)
Hey guys,

I have xcache installed on the server as a whole, and it sped up my forums greatly. Page loads went from 5-8 seconds to under 2 for the vbulletin areas.

Would installing this hack (Im on pre 3.6.X) for the datastore, provide an even greater increase to speed, load, etc?

I have a pretty busy forum with some heavy scripts running along side (multiple G2 galleries, etc etc). So if I can reduce further the forum needs, those other scripts might speed up too.

Just wondering if applying this to datastore is worth it if it is already kicking ass on a PHP level.

Thanks!

Same question here

sturdy 04-08-2008 11:21 AM

How to install the X-Cache under Windows?

I just found this INSTALL File with this text in it:

Quote:

# vim:ts=4:sw=4
Installtion:

$ phpize --clean && phpize
$ ./configure --help
$ CFLAGS='your cflags' ./configure --enable-xcache --enable...
$ make
$ su
# make install
(update php.ini, restart php)

Reinstall:

$ mv config.nice conf
$ make distclean && phpize --clean && phpize
$ mv conf config.nice
$ ./config.nice
$ make
$ su
# make install
(update php.ini, restart php)

Update php.ini:
$ su
# cat xcache.ini >> /etc/php.ini
# $EDITOR /etc/php.ini
I cant explain what to do :D

Fenriz 04-11-2008 02:37 PM

Please somebody help me with 3 questions:

I have 512Mb on my dedicated. Is it right to make:
xcache.size = 64M
xcache.var_size = 64M
?
I have a Template Cache 0.0.4 installed and not sure about the size of xcache.

Do I need to enable xcache.optimizer? Default it is in Off state. Do I need to make
xcache.optimizer = On
?

I have a Fedora 7 installed on my server.
Is it better to make xcache.so in xcache.ini installed as a zend_extension or php extension? I have "extension = xcache.so" uncommented.

By the way, here is my phpinfo http://www.ulver.com/info.php
Thanks in advance.

hydn 04-11-2008 02:46 PM

xcache.var_size = 4M or 8M is fine

Don't have to be the same size.

Why not use memcahce instead?

Fenriz 04-11-2008 03:40 PM

hydn, is it possible for xcache and memcached to co-exist? If I have xcache installed as an oppcache, how should I install memcached?

hydn 04-14-2008 06:49 PM

Quote:

Originally Posted by Fenriz (Post 1488353)
hydn, is it possible for xcache and memcached to co-exist? If I have xcache installed as an oppcache, how should I install memcached?

Yes. It is. operation code and variable cache are two different things. If your database and web server are on the same box I would recommend you use xcache for opcode & datastore. If on separate boxes then use memcache for datastore of vb install on database server and xcache will run as usual on web server.

hope that helps.

Fenriz 04-15-2008 11:41 AM

Ok, thank you. My database and web server are on the same box, so I'll continue to use xcache for opcode & datastore.

One more question - Is it better to make xcache.so in xcache.ini installed as a zend_extension or php extension?

hydn 04-15-2008 12:29 PM

In IIS zend conflicted with xcache for me. If it works for you use it. But not necessary. If you do use it benchmark because i'm not sure it will make things faster with xcache.

e7lew 04-22-2008 10:07 PM

xcache installed in the server and i applied all changes

still getting the error above
Quote:

Fatal error: Class vb_datastore_xcache: Cannot inherit from undefined class vb_datastore in /home/al7elwa/domains/al7elwa.com/public_html/board/includes/class_datastore_xcache.php on line 14
any help please

Amaresh 05-06-2008 09:03 PM

Thanks working fine on Cent OS with Lxadmin, lighttpd...

Though no benchmarks done yet.

TheInsaneManiac 08-31-2008 09:10 PM

3.7 anyone?

Icy 09-01-2008 02:51 AM

Quote:

Originally Posted by TheInsaneManiac (Post 1611444)
3.7 anyone?

You don't need this plug-in in 3.7 because 3.7 already have this. You just have to enable it in your config.php under the ****** DATASTORE CACHE CONFIGURATION ***** option. Just type $config['Datastore']['class'] = 'vB_Datastore_XCache'; & save it.

thompson 09-01-2008 09:33 AM

Quote:

Originally Posted by Icy (Post 1611668)
You don't need this plug-in in 3.7 because 3.7 already have this. You just have to enable it in your config.php under the ****** DATASTORE CACHE CONFIGURATION ***** option. Just type $config['Datastore']['class'] = 'vB_Datastore_XCache'; & save it.

and it works ? forums are really faster ?


All times are GMT. The time now is 11:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01599 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete