使用perl模块 graph easy 画图

graph-easy

两种装法

  • 从命令行安装(我没有网,没试过)
cpan install Graph::Easy
或者
perl -MCPAN -e shell
install Graph::Easy
  • 编译源码 下载地址 解压进入目录下

    perl Makefile.PL make make test make install

graph-easy文件在bin目录下,拷贝到usr/bin或者使用路径访问都可以

[hot data limit\n data cold out] ->
[consumed cold data enqueue\n pipe event write] -> 
[pipe event noticed,\n read and dequeue ]-> 
[thread pool add job\n do queuejob asyc]

生成图像

+—————-+ +—————————-+ +———————+ +———————+ | hot data limit | | consumed cold data enqueue | | pipe event noticed, | | thread pool add job | | data cold out | –> | pipe event write | –> | read and dequeue | –> | do queuejob asyc | +—————-+ +—————————-+ +———————+ +———————+

还算省事儿,有机会读读代码实现。(又挖坑)


看到这里或许你有建议或者疑问或者指出我的错误,请留言评论或者邮件mailto:wanghenshui@qq.com, 多谢!

觉得写的不错可以点开扫码赞助几毛 微信转账
Read More


使用ssh访问 virtualbox,端口转发

使用ssh访问 virtualbox,端口转发

前提环境 ubuntu 1804

安装并开启sshd

apt install openssh-server

service start sshd

设置端口转发

vmportfoward

使用ssh -p 12345 root@localhost 访问即可


到此为止下面是牢骚

本来WSL都能搞定大部分场景,但是会把环境搞乱,虽说重装wsl也不麻烦

决定用docker来做实验环境,但发现业界都转k8s了?

不过docker确实很好用,准备用一用,但是wsl仅在hyper-v条件下才支持docker server daemon,基于这个条件,可以server命令启动,也可以安装docker for windows来导入,连接有很多就不列举了

有个issue 解释了半天也没说(或者我没看明白)不用hyper-v能不能用docker,所以只能搞虚拟机,还要在开个窗口麻烦,所以搞个转发wsl访问


看到这里或许你有建议或者疑问或者指出我的错误,请留言评论或者邮件mailto:wanghenshui@qq.com, 多谢!

觉得写的不错可以点开扫码赞助几毛 微信转账
Read More

Little Dump

layout: post title: 一些二进制分析工具记录 categories: tools tags: []

[toc]

Read More

Little Cmd

layout: post title: 常用快捷键/命令行/系统设定 categories: tools tags: [linux, macos, windows, vscode, vim, shell, docker]

[toc]

Read More

ubuntu设置共享目录

这个问题困扰我这工作日最后一天。由于搜索姿势不对怎么也没搜到解决办法。最后琢磨出方法之后,也看到了两个帖子。。

http://blog.csdn.net/cindy_cheng/article/details/50456977

http://blog.csdn.net/kurosakimaon/article/details/53575301

第一个帖子的评论解决了我得问题。

Read More

C Pit

layout: post title: c陷阱与缺陷笔记 categories: review tags: [c]

[toc]

Read More

(转)TokuDB的索引结构--分形树的实现

转自这篇文章 http://openinx.github.io/2015/11/25/ft-index-implement/

还有一篇mvcc 待看 http://openinx.github.io/2015/12/13/ft-mvcc/

本文从工程实现角度解析TokuDB的索引结构--分形树。 详细描述了ft-index的磁盘存储结构,ft-index如何实现Point-Query, Range-Query, Insert/Delete/Update操作, 并在描述过程中,试图从各个角度和InnoDB的B+树做详细对比。

Read More


need review list

tcpaccept

https://blog.csdn.net/zhangskd/article/details/42614793

https://blog.csdn.net/for_tech/article/details/54175571

https://unix.stackexchange.com/questions/94104/real-world-use-of-tcp-defer-accept

gflags

glog

https://yq.aliyun.com/articles/66848 https://github.com/hedengcheng/tech/blob/master/database/RocksDB/RocksDB(MyRocks)%E6%BA%90%E7%A0%81%E5%AD%A6%E4%B9%A0%E2%80%94%E8%AF%BB.pdf

http://tinylab.org/source-code-analysis-gprof2dot-draw-a-runtime-function-calls-the-c-program/

http://tinylab.org/source-code-analysis-dynamic-analysis-of-linux-kernel-function-calls/

http://tinylab.org/memory-allocation-mystery-%C2%B7-jemalloc-a/

mysql https://draveness.me/mysql-transaction

cpucache https://akkadia.org/drepper/cpumemory.pdf http://blog.jobbole.com/36263/ hugepage http://cenalulu.github.io/linux/huge-page-on-numa/ http://cenalulu.github.io/linux/all-about-cpu-cache/

https://blog.csdn.net/leshami/article/details/8777639

vitural mem http://blog.jobbole.com/36303/?utm_source=blog.jobbole.com&utm_medium=relatedPosts

sst http://www.pandademo.com/2016/04/sstable-file-format-and-build-leveldb-source-dissect-7/ tablecache http://www.pandademo.com/2016/04/two-stage-cache-of-sstable-leveldb-source-dissect-8/ presis table cache https://blog.csdn.net/yi_1973/article/details/79415430

multi write http://www.pandademo.com/2016/10/parallel-write-rocksdb-source-dissect-3/

cf http://www.pandademo.com/2016/09/column-family-rocksdb-source-dissect-1/

write amp http://www.pandademo.com/2016/12/rocksdb-read-write-and-space-amplification/

compaction base sen? https://juejin.im/post/5b1f69dee51d4506d25e31ea

index http://kernelmaker.github.io/Rocksdb_file_indexers

level aera http://mingxinglai.com/cn/2013/01/leveldb-arena/

rocksdb arena http://www.pandademo.com/2016/09/arena-rocksdb-source-dissect-0/

ceph rocksdb http://strugglesquirrel.com/2018/05/20/ceph%E6%80%A7%E8%83%BD%E8%B0%83%E4%BC%98%E5%8E%86%E7%A8%8B-rocksdb%E7%AF%87-2/

db paper forkbase https://arxiv.org/pdf/1802.04949.pdf flodb https://infoscience.epfl.ch/record/227333/files/flodb-infoscience.pdf novelsm http://research.cs.wisc.edu/wind/Publications/atc-novelsm18.pdf memory index prefix tree

other? http://web.mit.edu/Saltzer/www/publications/endtoend/endtoend.pdf

haproxy-redis https://www.cnblogs.com/EasonJim/p/7630379.html

100gdb https://wizardforcel.gitbooks.io/100-gdb-tips/part1.html https://subs.emis.de/LNI/Proceedings/Proceedings180/227.pdf

Read More

^