pgpool2.git / summary / log / commit / refs
commit 51ab078111b034d9e65be9608a773e080307c593
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Mon May 21 10:46:53 2012 +0000
memqcache_cache_block_size is now must be greater than or equal to
512. This prevent not only creating a too small block which will be
inefficient, but miscalculation of size of the free space management
map.
doc/pgpool-en.html | 23 ++++++++++++-----------
doc/pgpool-ja.html | 3 ++-
pool_config.c | 4 ++--
pool_config.l | 4 ++--
4 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/doc/pgpool-en.html b/doc/pgpool-en.html
index 9c316a78f..0446a7965 100644
--- a/doc/pgpool-en.html
+++ b/doc/pgpool-en.html
@@ -7,7 +7,7 @@
</head>
<!-- hhmts start -->
-Last modified: Tue May 8 16:42:49 JST 2012
+Last modified: Mon May 21 19:43:37 JST 2012
<!-- hhmts end -->
<body bgcolor="#ffffff">
@@ -2660,16 +2660,6 @@ These are the parameters used with shared memory as the cache strage.
</dd>
<dt id="MEMQCACHE_MAX_NUM_CACHE">memqcache_max_num_cache</dt>
- <dd>
- <p>
- Specify the number of cache which is used for the whole size of the cache space.
- (except for <a href="MEMQCACHE_TOTAL_SIZE">memqcache_total_size</a>):
- It is memqcache_max_num_cache * 48 byte.
- A too small number makes registing cache a error, and a large number will be too much.
- </p>
- </dd>
-
-<dt id="MEMQCACHE_CACHE_BLOCK_SIZE">memqcache_cache_block_size</dt>
<dd>
<p>
Specify the number of cache entries.
@@ -2681,6 +2671,17 @@ These are the parameters used with shared memory as the cache strage.
On the other hand too large number is just a waste of space.
</p>
</dd>
+
+<dt id="MEMQCACHE_CACHE_BLOCK_SIZE">memqcache_cache_block_size</dt>
+ <dd>
+ <p>
+ If cache storage is shared memory, pgpool uses the memory devided by memqcache_cache_block_size.
+ SELECT result is packed into the block.
+ However because the SELECT result cannot be placed in several blocks, it cannot be cached if it is larger
+ than memqcache_cache_block_size.
+ memqcache_cache_block_size must be greater or equal to 512.
+ </p>
+ </dd>
</dl>
<h2 id="memcached_params">Configuring to use memcached</h2>
diff --git a/doc/pgpool-ja.html b/doc/pgpool-ja.html
index 9752d4d7c..75a4ba7cd 100644
--- a/doc/pgpool-ja.html
+++ b/doc/pgpool-ja.html
@@ -8,7 +8,7 @@
<body>
<!-- hhmts start -->
-Last modified: Tue May 8 16:25:59 JST 2012
+Last modified: Mon May 21 19:40:49 JST 2012
<!-- hhmts end -->
<body bgcolor="#ffffff">
@@ -2799,6 +2799,7 @@ memqcache_cache_hits | 36717 | Number of SELE
$B$N%-%c%C%7%e$O$3$N%V%m%C%/$KF~$k$@$15M$a9~$^$l$^$9!#(B
$B$?$@$7!"%-%c%C%7%e$OJ#?t$N%V%m%C%/$K$^$?$,$C$F3JG<$5$l$J$$$N$G!"(B
memqcache_cache_block_size$B$r8!:w7k2L$,D6$($k$H!"%-%c%C%7%e$K3JG<$G$-$J$/$J$j$^$9!#(B
+ memqcache_cache_block_size$B$O!"(B512$B0J>e$NCM$G$J$1$l$P$J$j$^$;$s!#(B
</p>
</dd>
</dl>
diff --git a/pool_config.c b/pool_config.c
index c6d745159..c35b8f56d 100644
--- a/pool_config.c
+++ b/pool_config.c
@@ -3832,9 +3832,9 @@ int pool_get_config(char *confpath, POOL_CONFIG_CONTEXT context)
{
int v = atoi(yytext);
- if (token != POOL_INTEGER || v < 0)
+ if (token != POOL_INTEGER || v < 512)
{
- pool_error("pool_config: %s must be equal or higher than 0 numeric value", key);
+ pool_error("pool_config: %s must be equal or higher than 512 numeric value", key);
fclose(fd);
return(-1);
}
diff --git a/pool_config.l b/pool_config.l
index a4e8700df..031822564 100644
--- a/pool_config.l
+++ b/pool_config.l
@@ -2107,9 +2107,9 @@ int pool_get_config(char *confpath, POOL_CONFIG_CONTEXT context)
{
int v = atoi(yytext);
- if (token != POOL_INTEGER || v < 0)
+ if (token != POOL_INTEGER || v < 512)
{
- pool_error("pool_config: %s must be equal or higher than 0 numeric value", key);
+ pool_error("pool_config: %s must be equal or higher than 512 numeric value", key);
fclose(fd);
return(-1);
}
[parent: 60819fcf8d9d]