/images/avatar.jpg
杂七杂八的,随手记录。

Red Hat Enterprise Linux 7 Performance Tuning Guide

本文为摘录(或转载),侵删,原文为: attachments/pdf/c/red_hat_enterprise_linux-7-performance_tuning_guide-en-us.pdf

SA-LSM: Optimize Data Layout for LSM-tree Based Storage using Survial Analysis

Table of Contents

本文为摘录(或转载),侵删,原文为: attachments/pdf/5/p2161-zhang.pdf

  • 云存储中很大一部分数据很少被访问,被称为 冷数据
  • 精确地识别和有效地管理成本效益高的存储中的冷数据是云提供商面临的主要挑战之一,需要平衡降低成本和提高系统性能。
  • 为此,提出了 SA-LSM 来利用生存分析(Survival Analysis)的方式来处理 LSM-tree 键值(KV)存储。
  • 传统上,LSM-tree 的数据布局是由写操作和压实操作共同确定的。
  • 然而,该过程默认情况下并未充分利用数据记录的访问信息,导致次优的数据布局,对系统性能产生负面影响。
  • SA-LMS 使用生存分析,一种在生物统计学中常用的统计学习算法来优化数据布局。
  • 当与合适的 LSM-tree 实现结合使用时,SA-LSM 可以使用历史信息和访问痕迹准确预测冷数据。
  • 具体实现方面,将 SA-LSM 应用于商业化开源 LSM-tree 存储引擎 X-Engine
  • 了使部署更加灵活,还设计了一种非侵入式架构,可以将 CPU 密集型任务(例如模型训练和推断)卸载到外部服务上。
  • 在真实工作负载上的广泛实验表明,与现有技术相比,SA-LSM 可以将尾延迟降低高达 78.9%。
  • 这种方法的通用性和显著性能提升在相关应用中具有巨大潜力。

为了降低存储成本,LSM 树变成了一种越来越受欢迎的架构。它引入了多层异构存储:

shared memory utilities

本文为摘录(或转载),侵删,原文为: https://linuxopsys.com/topics/check-shared-memory-in-linux

Print active shared memory segments using -m option.

1
2
3
4
5
# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 65536 root 600 393216 2 dest
0x00000000 98305 root 600 393216 2 dest

where,

SQLite: Past, Present, and Future

Table of Contents

本文为摘录(或转载),侵删,原文为: attachments/pdf/2/p3535-gaffney.pdf

  • SQLite is embedded in the process of the host application

  • Instead of communicating with a database server across process boundaries, applications manage a SQLite database by calling SQLite library functions

  • several characteristics combine to make SQLite useful in a broad range of scenario:

std::initializer_list in C++

本文为摘录(或转载),侵删,原文为: https://www.cppstories.com/2023/initializer_list_improvements/

std::initializer_list 在使用中会转化成为常量对象的匿名局部数组:

1
2
3
4
5
6
std::initializer_list<int> wrong() { // for illustration only!
    return { 1, 2, 3, 4};
}
int main() {
    std::initializer_list<int> x = wrong();
}

The above code is equivalent to the following: