[FreeBSD] postgresql autovacuum

2008-06-24 Başlik Mesut GÜLNAZ
Postgresql de auto vacuum u etkinleştirmek istiyorum ancak yaptığım birkaç
denemede başarılı olamadım. Ne gibi bir konfig önerirsiniz?

 

# - Cost-Based Vacuum Delay -



#vacuum_cost_delay = 0  # 0-1000 milliseconds   

#vacuum_cost_page_hit = 1   # 0-1 credits

#vacuum_cost_page_miss = 10 # 0-1 credits  

#vacuum_cost_page_dirty = 20# 0-1 credits  

#vacuum_cost_limit = 200# 0-1 credits

 

 

#---

# AUTOVACUUM PARAMETERS  

#---

 

autovacuum = on

 

#autovacuum = off   # enable autovacuum subprocess?

# 'on' requires
stats_start_collector

# and stats_row_level to also be on

#autovacuum_naptime = 1min  # time between autovacuum runs

#autovacuum_vacuum_threshold = 500  # min # of tuple updates before

# vacuum

#autovacuum_analyze_threshold = 250 # min # of tuple updates before


# analyze

#autovacuum_vacuum_scale_factor = 0.2   # fraction of rel size before


# vacuum

#autovacuum_analyze_scale_factor = 0.1  # fraction of rel size before

# analyze

#autovacuum_freeze_max_age = 2  # maximum XID age before forced
vacuum

# (change requires restart)

#autovacuum_vacuum_cost_delay = -1  # default vacuum cost delay for 

# autovacuum, -1 means use

# vacuum_cost_delay

#autovacuum_vacuum_cost_limit = -1  # default vacuum cost limit for

# autovacuum, -1 means use


# vacuum_cost_limit 

 

 

İyi çalışmalar...

 

Mesut GÜLNAZ



Re: [FreeBSD] hangi php cache uygulaması

2008-06-24 Başlik OSMAN ORHAN
Facebook un APC kullandığını biliyorum, ama facebook un bu konuda kötü
olduğunu da eklemek lazım(fakat bunu direk cache mekanizmasına
bağlamak doğru olmaz herhalde);
http://www.scribd.com/doc/88689/apcfacebook



2008/6/23  [EMAIL PROTECTED]:
 Selam;

 PHPAccelerator kullandim acikcasi cok verimli degildi. Su an XCache
 kullaniyorum gayet memnunum ince ayarlar yaparak cok iyi performanslar
 alabilirsiniz.

 Saygilar

 opcode cache için 3 senedir eaccelerator kullanıyorum, ortalama rps 3-4
 kat
 artıyor diyebilirim

 normalde 30 - 40 req/s iken eacc ile 80 - 90 req/s

 xcachede fena değil aslında,

 http://xcache.lighttpd.net/wiki/Introduction#ButwhydoyouwriteXCacheafterthatWhynotcontributetoeaapc

 selamlar


 2008/6/22 [EMAIL PROTECTED]:

 merhabalar,

 xcache, APC ya da eaccelerator.

 bu 3 uygulamayı da kurdum. çalıştırdım. denedim ama hangisini
 kullanacağıma
 karar veremedim.

 sizler hangisini tansiye edersiniz.?




 --
 Engin Dumlu




 FreeBSD 6 kitabi: http://www.acikakademi.com/catalog/freebsd6
 -
 Listeye soru sormadan once lutfen http://ipucu.enderunix.org sitesine
 bakiniz.

 Cikmak icin, e-mail: [EMAIL PROTECTED]
 Liste arsivi: http://news.gmane.org/gmane.org.user-groups.bsd.turkey





Re: [FreeBSD] hangi php cache uygulaması

2008-06-24 Başlik Engin Dumlu
symfony framework üzerinde çalışan bir sistemde test yaptım, xcache bariz
fark atıyor, sonuçlar şöyle:

-- eacc -

srv1:/www/stage# ab -c 10 -t 6 http://localhost/
This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Finished 465 requests


