会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stupidstan2019
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
24
下一页
2022年3月28日
搭环境
摘要: 0)代码量27w 1)tikv服务端 cenos8 https://github.com/tikv/tikv 2)py客户端编译 https://github.com/tikv/client-py pip3 install --upgrade pip yum install -y python3.8
阅读全文
posted @ 2022-03-28 22:13 stupidstan2019
阅读(62)
评论(0)
推荐(0)
2022年3月27日
3)leveldb特性笔记
摘要: https://wiesen.github.io/post/leveldb-introduction/ 1)写放大 Compaction:当某一层的总大小超过了它的限制时,合并线程就会从该层选择一个文件将其和下一层的所有重叠的文件进行归并排序产生一个新的 SSTable 文件放在下一层中 当把 i-
阅读全文
posted @ 2022-03-27 17:02 stupidstan2019
阅读(167)
评论(0)
推荐(0)
2)leveldb compact调用栈
摘要: 1)数据存储 文件目录 含义 2)生成sst 业务线程 a)把memTable赋值给immTable b)写wal日志 c)检查是否触发压缩 压缩线程调用栈
阅读全文
posted @ 2022-03-27 16:09 stupidstan2019
阅读(32)
评论(0)
推荐(0)
1)leveldb跳表
摘要: 1)读流程 参考https://kunzhao.org/docs/tutorial/distributed-storage/leveldb-read/ a)先读memTable b)在读immutableMemTable c)在从磁盘里读SSTable 对应代码 2)读memTable跳表逻辑 参考
阅读全文
posted @ 2022-03-27 13:12 stupidstan2019
阅读(49)
评论(0)
推荐(0)
远程调试leveldb
摘要: 0)安装snappy #apt install -y gdb ubuntu-snappy yum install -y gdb snappy 1)修改编译 修改编译配置Makefile第五行 OPT ?= -O0 -gdwarf-2 -g3 2)调试代码 参考https://blog.csdn.ne
阅读全文
posted @ 2022-03-27 10:21 stupidstan2019
阅读(122)
评论(1)
推荐(0)
环境安装
摘要: 【环境安装】 ubuntu20.04 1)编译leveldb 参考https://blog.csdn.net/weixin_29294975/article/details/116928909 #wget https://github.com/google/leveldb/archive/v1.19
阅读全文
posted @ 2022-03-27 00:31 stupidstan2019
阅读(46)
评论(0)
推荐(0)
2022年3月20日
innodb代码量约20w行
摘要:
阅读全文
posted @ 2022-03-20 22:14 stupidstan2019
阅读(62)
评论(0)
推荐(0)
系统表查询
摘要: 【问题】 mysql> select * from mysql.tablespaces;ERROR 3554 (HY000): Access to data dictionary table 'mysql.tablespaces' is rejected. 【解决办法】 参考https://zhua
阅读全文
posted @ 2022-03-20 17:12 stupidstan2019
阅读(343)
评论(0)
推荐(0)
表空间,段,区,页笔记
摘要: 1)为什么引入extent 如果没有区只用页来管理,相邻的两个叶子节点可能离得非常远,全表扫描是从第一个叶开始,顺序扫描,导致随机io 为索引分配空间时候以区为单位,浪费空间换取时间 2)存储结构 3)rootPage内容 参考https://zhuanlan.zhihu.com/p/8639488
阅读全文
posted @ 2022-03-20 10:54 stupidstan2019
阅读(52)
评论(0)
推荐(0)
编译调试mysql
摘要: 【参考】 https://cloud.tencent.com/developer/article/1799089 centos7.9 mysql8.0.22 gcc编译大概5个小时 【解决环境问题】 1)修改这几处代码 2)替换libstdc++.so.6.0.28 strings /usr/lib
阅读全文
posted @ 2022-03-20 10:48 stupidstan2019
阅读(152)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
24
下一页
公告