dbTalk Databases Forums  

filesystem timestamp of btrieve-files in OSQLV8

comp.databases.btrieve comp.databases.btrieve


Discuss filesystem timestamp of btrieve-files in OSQLV8 in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nmm
 
Posts: n/a

Default filesystem timestamp of btrieve-files in OSQLV8 - 06-29-2004 , 02:44 AM






Hi,
since we use PSQLV8 the following has been changed: the timestamp of
btrieve-files in the filesystem does not change until the btrieve file
is closed. All data are written correctly to the file, but the file
itself is not "touched".
In former version of PSQL this was different: filesystem timestaps where
updated immediately.
Is this a known issue or does this point to a errornous instalation?

Any hint will be wellcome.

Mircea

p.s.: Cache allcoation size is set to 512 MB, Main-memory of the server
is 1 GB. Create file Version is set to 7.x.
The server-system is Win2000 Server, NTFS.

Reply With Quote
  #2  
Old   
Leonard
 
Posts: n/a

Default Re: filesystem timestamp of btrieve-files in OSQLV8 - 06-29-2004 , 08:09 AM






The timestamp of the file is updated by the operating system itself
not the database engine.

It has been observed that when the "System Cache" setting is "on" the
OS does update the timestamps in an ongoing basis. The default value
for the System Cache setting has changed to off with V8 due to the
dynamic caching inside the database engine. The OS would use the
memory for generic file IO caching instead of the dynamic specialized
database cache built into the engine.

Setting the Cache Allocation to 1/2 the available memory will not let
the dynamic cache work at the highest efficiency. Of course if you
entire data set fits in cache allocation I would not change it as the
dynamic cache is not as efficient as the normal cache.

Leonard

On Tue, 29 Jun 2004 09:44:18 +0200, nmm
<Mircea.Malarski (AT) onlinehome (DOT) de> wrote:

Quote:
Hi,
since we use PSQLV8 the following has been changed: the timestamp of
btrieve-files in the filesystem does not change until the btrieve file
is closed. All data are written correctly to the file, but the file
itself is not "touched".
In former version of PSQL this was different: filesystem timestaps where
updated immediately.
Is this a known issue or does this point to a errornous instalation?

Any hint will be wellcome.

Mircea

p.s.: Cache allcoation size is set to 512 MB, Main-memory of the server
is 1 GB. Create file Version is set to 7.x.
The server-system is Win2000 Server, NTFS.


Reply With Quote
  #3  
Old   
nmm
 
Posts: n/a

Default Re: filesystem timestamp of btrieve-files in OSQLV8 - 07-04-2004 , 01:42 PM



Leonard wrote:
Quote:
The timestamp of the file is updated by the operating system itself
not the database engine.

It has been observed that when the "System Cache" setting is "on" the
OS does update the timestamps in an ongoing basis. The default value
for the System Cache setting has changed to off with V8 due to the
dynamic caching inside the database engine. The OS would use the
memory for generic file IO caching instead of the dynamic specialized
database cache built into the engine.
Thank you for your response.

Quote:
Setting the Cache Allocation to 1/2 the available memory will not let
the dynamic cache work at the highest efficiency. Of course if you
Should it be more or less 1/2 of the available memory?

Quote:
entire data set fits in cache allocation I would not change it as the
I suppose, that not all data fits to 512 MB, the files itself eat about
1 GB on the harddrive.

Quote:
dynamic cache is not as efficient as the normal cache.
If the normal cache is more efficient as the dynamic cache, way not turn
of dynamic cache at all? Or, if this is to strong, way not reset the
default value for the System Cache setting to "on"?

Regards
Mircea

Quote:
Leonard

On Tue, 29 Jun 2004 09:44:18 +0200, nmm
Mircea.Malarski (AT) onlinehome (DOT) de> wrote:


Hi,
since we use PSQLV8 the following has been changed: the timestamp of
btrieve-files in the filesystem does not change until the btrieve file
is closed. All data are written correctly to the file, but the file
itself is not "touched".
In former version of PSQL this was different: filesystem timestaps where
updated immediately.
Is this a known issue or does this point to a errornous instalation?

Any hint will be wellcome.

Mircea

p.s.: Cache allcoation size is set to 512 MB, Main-memory of the server
is 1 GB. Create file Version is set to 7.x.
The server-system is Win2000 Server, NTFS.



Reply With Quote
  #4  
Old   
Leonard
 
Posts: n/a

Default Re: filesystem timestamp of btrieve-files in OSQLV8 - 07-05-2004 , 11:04 AM



On Sun, 04 Jul 2004 20:42:38 +0200, nmm
<Mircea.Malarski (AT) onlinehome (DOT) de> wrote:

Quote:
Leonard wrote:
The timestamp of the file is updated by the operating system itself
not the database engine.

It has been observed that when the "System Cache" setting is "on" the
OS does update the timestamps in an ongoing basis. The default value
for the System Cache setting has changed to off with V8 due to the
dynamic caching inside the database engine. The OS would use the
memory for generic file IO caching instead of the dynamic specialized
database cache built into the engine.

Thank you for your response.


Setting the Cache Allocation to 1/2 the available memory will not let
the dynamic cache work at the highest efficiency. Of course if you
Should it be more or less 1/2 of the available memory?
If you really want to take advantage of the dynamic cache regular
cache would need to be lowered so that the dynamic cache has some
memory to work with.
Quote:
entire data set fits in cache allocation I would not change it as the
I suppose, that not all data fits to 512 MB, the files itself eat about
1 GB on the harddrive.
Since the dynamic cache is read-only clean pages, optimized for
database access and it can (usually without issue although not always)
use 90% of the memory it may be possible for it to cache all the data
in the data files. Don't forget that there is some empty space in the
data files and the applicaiton rarely will use all the indexes in a
data file meaning that it probably could cache 1GB of data files in
about 800MB.
Quote:
dynamic cache is not as efficient as the normal cache.
If the normal cache is more efficient as the dynamic cache, way not turn
of dynamic cache at all? Or, if this is to strong, way not reset the
default value for the System Cache setting to "on"?
The dynamic cache is optimized for database access. The OS cache is
generic and often times caches the same information as is already in
the regular cache.
It turns out the dynamic cache is better to use than the OS cache in
most cases as it does not double cache the information and is
optimized for the database engine.

In most cases the crosover point to use OS cache instead of dynamic
cache come when there is 4GB or more of RAM in the server. The OS
will not allow the database process to use more than 2GB so at that
point the OS cache while not as efficient as the dynamic cache can
just take advantage of so much more memory in the machine that it
would work better anyway.

Leonard
Quote:
Regards
Mircea


Leonard

On Tue, 29 Jun 2004 09:44:18 +0200, nmm
Mircea.Malarski (AT) onlinehome (DOT) de> wrote:


Hi,
since we use PSQLV8 the following has been changed: the timestamp of
btrieve-files in the filesystem does not change until the btrieve file
is closed. All data are written correctly to the file, but the file
itself is not "touched".
In former version of PSQL this was different: filesystem timestaps where
updated immediately.
Is this a known issue or does this point to a errornous instalation?

Any hint will be wellcome.

Mircea

p.s.: Cache allcoation size is set to 512 MB, Main-memory of the server
is 1 GB. Create file Version is set to 7.x.
The server-system is Win2000 Server, NTFS.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.