Subject | Re: [firebird-support] firebird configuration questions |
---|---|
Author | Douglas Tosi |
Post date | 2008-12-27T19:03Z |
On Wed, Dec 24, 2008 at 9:55 AM, svanderclock <svanderclock@...> wrote:
If you're also using events, you have to set RemoteAuxPort in
firebird.conf and open that TCP port in your firewall as well.
But I don't know if enabling these options has any practical negative
effect. In any case a UPS is highly recommended.
this option has not effect.
"buffers
Pages: 10240
size: 40960"
Thus your database is using ~40MB of cache. I suppose this is
SuperServer? If so you may safely increase this value.
If you're using Classic, things are a little more complicated as you
have to multiply this number (40MB) by the number of simultaneous
connections to get the real size of your cache at a given time.
FileSystem and one from Firebird. That's rather ineffective. You may
wish to disable the FS cache and increase Firebird's cache.
When using Classic, FS is a must.
operations that require temp space, and TempCacheLimit is set to 2GB
you'll need 40GB of memory.
64MB is a good default. Leave it.
those cores. SuperServer is limited to a single core.
But Classic is takes a bit more skill to run and maintain.
Google about it. There are a lot of useful comparisons. I even wrote a
basic one that may get you started. ;)
http://www.sinatica.com/blog/en/index.php/articles/firebird-superserver-classicserver-or-superclassic
to GCPolicy before changing it. Maybe it was fixed on a recent
version?
Stéphane, the settings I didn't mention are the ones you should leave
at the default value.
hth,
--
Douglas Tosi
www.sinatica.com
> 1/ in the firewall, i open the port 3050 in TCP or also the port 3050Only TCP is needed.
> in UDP ? did i need to do something else in the firewall ?
If you're also using events, you have to set RemoteAuxPort in
firebird.conf and open that TCP port in your firewall as well.
> 3/ in windows, on the disk driver, can i activate "enable writeI know they are not directly related.
> caching on disk" and "enable advanced performance" ? is this
> connected also in some way with the option "force writes" of the
> database ?
But I don't know if enabling these options has any practical negative
effect. In any case a UPS is highly recommended.
> 4/ about the Firebird configuration file, what are the good option :If you are setting the cache manually on you database as you mention,
> #DefaultDbCachePages = 2048
this option has not effect.
> As i have 570711 pages, 2048 seen very little ? can i increase it toYou said:
> something like 250000 ? or more ?
"buffers
Pages: 10240
size: 40960"
Thus your database is using ~40MB of cache. I suppose this is
SuperServer? If so you may safely increase this value.
If you're using Classic, things are a little more complicated as you
have to multiply this number (40MB) by the number of simultaneous
connections to get the real size of your cache at a given time.
> #MaxFileSystemCache = 65536When using Superserver, you actually get double buffers. One from the
>
> hmm, it's mean that i can have 65536 different file ? is it not to
> lot ? what the advantage to not use file system cache ? what else
> will be use ?
FileSystem and one from Firebird. That's rather ineffective. You may
wish to disable the FS cache and increase Firebird's cache.
When using Classic, FS is a must.
> #TempBlockSize = 1048576This is the block size, not the max size. Leave it.
> 1 mo seen very low, especially when i do lot of "heavy" sort ! can i
> increase it to 512 mb ?
> #TempCacheLimit = 67108864Remember, this value applies to each client. If 20 clients request
> 64 mo seem also very low ! can i change it to 2 or 4 GO ? (i have a
> server with 8 go of memory)
operations that require temp space, and TempCacheLimit is set to 2GB
you'll need 40GB of memory.
64MB is a good default. Leave it.
> #CpuAffinityMask = 1You may want to research into Classic Server if you wish to use all
> I have a xeon 4 heart, did i leave this params like this ?
those cores. SuperServer is limited to a single core.
But Classic is takes a bit more skill to run and maintain.
Google about it. There are a lot of useful comparisons. I even wrote a
basic one that may get you started. ;)
http://www.sinatica.com/blog/en/index.php/articles/firebird-superserver-classicserver-or-superclassic
> #GCPolicy = combinedIt's better to research into that bug and understand if it's related
> I have often a bug during sweep and garbage collection that make my
> processor going to 100% for unlimited time. can i change it to
> background or cooperative ?
to GCPolicy before changing it. Maybe it was fixed on a recent
version?
Stéphane, the settings I didn't mention are the ones you should leave
at the default value.
hth,
--
Douglas Tosi
www.sinatica.com