Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2005-05-17 22:18:19

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

The Admin-plugin is all screwy and wont install… anyone have a version that will?


To even the least of these…

Offline

#12 2005-05-17 22:19:58

Sencer
Developer emeritus
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Currently there is really no way to do that. Your best bet is to run apache bench on your development machine. The numbers that can be retrieved from within php with microtime etc. are pretty unreliable, but if there is demand, I may add an additional http-header field with the info at some later point. Remember that apart from speed, you are also relieving your db-server and reducing the memory-usage on the machine.

Last edited by Sencer (2005-05-17 23:17:27)

Offline

#13 2005-05-17 23:05:16

edburdo
Member
Registered: 2004-09-20
Posts: 79
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I am on a shared short atm… so I can’t pull those values. I do know it appears quicker, and when I run it through some benchmark tests (like sitereportcard.com) it loads faster than it did.

Many Kudo’s. Now I just need to upgrade the other installs to RC3, and start making use of this (and other) plugins and features. :P


Eric

Offline

#14 2005-05-17 23:52:40

Sencer
Developer emeritus
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

> jbrew wrote:
> The Admin-plugin is all screwy and wont install… anyone have a version that will?

You are right, I overlooked your comment or I would have answered earlier. I have now repackaged 0.7 as 0.7.1. The admin-side plugin should now be installable. I must have made an error while copying and packaging the files.

Offline

#15 2005-05-18 06:13:44

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

OK, I dropped it in, added the line.

Client and server are both Dell 2850s, 6GB RAM, Dual 3.6Ghz, 3+2 split RAID 5/RAID1, MySQL 4.11, PHP 5.04 with eaccelerator.

Also it’s lighttpd 1.3.13 with PHP-FastCGI and only 4 PHPs running.

Server Software: lighttpd/1.3.13
Server Hostname: jasonhoffman.org
Server Port: 80

Document Path: /
Document Length: 3844 bytes

Concurrency Level: 100
Time taken for tests: 28.1457 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 4068000 bytes
HTML transferred: 3844000 bytes
Requests per second: 35.71 1 (mean)
Time per request: 2800.146 [ms] (mean)
Time per request: 28.001 [ms] (mean, across all concurrent requests)

Installed it. Hit the front page, two sections and the feed. I see

gilford# ls -l jpcache/cache/
total 10
rw-rw-rw 1 jah jah 1099 May 18 06:03 jpc_335ea3181153fd6dce0d65414d51da01
rw-rw-rw 1 jah jah 1016 May 18 06:02 jpc_3c0ee9eecc2f28be3b2df87abcaaba9e
rw-rw-rw 1 jah jah 1878 May 18 05:59 jpc_82bb5fd25d2ee63bb7b1241525d5df33
rw-rw-rw 1 jah jah 1340 May 18 06:02 jpc_93ca02f1504cc7b018a181ab5dbfae4d
rw-rw-rw 1 jah jah 1340 May 18 06:02 jpc_bf84b308b1428b752e2a789852f5c51b

Nice. Nice.

Let’s hit again (don’t do -c 100 at home …).

Server Software: lighttpd/1.3.13
Server Hostname: jasonhoffman.org
Server Port: 80

Document Path: /
Document Length: 3844 bytes

Concurrency Level: 100
Time taken for tests: 2.277665 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 4141156 bytes
HTML transferred: 3854298 bytes
Requests per second: 439.05 1 (mean)

HOLY SHIT! HOLY SHIT! I MEAN REALLY HOLY HOLY SHIT! I wasn’t expecting that at all.

Let’s do more.

Finished 10000 requests

Server Software: lighttpd/1.3.13
Server Hostname: jasonhoffman.org
Server Port: 80

Document Path: /
Document Length: 3844 bytes

Concurrency Level: 100
Time taken for tests: 21.154597 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 41308260 bytes
HTML transferred: 38447688 bytes
Requests per second: 472.71 1 (mean)

Oh my.

Finished 50000 requests

Server Software: lighttpd/1.3.13
Server Hostname: jasonhoffman.org
Server Port: 80

Document Path: /
Document Length: 3844 bytes

Concurrency Level: 100
Time taken for tests: 105.667725 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 206512390 bytes
HTML transferred: 192211532 bytes
Requests per second: 473.18 1 (mean)

Wow. OK. Well. Geez. I … ah … think I’m installing this everywhere I have my hands on a textpattern install …

And the site was completely “clickable” the entire time while the server did a load < 1. That’s a pretty good output, considering that would be about 40 million hits a day sustained.

Offline

#16 2005-05-18 06:26:32

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,122
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Jason, you’re quite convincing :-)

Offline

#17 2005-05-18 06:28:25

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

The textdrive weblog is on a single proc (3something):

Requests per second: 327.68 1 (mean)

Not bad, not bad.

Offline

#18 2005-05-18 14:38:24

edburdo
Member
Registered: 2004-09-20
Posts: 79
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Sencer: Thanx for the update. And for the plugin.

Jason: Thanx for the stats. I think I will be putting this on other sites as well. Oh yeah…


Eric

Offline

#19 2005-05-18 20:11:21

Sencer
Developer emeritus
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Updated to version 0.8

  • - don’t clean cache when merely viewing or previewing articles in article-event
  • - add statistic in admin-side plugin over number and total size of the cache-files
  • - sniff content and guess Content-Type on PHP4 (see Known Issues in first post)
  • - finally, completely fix garbled feeds. (strncmp returns 0 for a match, go figure…)

The last should be the most important reason to update, because from time to time you might get a broken feed with the last version.

Offline

#20 2005-05-18 22:42:42

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I’m upgraded!! Thanks Sencer.

Offline

Board footer

Powered by FluxBB