XenForo + caching = AMAZING

You are missing a comma? -o slab_reassign,slab_automove NOT -o slab_reassign slab_automove
Never mind, top is yanking the comma for myself also:


How is the graph, is the waste lower?
Even when I start memcached manually, it doesn't display commas in the ps -ef output

Code:
[root@vps2 ~]#/usr/local/bin/memcached -u root -m 32 -p 11211 -u nobody -l 0.0.0.0 -o slab_reassign,slab_automove

output

Code:
# ps -ef | grep memcache
nobody    4846  4678  0 09:02 pts/0    00:00:00 /usr/local/bin/memcached -u root -m 32 -p 11211 -u nobody -l 0.0.0.0 -o slab_reassign slab_automove
 
I too have a lot of wasted space and also a large amount of free memory.
OK, I feel better, I thought I missed something into setup. Thanks Deebs.
P.S. Did you finished the camo setup? Go visit our thread and post an update there... I finished the RPM's, I'm dealing with the crazy format camo is written and the fact they go in circles loading useless daemons. :)
 
lol, it's strange though, as my other server isn't that high, with exactly the same set up

Main VPS
Code:
Used 21.0 MBytes
Total 32.0 MBytes
Wasted 20.6 MBytes
Second VPS
Code:
Used 8.0 MBytes
Total 32.0 MBytes
Wasted 7.9 MBytes
 
Updated the post with a graph taken just now. 64MB of ram assigned...
Are you caching the Xenforo sessions?
 
:ROFLMAO::whistle: How busy is your site?
2 days on 1.1.14 with the new libs and I have like 25% of memory used:

Not very busy at the minute, will be interesting to see what it's like after the weekend, as that is when we are busiest.
 
Just wondered if any of you know why I get so many failures when I run memcapable? 44 of 54 tests failed.

All of the binary tests fail with connection error - is this because I don't have igbinary installed?

Code:
ascii quit                              [pass]
ascii version                           [pass]
ascii verbosity                         [FAIL]
ascii set                               [pass]
ascii set noreply                       [FAIL]
ascii get                               [pass]
ascii gets                              [FAIL]
ascii mget                              [pass]
ascii flush                             [pass]
ascii flush noreply                     [FAIL]
ascii add                               [NOT_STORED] [FAIL]
ascii add noreply                       [FAIL]
ascii replace                           [STORED] [FAIL]
ascii replace noreply                   [FAIL]
ascii cas                               [FAIL]
ascii cas noreply                       [FAIL]
ascii delete                            [pass]
ascii delete noreply                    [FAIL]
ascii incr                              [pass]
ascii incr noreply                      [FAIL]
ascii decr                              [pass]
ascii decr noreply                      [FAIL]
ascii append                            [ERROR] [FAIL]
ascii append noreply                    [FAIL]
ascii prepend                           [ERROR] [FAIL]
ascii prepend noreply                   [FAIL]
ascii stat                              [pass]
binary noop                             Errno: 110 Connection timed out [FAIL]
binary quit                             Errno: 110 Connection timed out [FAIL]
binary quitq                            [FAIL]
binary set                              Errno: 110 Connection timed out [FAIL]
binary setq                             Errno: 110 Connection timed out [FAIL]
binary flush                            Errno: 110 Connection timed out [FAIL]
binary flushq                           Errno: 110 Connection timed out [FAIL]
binary add                              Errno: 110 Connection timed out [FAIL]
binary addq                             Errno: 110 Connection timed out [FAIL]
binary replace                          Errno: 110 Connection timed out [FAIL]
binary replaceq                         Errno: 110 Connection timed out [FAIL]
binary delete                           Errno: 110 Connection timed out [FAIL]
binary deleteq                          Errno: 110 Connection timed out [FAIL]
binary get                              Errno: 110 Connection timed out [FAIL]
binary getq                             Errno: 110 Connection timed out [FAIL]
binary getk                             Errno: 110 Connection timed out [FAIL]
binary getkq                            Errno: 110 Connection timed out [FAIL]
binary incr                             Errno: 110 Connection timed out [FAIL]
binary incrq                            Errno: 110 Connection timed out [FAIL]
binary decr                             Errno: 110 Connection timed out [FAIL]
binary decrq                            Errno: 110 Connection timed out [FAIL]
binary version                          Errno: 110 Connection timed out [FAIL]
binary append                           Errno: 110 Connection timed out [FAIL]
binary appendq                          Errno: 110 Connection timed out [FAIL]
binary prepend                          Errno: 110 Connection timed out [FAIL]
binary prependq                         Errno: 110 Connection timed out [FAIL]
binary stat                             Errno: 110 Connection timed out [FAIL]
44 of 54 tests failed
 