Server Software:Apache/2.2.3
Server Hostname:localhost
Server Port:80

Document Path:  /
Document Length:5935 bytes

Concurrency Level:  10
Time taken for tests:   6.11133 seconds
Complete requests:  465
Failed requests:0
Write errors:   0
Total transferred:  2973672 bytes
HTML transferred:   2777580 bytes
Requests per second:77.36 [#/sec] (mean)
Time per request:   129.272 [ms] (mean)
Time per request:   12.927 [ms] (mean, across all concurrent requests)
Transfer rate:  482.94 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:43  126  83.1107 880
Waiting:   43  126  83.0106 880
Total: 43  126  83.1107 880

Percentage of the requests served within a certain time (ms)
  50%107
  66%129
  75%148
  80%158
  90%195
  95%271
  98%378
  99%543
 100%880 (longest request)




-- xcache ---

srv1:/www/stage# ab -c 10 -t 6 http://localhost/
This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Finished 624 requests


Server Software:Apache/2.2.3
Server Hostname:localhost
Server Port:80

Document Path:  /
Document Length:5935 bytes

Concurrency Level:  10
Time taken for tests:   6.1119 seconds
Complete requests:  624
Failed requests:0
Write errors:   0
Total transferred:  3971250 bytes
HTML transferred:   3709375 bytes
Requests per second:103.98 [#/sec] (mean)
Time per request:   96.172 [ms] (mean)
Time per request:   9.617 [ms] (mean, across all concurrent requests)
Transfer rate:  646.21 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:23   94  64.5 72 434
Waiting:0   93  64.4 71 434
Total: 23   94  64.5 72 434

Percentage of the requests served within a certain time (ms)
  50% 72
  66%104
  75%125
  80%139
  90%183
  95%217
  98%277
  99%330
 100%434 (longest request)



2008/6/24 OSMAN ORHAN [EMAIL PROTECTED]:

 Facebook un APC kullandığını biliyorum, ama facebook un bu konuda kötü
 olduğunu da eklemek lazım(fakat bunu direk cache mekanizmasına
 bağlamak doğru olmaz herhalde);
 http://www.scribd.com/doc/88689/apcfacebook



 2008/6/23  [EMAIL PROTECTED]:
  Selam;
 
  PHPAccelerator kullandim acikcasi cok verimli degildi. Su an XCache
  kullaniyorum gayet memnunum ince ayarlar yaparak cok iyi performanslar
  alabilirsiniz.
 
  Saygilar
 
  opcode cache için 3 senedir eaccelerator kullanıyorum, ortalama rps 3-4
  kat
  artıyor diyebilirim
 
  normalde 30 - 40 req/s iken eacc ile 80 - 90 req/s
 
  xcachede fena değil aslında,
 
 
 http://xcache.lighttpd.net/wiki/Introduction#ButwhydoyouwriteXCacheafterthatWhynotcontributetoeaapc
 
  selamlar
 
 
  2008/6/22 [EMAIL PROTECTED]:
 
  merhabalar,
 
  xcache, APC ya da eaccelerator.
 
  bu 3 uygulamayı da kurdum. çalıştırdım. denedim ama hangisini
  kullanacağıma
  karar veremedim.
 
  sizler hangisini tansiye edersiniz.?
 
 
 
 
  --
  Engin Dumlu
 
 
 
 
  FreeBSD 6 kitabi: http://www.acikakademi.com/catalog/freebsd6
  -
  Listeye soru sormadan once lutfen http://ipucu.enderunix.org sitesine
  bakiniz.
 
  Cikmak icin, e-mail: [EMAIL PROTECTED]
  Liste arsivi: http://news.gmane.org/gmane.org.user-groups.bsd.turkey
 
 
 




-- 
Engin Dumlu


RE: [FreeBSD] hangi php cache uygulaması

2008-06-24 Başlik Mesut GÜLNAZ
Çok teşekkürler...

 

From: Engin Dumlu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2008 1:51 PM
To: freebsd@lists.enderunix.org
Subject: Re: [FreeBSD] hangi php cache uygulaması

 

symfony framework üzerinde çalışan bir sistemde test yaptım, xcache bariz fark 
atıyor, sonuçlar şöyle:

-- eacc -

srv1:/www/stage# ab -c 10 -t 6 http://localhost/
This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Finished 465 requests


Server Software:Apache/2.2.3
Server Hostname:localhost
Server Port:80

Document Path:  /
Document Length:5935 bytes

Concurrency Level:  10
Time taken for tests:   6.11133 seconds
Complete requests:  465
Failed requests:0
Write errors:   0
Total transferred:  2973672 bytes
HTML transferred:   2777580 bytes
Requests per second:77.36 [#/sec] (mean)
Time per request:   129.272 [ms] (mean)
Time per request:   12.927 [ms] (mean, across all concurrent requests)
Transfer rate:  482.94 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:43  126  83.1107 880
Waiting:   43  126  83.0106 880
Total: 43  126  83.1107 880

Percentage of the requests served within a certain time (ms)
  50%107
  66%129
  75%148
  80%158
  90%195
  95%271
  98%378
  99%543
 100%880 (longest request)




-- xcache ---

srv1:/www/stage# ab -c 10 -t 6 http://localhost/
This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Finished 624 requests


Server Software:Apache/2.2.3
Server Hostname:localhost
Server Port:80

Document Path:  /
Document Length:5935 bytes

Concurrency Level:  10
Time taken for tests:   6.1119 seconds
Complete requests:  624
Failed requests:0
Write errors:   0
Total transferred:  3971250 bytes
HTML transferred:   3709375 bytes
Requests per second:103.98 [#/sec] (mean)
Time per request:   96.172 [ms] (mean)
Time per request:   9.617 [ms] (mean, across all concurrent requests)
Transfer rate:  646.21 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:23   94  64.5 72 434
Waiting:0   93  64.4 71 434
Total: 23   94  64.5 72 434

Percentage of the requests served within a certain time (ms)
  50% 72
  66%104
  75%125
  80%139
  90%183
  95%217
  98%277
  99%330
 100%434 (longest request)




2008/6/24 OSMAN ORHAN [EMAIL PROTECTED]:

Facebook un APC kullandığını biliyorum, ama facebook un bu konuda kötü
olduğunu da eklemek lazım(fakat bunu direk cache mekanizmasına
bağlamak doğru olmaz herhalde);
http://www.scribd.com/doc/88689/apcfacebook



2008/6/23  [EMAIL PROTECTED]:

 Selam;

 PHPAccelerator kullandim acikcasi cok verimli degildi. Su an XCache
 kullaniyorum gayet memnunum ince ayarlar yaparak cok iyi performanslar
 alabilirsiniz.

 Saygilar

 opcode cache için 3 senedir eaccelerator kullanıyorum, ortalama rps 3-4
 kat
 artıyor diyebilirim

 normalde 30 - 40 req/s iken eacc ile 80 - 90 req/s

 xcachede fena değil aslında,

 http://xcache.lighttpd.net/wiki/Introduction#ButwhydoyouwriteXCacheafterthatWhynotcontributetoeaapc

 selamlar


 2008/6/22 [EMAIL PROTECTED]:

 merhabalar,

 xcache, APC ya da eaccelerator.

 bu 3 uygulamayı da kurdum. çalıştırdım. denedim ama hangisini
 kullanacağıma
 karar veremedim.

 sizler hangisini tansiye edersiniz.?




 --
 Engin Dumlu




 FreeBSD 6 kitabi: http://www.acikakademi.com/catalog/freebsd6
 -
 Listeye soru sormadan once lutfen http://ipucu.enderunix.org sitesine
 bakiniz.

 Cikmak icin, e-mail: [EMAIL PROTECTED]
 Liste arsivi: http://news.gmane.org/gmane.org.user-groups.bsd.turkey







-- 
Engin Dumlu 



[FreeBSD] web sunucu ve sysctl

2008-06-24 Başlik Mesut GÜLNAZ
Ağır yük altındaki bir apache + php + mysql sistemi üzerinde olması gereken
sysctl ayarları konusunda bilgi verebilir ya da yardımcı olabilir misiniz?
Aşağıda Ömer Faruk ŞEN arakadaşımızın bir zamanlar hazırladığı konfig i
gönderiyorum. 

 

Not: sistem üzerinde 64 MB cache kullanan xcache çalışmaktadır. Mysql içinde
cache seviyesini ayarlamayı ya ad değiştirmeyi düşünüyorum.

 

security.bsd.see_other_uids=0

vfs.vmiodirenable=1

vfs.timestamp_precision=1

kern.ipc.maxsockbuf=2097152

kern.ipc.somaxconn=8192

kern.maxfiles=65536

kern.maxfilesperproc=32768

net.inet.tcp.rfc1323=1

net.inet.tcp.sendspace=65536

net.inet.tcp.recvspace=65536

net.inet.udp.recvspace=65536

net.inet.udp.maxdgram=65536

net.local.stream.recvspace=65536

net.local.stream.sendspace=65536

net.inet.icmp.bmcastecho=0

net.inet.icmp.maskrepl=0

net.inet.ip.accept_sourceroute=0

net.inet.ip.sourceroute=0

net.link.ether.inet.max_age=1200

net.inet.icmp.log_redirect=1

net.inet.icmp.drop_redirect=1

net.inet.tcp.delayed_ack=1

net.inet.tcp.blackhole=2

net.inet.udp.blackhole=1

net.inet.tcp.log_in_vain=1

net.inet.udp.log_in_vain=1

kern.coredump=0

kern.ipc.shmmax=2073741824

kern.ipc.shmall=262144

kern.ipc.semmsl=512

kern.ipc.semmap=256

 

 

İyi çalışmalar...

 

Mesut GÜLNAZ

 



RE: [FreeBSD] web sunucu ve sysctl

2008-06-24 Başlik Mesut GÜLNAZ
Çok önemli bir şeyi unuttum.

Sistem 5.4-STABLE ve aşağıdaki paketler kurulu.

 

mysql-client-5.0.27 Multithreaded SQL database (client)

mysql-server-5.0.27 Multithreaded SQL database (server)

php5-mysql-5.2.0The mysql shared extension for php

apache-2.2.3Version 2.2 of Apache web server with prefork MPM.

php5-5.2.4  PHP Scripting Language

 

iyi çalışmalar...

 

From: Mesut GÜLNAZ [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2008 3:00 PM
To: freebsd@lists.enderunix.org
Subject: [FreeBSD] web sunucu ve sysctl

 

Ağır yük altındaki bir apache + php + mysql sistemi üzerinde olması gereken
sysctl ayarları konusunda bilgi verebilir ya da yardımcı olabilir misiniz?
Aşağıda Ömer Faruk ŞEN arakadaşımızın bir zamanlar hazırladığı konfig i
gönderiyorum. 

 

Not: sistem üzerinde 64 MB cache kullanan xcache çalışmaktadır. Mysql içinde
cache seviyesini ayarlamayı ya ad değiştirmeyi düşünüyorum.

 

security.bsd.see_other_uids=0

vfs.vmiodirenable=1

vfs.timestamp_precision=1

kern.ipc.maxsockbuf=2097152

kern.ipc.somaxconn=8192

kern.maxfiles=65536

kern.maxfilesperproc=32768

net.inet.tcp.rfc1323=1

net.inet.tcp.sendspace=65536

net.inet.tcp.recvspace=65536

net.inet.udp.recvspace=65536

net.inet.udp.maxdgram=65536

net.local.stream.recvspace=65536

net.local.stream.sendspace=65536

net.inet.icmp.bmcastecho=0

net.inet.icmp.maskrepl=0

net.inet.ip.accept_sourceroute=0

net.inet.ip.sourceroute=0

net.link.ether.inet.max_age=1200

net.inet.icmp.log_redirect=1

net.inet.icmp.drop_redirect=1

net.inet.tcp.delayed_ack=1

net.inet.tcp.blackhole=2

net.inet.udp.blackhole=1

net.inet.tcp.log_in_vain=1

net.inet.udp.log_in_vain=1

kern.coredump=0

kern.ipc.shmmax=2073741824

kern.ipc.shmall=262144

kern.ipc.semmsl=512

kern.ipc.semmap=256

 

 

İyi çalışmalar...

 

Mesut GÜLNAZ

 



Re: [FreeBSD] hangi php cache uygulaması

2008-06-24 Başlik onur gunduz
Bu yöntemlerin lighttpd'nin memcaching ya da normal caching yöntemlerine
göre avantajları ya da farkları var mıdır? Dil olarak Ruby ya da Python
kullanıyorum.

2008/6/24 OSMAN ORHAN [EMAIL PROTECTED]:

 Acaba bu teste symfony nin etkisi var mı? Yani bildiğim kadarıyla
 symfony nin kendi cache mekanizması var?

 Şurada da bir test var ;

 http://blog.digitalstruct.com/2007/12/23/php-accelerators-apc-vs-zend-vs-xcache-with-zend-framework/


 2008/6/24 Mesut GÜLNAZ [EMAIL PROTECTED]:
  Çok teşekkürler...
 
 
 
  From: Engin Dumlu [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2008 1:51 PM
  To: freebsd@lists.enderunix.org
  Subject: Re: [FreeBSD] hangi php cache uygulaması
 
 
 
  symfony framework üzerinde çalışan bir sistemde test yaptım, xcache bariz
  fark atıyor, sonuçlar şöyle:
 
  -- eacc -
 
  srv1:/www/stage# ab -c 10 -t 6 http://localhost/
  This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
  Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  Copyright 2006 The Apache Software Foundation, http://www.apache.org/
 
  Benchmarking localhost (be patient)
  Finished 465 requests
 
 
  Server Software:Apache/2.2.3
  Server Hostname:localhost
  Server Port:80
 
  Document Path:  /
  Document Length:5935 bytes
 
  Concurrency Level:  10
  Time taken for tests:   6.11133 seconds
  Complete requests:  465
  Failed requests:0
  Write errors:   0
  Total transferred:  2973672 bytes
  HTML transferred:   2777580 bytes
  Requests per second:77.36 [#/sec] (mean)
  Time per request:   129.272 [ms] (mean)
  Time per request:   12.927 [ms] (mean, across all concurrent
 requests)
  Transfer rate:  482.94 [Kbytes/sec] received
 
  Connection Times (ms)
min  mean[+/-sd] median   max
  Connect:00   0.0  0   0
  Processing:43  126  83.1107 880
  Waiting:   43  126  83.0106 880
  Total: 43  126  83.1107 880
 
  Percentage of the requests served within a certain time (ms)
50%107
66%129
75%148
80%158
90%195
95%271
98%378
99%543
   100%880 (longest request)
 
 
 
 
  -- xcache ---
 
  srv1:/www/stage# ab -c 10 -t 6 http://localhost/
  This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
  Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  Copyright 2006 The Apache Software Foundation, http://www.apache.org/
 
  Benchmarking localhost (be patient)
  Finished 624 requests
 
 
  Server Software:Apache/2.2.3
  Server Hostname:localhost
  Server Port:80
 
  Document Path:  /
  Document Length:5935 bytes
 
  Concurrency Level:  10
  Time taken for tests:   6.1119 seconds
  Complete requests:  624
  Failed requests:0
  Write errors:   0
  Total transferred:  3971250 bytes
  HTML transferred:   3709375 bytes
  Requests per second:103.98 [#/sec] (mean)
  Time per request:   96.172 [ms] (mean)
  Time per request:   9.617 [ms] (mean, across all concurrent requests)
  Transfer rate:  646.21 [Kbytes/sec] received
 
  Connection Times (ms)
min  mean[+/-sd] median   max
  Connect:00   0.0  0   0
  Processing:23   94  64.5 72 434
  Waiting:0   93  64.4 71 434
  Total: 23   94  64.5 72 434
 
  Percentage of the requests served within a certain time (ms)
50% 72
66%104
75%125
80%139
90%183
95%217
98%277
99%330
   100%434 (longest request)
 
 
  2008/6/24 OSMAN ORHAN [EMAIL PROTECTED]:
 
  Facebook un APC kullandığını biliyorum, ama facebook un bu konuda kötü
  olduğunu da eklemek lazım(fakat bunu direk cache mekanizmasına
  bağlamak doğru olmaz herhalde);
  http://www.scribd.com/doc/88689/apcfacebook
 
 
 
  2008/6/23  [EMAIL PROTECTED]:
 
  Selam;
 
  PHPAccelerator kullandim acikcasi cok verimli degildi. Su an XCache
  kullaniyorum gayet memnunum ince ayarlar yaparak cok iyi performanslar
  alabilirsiniz.
 
  Saygilar
 
  opcode cache için 3 senedir eaccelerator kullanıyorum, ortalama rps 3-4
  kat
  artıyor diyebilirim
 
  normalde 30 - 40 req/s iken eacc ile 80 - 90 req/s
 
  xcachede fena değil aslında,
 
 
 
 http://xcache.lighttpd.net/wiki/Introduction#ButwhydoyouwriteXCacheafterthatWhynotcontributetoeaapc
 
  selamlar
 
 
  2008/6/22 [EMAIL PROTECTED]:
 
  merhabalar,
 
  xcache, APC ya da eaccelerator.
 
  bu 3 uygulamayı da kurdum. çalıştırdım. denedim ama hangisini
  kullanacağıma
  karar veremedim.
 
  sizler hangisini tansiye edersiniz.?
 
 
 
 
  --
  Engin Dumlu
 
 
 
 
  FreeBSD 6 kitabi: http://www.acikakademi.com/catalog/freebsd6
  

Re: [FreeBSD] hangi php cache uygulaması

2008-06-24 Başlik onur gunduz
Yani benim içn sorun olan cgi'ın execute olma süresi değil sql serverin
meşguliyeti. Bu durumda bir opcode generator kullanmalı mıyım? PHP dışında
diller için opcode generate eden framework var mı? Rails ya da Merb üzerinde
böyle bir özellik kullanabilir miyim?

On Tue, Jun 24, 2008 at 6:37 PM, onur gunduz [EMAIL PROTECTED] wrote:

 Bu yöntemlerin lighttpd'nin memcaching ya da normal caching yöntemlerine
 göre avantajları ya da farkları var mıdır? Dil olarak Ruby ya da Python
 kullanıyorum.


 2008/6/24 OSMAN ORHAN [EMAIL PROTECTED]:

 Acaba bu teste symfony nin etkisi var mı? Yani bildiğim kadarıyla
 symfony nin kendi cache mekanizması var?

 Şurada da bir test var ;

 http://blog.digitalstruct.com/2007/12/23/php-accelerators-apc-vs-zend-vs-xcache-with-zend-framework/


 2008/6/24 Mesut GÜLNAZ [EMAIL PROTECTED]:
  Çok teşekkürler...
 
 
 
  From: Engin Dumlu [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2008 1:51 PM
  To: freebsd@lists.enderunix.org
  Subject: Re: [FreeBSD] hangi php cache uygulaması
 
 
 
  symfony framework üzerinde çalışan bir sistemde test yaptım, xcache
 bariz
  fark atıyor, sonuçlar şöyle:
 
  -- eacc -
 
  srv1:/www/stage# ab -c 10 -t 6 http://localhost/
  This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
  Copyright 1996 Adam Twiss, Zeus Technology Ltd,
 http://www.zeustech.net/
  Copyright 2006 The Apache Software Foundation, http://www.apache.org/
 
  Benchmarking localhost (be patient)
  Finished 465 requests
 
 
  Server Software:Apache/2.2.3
  Server Hostname:localhost
  Server Port:80
 
  Document Path:  /
  Document Length:5935 bytes
 
  Concurrency Level:  10
  Time taken for tests:   6.11133 seconds
  Complete requests:  465
  Failed requests:0
  Write errors:   0
  Total transferred:  2973672 bytes
  HTML transferred:   2777580 bytes
  Requests per second:77.36 [#/sec] (mean)
  Time per request:   129.272 [ms] (mean)
  Time per request:   12.927 [ms] (mean, across all concurrent
 requests)
  Transfer rate:  482.94 [Kbytes/sec] received
 
  Connection Times (ms)
min  mean[+/-sd] median   max
  Connect:00   0.0  0   0
  Processing:43  126  83.1107 880
  Waiting:   43  126  83.0106 880
  Total: 43  126  83.1107 880
 
  Percentage of the requests served within a certain time (ms)
50%107
66%129
75%148
80%158
90%195
95%271
98%378
99%543
   100%880 (longest request)
 
 
 
 
  -- xcache ---
 
  srv1:/www/stage# ab -c 10 -t 6 http://localhost/
  This is ApacheBench, Version 2.0.40-dev $Revision: 1.146 $ apache-2.0
  Copyright 1996 Adam Twiss, Zeus Technology Ltd,
 http://www.zeustech.net/
  Copyright 2006 The Apache Software Foundation, http://www.apache.org/
 
  Benchmarking localhost (be patient)
  Finished 624 requests
 
 
  Server Software:Apache/2.2.3
  Server Hostname:localhost
  Server Port:80
 
  Document Path:  /
  Document Length:5935 bytes
 
  Concurrency Level:  10
  Time taken for tests:   6.1119 seconds
  Complete requests:  624
  Failed requests:0
  Write errors:   0
  Total transferred:  3971250 bytes
  HTML transferred:   3709375 bytes
  Requests per second:103.98 [#/sec] (mean)
  Time per request:   96.172 [ms] (mean)
  Time per request:   9.617 [ms] (mean, across all concurrent
 requests)
  Transfer rate:  646.21 [Kbytes/sec] received
 
  Connection Times (ms)
min  mean[+/-sd] median   max
  Connect:00   0.0  0   0
  Processing:23   94  64.5 72 434
  Waiting:0   93  64.4 71 434
  Total: 23   94  64.5 72 434
 
  Percentage of the requests served within a certain time (ms)
50% 72
66%104
75%125
80%139
90%183
95%217
98%277
99%330
   100%434 (longest request)
 
 
  2008/6/24 OSMAN ORHAN [EMAIL PROTECTED]:
 
  Facebook un APC kullandığını biliyorum, ama facebook un bu konuda kötü
  olduğunu da eklemek lazım(fakat bunu direk cache mekanizmasına
  bağlamak doğru olmaz herhalde);
  http://www.scribd.com/doc/88689/apcfacebook
 
 
 
  2008/6/23  [EMAIL PROTECTED]:
 
  Selam;
 
  PHPAccelerator kullandim acikcasi cok verimli degildi. Su an XCache
  kullaniyorum gayet memnunum ince ayarlar yaparak cok iyi performanslar
  alabilirsiniz.
 
  Saygilar
 
  opcode cache için 3 senedir eaccelerator kullanıyorum, ortalama rps
 3-4
  kat
  artıyor diyebilirim
 
  normalde 30 - 40 req/s iken eacc ile 80 - 90 req/s
 
  xcachede fena değil aslında,
 
 
 
 http://xcache.lighttpd.net/wiki/Introduction#ButwhydoyouwriteXCacheafterthatWhynotcontributetoeaapc
 
  selamlar
 
 
  2008/6/22 [EMAIL PROTECTED]: