TimesTen数据库的的磁盘空间占用主要由两部分组成:

  1. checkpoing文件
  2. 数据库log 文件

checkpoint文件因为有两个,因此至少需要2 * Permsize空间,建议预留3-4倍Permsize空间。

数据库log文件类似于Oracle的redo log,在checkpoint(默认600秒)时会自动清理,也可以用ttckpt命令手工清理。是否能被清理取决于是否有缓存组,日志,XLA等。

写这篇文章的初衷,是由于客户运维关心日志文件清理,这样看来只需要留够足够的空间就好了。

比较经典的解答看这里,我粘贴了原文,概念讲得很好:

Although TimesTen is an in-memory database it does provide full persistence and recoverability using local disk storage (it also supports replication for high availability but that is a different topic). The persistence mechanism uses a combination of checkpoint files (dbname.ds[01]), and transaction log files (dbname.logNNN) to provide persistence, recoverability etc.
The checkpoint files contain an ‘image’ of the in-mmory database and these on disk images are referred periodically by automatic checkpoint operations. When a checkpoint occurs it always updates the oldest checkpoint image (which flip flops from one checkpoint to the next); the checkpoint flushes all changed data from the in-memory database to the checkpoint disk image performing an in-place update on the disk file. After the checkpoint has completed the file on disk is an up to date image of the in-memory database. Since checkpoints do not block queries or DML, the checkpoint images on disk are in fact ‘fuzzy’ (not transactionally consistent).
In addition to checkpointing, any change to persistent data that occurs in the database (for example as a result of DML operations) generates log records that describe the changes. These log records can be used for undo (rollback) and for redo (recovery). They are also used by various TimesTen features such as replication, AWT caching and XLA. These log records are staged in an in memory buffer (the log buffer) before being written to the current log file on disk. Each log file has a fixed maximum size (the LogFileSize parameter) and when it reaches that size it is closed an a new log file is created. The log files have a sequence number as part of their name (dbname.logNNN).
So over time the size and number of log files continually increases, which would be a problem if there was no mechanism to clean them up. Luckily there is - checkpointing. When a log file is no longer required - the changes represented by the records in the file have been checkpoints into both checkpoint files and are no longer required by replication, cache, XLA etc. - then the file will be deleted when the next checkpoint operation occurs.
During normal operation, checkpoint operations occur automatically based on the parameters CkptFrequency (in seconds, default is 600) and CkptLogVolume (in MB, default 0).
So, in a system in steady state with a workload running that contains some amount of write operations log files are continuously generated but also continuously purged based on checkpointing.
When configuring your system you need to consider:

  1. What checkpoint parameters should I use? the defaults are rarely ‘correct’ for any given scenario.
  2. How much disk space do I need for the checkpoint files? The answer is PermSize +64 [MB] * 2.
  3. How much disk space do I need for log files. This depends (a) on the workload and (b) on the checkpoint parameters.

It is important to ensure the system has sufficient disk space for the checkpoint files and (especially) the transaction log files since running out of disk space is highly inadvisable.
Note that you can force a manual checkpoint at any time by connecting to the database using ttIsql as an ADMIN user (or the instance administrator) and issuing the command:

call ttCkpt;

I hope that clarifies.

Best regards,

Chris

以及:

You must never remove database files manually (this applies not just
to TimesTen but to any database). The log files are the transaction
logs (undo/redo) and are essential for correct database operation and
recoverability. If you remove them you essentially corrupt/destroy
your database.

Log files are cleaned up automatically when they are no longer needed,
by checkpoint operations; after two checkpoints most log files will be
removed. Any remaining are still required for database recovery,
replication, cache propagation etc.

Given that after just a little activity your server is down to 3% free
disk space I would recommend you increase the available disk space
significantly or use a server with more free space. Sufficient space
is a necessity and it sounds like your server does not have sufficient
for the size of database and workload that you are experimenting with.

Chris

TimesTen磁盘空间管理相关推荐

  1. Doris之磁盘空间管理(重点)

    Doris之磁盘空间管理(重点) 磁盘存储空间有关的系统参数和处理策略. Doris 的数据磁盘空间如果不加以控制,会因磁盘写满而导致进程挂掉.因此我们监测磁盘的使用率和剩余空间,通过设置不同的警戒水 ...

  2. ceph bluestore中的磁盘空间管理

    ceph bluestore摒弃了传统的本地文件系统,而直接使用裸磁盘作为OSD的存储介质,因而需要自行管理磁盘空间的分配与回收 概述 一个设计良好的磁盘空间管理器,需要兼顾空间和时间效率:blues ...

  3. Jenkins服务器磁盘空间管理策略

    Jenkins在帮助我们自动化构建服务的同时也在消耗服务器的磁盘空间,试想如果构建的项目个数很多,而Jenkins 服务器磁盘空间又不是非常大的话,每隔一段时间磁盘空间就会爆满导致Jenkins出现磁 ...

  4. 简单好用的树莓派磁盘空间管理工具

    简单好用的树莓派磁盘空间管理工具 问题来源:树莓派系统备份时全盘备份太浪费空间,而众所周知,windows下是很难对linux定义的磁盘做修改的,在网上冲浪了一会,总结了一个比较方便的方法. 解决办法 ...

  5. 文件管理 磁盘空间管理

    目录 https://blog.csdn.net/weixin_45792450/article/details/109314765 磁盘空间管理意义 文件信息在大部分时间内都是存放在外存储器(主要是 ...

  6. 操作系统 第7 ,8 章 文件与磁盘空间管理

    第7 ,8 章 文件与磁盘空间管理 1.文件和文件系统 文件管理:把所管理的程序和数据组织成一系列的文件,并能进行合理的存储.使用等操作. 1 )基本概念 数据项:描述对象某种属性的字符集:是数据组织 ...

  7. 磁盘空间管理工具FolderSizes

    现在的硬盘已经到了用TB来计量的级别,但也会感觉在不知不觉间空间竟然不够用了!到底什么东西占用了我们这么多的磁盘空间呢? 这个软件可以帮你快速进行分析. FolderSizes 企业版是一款优秀的磁盘 ...

  8. 正版软件 | DaisyDisk:Mac 电脑一流的磁盘空间管理工具

    使用 Mac 工作时,平时创建并下载大量文件,但很容易忘记或者很少删除这些内容.但是有一天,您发现启动磁盘已红,但是自己又好似没有安装啥软件,这时候就会想到底是哪些数据占用了这么大的空间?! 作为一名 ...

  9. 《操作系统》知识点整理(十二)——文件与磁盘空间管理

    7.8文件与磁盘管理 1.文件和文件系统 文件管理:把所管理的程序和数据组织成一系列的文件,并能进行合理的存储.使用等操作. 1 )基本概念 数据项:描述对象某种属性的字符集:是数据组织中可以命名的最 ...

最新文章

  1. JDK8对并发的新支持
  2. python小括号报错_Python学习记录:括号配对检测问题
  3. [Curator] Path Cache 的使用与分析
  4. leaflet的入门开发(一)
  5. php退出登录后不能再登录了,php怎么实现退出登录功能?
  6. 那些永不消逝的进程 (转)
  7. 贪吃蛇系列之一——引入
  8. python 知识点总结
  9. Python学习之路-22 (面向对象特殊成员)
  10. Machine Learning for Communication Networks
  11. 51单片机自学笔记(一)——keil软件的使用
  12. python如何下载包_怎么在python中下载包
  13. 使用nvim来代替VSCode,神操作
  14. MySQL自增id溢出
  15. [kernel]linux内核基础: 版本、源码、编译与调试
  16. 绑架、做空、造假…是谁搞垮了曾经的“网红公司”网秦?
  17. 各种格式的文件用什么软件打开
  18. c++ http gzip压缩解压缩
  19. 不同速度的蚂蚁跑圈相遇问题
  20. 基于浮云绘图 快速开发车站状态图

热门文章

  1. 搜索结果【高亮显示】
  2. 【配置rust环境】windows+vscode
  3. Android屏幕适配-资源文件夹命名与匹配规则
  4. [Oracle]高水位标记(HWM)
  5. 关于redmine4.0 一键安装文件共享
  6. 利用for输出偶数和奇数
  7. 互联网神奇药拯救高等教育
  8. vue页面手机端开发总结
  9. shell脚本中的$用法
  10. Android-利用动画实现背景逐渐变暗