It's possible. I've just ran it (I have igbinary installed)

Code:
ascii quit                              [pass]
ascii version                           [pass]
ascii verbosity                         Errno: 110 Connection timed out
[FAIL]
ascii set                               [pass]
ascii set noreply                       [pass]
ascii get                               [pass]
ascii gets                              [pass]
ascii mget                              [pass]
ascii flush                             [pass]
ascii flush noreply                     [pass]
ascii add                               [pass]
ascii add noreply                       [pass]
ascii replace                           [pass]
ascii replace noreply                   [pass]
ascii cas                               [pass]
ascii cas noreply                       [pass]
ascii delete                            [pass]
ascii delete noreply                    [pass]
ascii incr                              [pass]
ascii incr noreply                      [pass]
ascii decr                              [pass]
ascii decr noreply                      [pass]
ascii append                            [pass]
ascii append noreply                    [pass]
ascii prepend                           [pass]
ascii prepend noreply                   [pass]
ascii stat                              [pass]
binary noop                             [pass]
binary quit                             [pass]
binary quitq                            [pass]
binary set                              [pass]
binary setq                             [pass]
binary flush                            [pass]
binary flushq                           [pass]
binary add                              [pass]
binary addq                             [pass]
binary replace                          [pass]
binary replaceq                         [pass]
binary delete                           [pass]
binary deleteq                          [pass]
binary get                              [pass]
binary getq                             [pass]
binary getk                             [pass]
binary getkq                            [pass]
binary incr                             [pass]
binary incrq                            [pass]
binary decr                             [pass]
binary decrq                            [pass]
binary version                          [pass]
binary append                           [pass]
binary appendq                          [pass]
binary prepend                          [pass]
binary prependq                         [pass]
binary stat                             [pass]
1 of 54 tests failed
 
TBH it seems to be running okay, so not sure if it's because I've got an older version installed with no binary support?

I've changed the config for each of my XF installs to use 'Libmemcached' for the backend and they seem to be working okay, and phpMemcachedAdmin reports connections etc. so presumably it's all working as expected:

phpmem.webp
 
How did you install memcached?

Since installing igbinary, I've set php and apc to use it as well.
 
I re-installed the PECL memcache on mine after reading this thread, so I could configure it with libmemcached and the json/igbinary support.

I'm currently running Memcached Server Version 1.4.13

with PECL memcached-2.1.0

How did you set it up to work with libmemcached?

I installed libmemcached, json and igbinary, and then installed PECL memcached

Code:
pecl download memcached
tar -xzvf memcached-2.1.0.tgz
cd memcached-2.1.0
phpize
./configure --enable-memcached-igbinary --enable-memcached-json
make
make install
 
Sorry, I'm getting myself confused. My host installed Memcached Server years ago and that hasn't been udpated - it's on version 1.2.2

I'll have a look at updating it to a later version over the weekend and then review Libmemcached again.

Thanks,
Shaun :D
 
It would appear my very old install of Memcached server was the issue with the memcapable tests:

Code:
ascii quit                              [pass]
ascii version                           [pass]
ascii verbosity                         Errno: 110 Connection timed out
[FAIL]
ascii set                               [pass]
ascii set noreply                       [pass]
ascii get                               [pass]
ascii gets                              [pass]
ascii mget                              [pass]
ascii flush                             [pass]
ascii flush noreply                     [pass]
ascii add                               [pass]
ascii add noreply                       [pass]
ascii replace                           [pass]
ascii replace noreply                   [pass]
ascii cas                               [pass]
ascii cas noreply                       [pass]
ascii delete                            [pass]
ascii delete noreply                    [pass]
ascii incr                              [pass]
ascii incr noreply                      [pass]
ascii decr                              [pass]
ascii decr noreply                      [pass]
ascii append                            [pass]
ascii append noreply                    [pass]
ascii prepend                           [pass]
ascii prepend noreply                   [pass]
ascii stat                              [pass]
binary noop                             [pass]
binary quit                             [pass]
binary quitq                            [pass]
binary set                              [pass]
binary setq                             [pass]
binary flush                            [pass]
binary flushq                           [pass]
binary add                              [pass]
binary addq                             [pass]
binary replace                          [pass]
binary replaceq                         [pass]
binary delete                           [pass]
binary deleteq                          [pass]
binary get                              [pass]
binary getq                             [pass]
binary getk                             [pass]
binary getkq                            [pass]
binary incr                             [pass]
binary incrq                            [pass]
binary decr                             [pass]
binary decrq                            [pass]
binary version                          [pass]
binary append                           [pass]
binary appendq                          [pass]
binary prepend                          [pass]
binary prependq                         [pass]
binary stat                             [pass]
1 of 54 tests failed

I've also now installed igbinary to use as the PHP serialiser and resolved the previous memcache.so / memcached.so issue; I edited /etc/php5/conf.d/memcache.ini and commented out the second line to stop it loading the memcache module. Then created /etc/php5/conf.d/memcached.ini (using your example earlier in the thread Floren - thanks (y)) and stopped and restarted Apache2. This time it came up okay with no errors and phpinfo.php reports only the memcached module loaded (no sign of memcache!).

So, gentlemen, I think I'm done. Up to date and running smooth. Many thanks for the hints and inspiration to update/change it.

Cheers,
Shaun :D
 
Welcome to 2008. :giggle: Congrats on updating your server.
Next, I dare you to switch to a fully mysqlnd supported PHP environment and OpenSSL 1.0.1c. :)
 
lol ... erm, maybe later Floren. :D

I do have an issue though since moving over to libmemcached - my XenSSO slave add-ons are now all broken so I've had to temporarily disable them:

Rich (BB code):
An exception occurred: Zend_Session::start() - /mysite/library/Zend/Session.p
hp(Line:480): Error #2 session_start() [<a href='function.session-start'>functi
on.session-start</a>]: Unknown session.serialize_handler. 
Failed to decode session object. Array /mysite/library/Zend/Session.php(Li
ne:490): Error #2 session_write_close() [<a href='function.session-w
rite-close'>function.session-write-close</a>]: Unknown session.serialize_ha
ndler. Failed to encode session object. Array in /mysite/library/Zend/Sessio
n.php on line 493
 
Zend_Session::start() in Zend/Session/Namespace.php at line 143
Zend_Session_Namespace->__construct() in XenSSO/Slave/Listen.php at line 81
XenSSO_Slave_Listen::template_hook()
call_user_func_array() in XenForo/CodeEvent.php at line 54
XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 285
XenForo_Template_Abstract->callTemplateHook() in /home/bizchat/public_html/internal_data/templates/S.3,L.1,PAGE_CONTAINER.php at line 137
include() in XenForo/Template/Abstract.php at line 260
XenForo_Template_Abstract->_renderInternal() in XenForo/Template/Abstract.php at line 191
XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 135
XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 565
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in /home/bizchat/public_html/index.php at line 13

Not sure if this is an add-on coding issue or whether it's an OS issue - something I've missed, forgotted, not set?

Ever come across this?
 
Back
Top Bottom