-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
226 lines (139 loc) · 14.3 KB
/
atom.xml
File metadata and controls
226 lines (139 loc) · 14.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>好奇编程博客 (OutOfMemory1024)</title>
<icon>https://www.wang7x.com/logo.png</icon>
<subtitle>Curious Programming Blog (OutOfMemory1024) - 吃货程序猿的探索</subtitle>
<link href="https://www.wang7x.com/atom.xml" rel="self"/>
<link href="https://www.wang7x.com/"/>
<updated>2021-04-22T02:12:48.647Z</updated>
<id>https://www.wang7x.com/</id>
<author>
<name>Casey Wang</name>
</author>
<generator uri="https://hexo.io/">Hexo</generator>
<entry>
<title>Ubuntu 20.04 启用休眠(Hibernate)配置过程</title>
<link href="https://www.wang7x.com/2021-01-28-ubuntu-20-04-hibernate/"/>
<id>https://www.wang7x.com/2021-01-28-ubuntu-20-04-hibernate/</id>
<published>2021-01-27T16:00:00.000Z</published>
<updated>2021-04-22T02:12:48.647Z</updated>
<summary type="html"><p>最近经常带笔记本回家工作,每次都需要先关闭打开的虚拟机、资料文档和开发环境,回家之后再打开,特别繁琐,所以研究了下Ubuntu 20.04(20.10)如何配置休眠模式。</p>
<h3 id="基础"><a href="#基础" class="headerlink" title="基础"></a>基础</h3><p>广义来讲,在Linux中支持<a href="https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file">三种睡眠模式</a>,分别是:</p>
<ul>
<li><p>Suspend to RAM,即狭义的挂起(Suspend),本文后面提到挂起都是指这种模式。</p>
</li>
<li><p>Suspend to Disk,即我们常说的休眠(Hibernate)。</p>
</li>
<li><p>Suspend to Both,也被称作Hybrid Suspend,是上面两种模式的混合,兼具两种模式的优点(和缺点)。</p>
</li>
</ul>
<p>Ubuntu桌面版默认只有挂起(Suspend)模式,没有启用休眠(Hibernate)模式。</p>
<p>挂起和休眠的目标都是保存冻结系统当前状态,后续需要时“快速”唤醒恢复,但是两者的实现方式是不同的。</p></summary>
<category term="ARTS" scheme="https://www.wang7x.com/categories/arts/"/>
<category term="Tip" scheme="https://www.wang7x.com/categories/arts/tip/"/>
<category term="Linux" scheme="https://www.wang7x.com/tags/linux/"/>
<category term="Ubuntu" scheme="https://www.wang7x.com/tags/ubuntu/"/>
</entry>
<entry>
<title>Linux OOM Killer</title>
<link href="https://www.wang7x.com/2021-01-26-linux-oom-killer/"/>
<id>https://www.wang7x.com/2021-01-26-linux-oom-killer/</id>
<published>2021-01-25T16:00:00.000Z</published>
<updated>2021-04-22T02:23:38.605Z</updated>
<summary type="html"><p>今天介绍一个跟公众号名字很相关的Linux内存管理机制。</p>
<h3 id="概念"><a href="#概念" class="headerlink" title="概念"></a>概念</h3><p>在软件故障中,<a href="https://en.wikipedia.org/wiki/Out_of_memory">Out-Of-Memory</a>(OOM,系统可用内存不足)是最古老的故障之一,并且一直延续至今。</p>
<p>在早期的计算机系统中,内存小到以kb为单位,那时的程序员要精细的计算每一条指令的内存使用量,犹如在钢丝绳上表演杂技,稍有不慎就会出现内存不足导致软件或操作系统崩溃,但是即使限制那么苛刻,依然产生了许多伟大的软件,这也是这个公众号的名字由来。</p>
<p>即使今天的家用计算机内存已经至少8G起步,操作系统上运行的软件也会遇见OOM错误,Linux为了避免系统内存不足导致整个系统不可用,建立了一套OOM管理机制。</p>
<p>Linux的<a href="https://www.kernel.org/doc/gorman/html/understand/understand016.html">OOM管理机制</a>会检测可用内存,在内存不足故障发生时选择性的杀死一个或者几个进程以释放内存,而执行这一任务的进程就被称作Linux Out-Of-Memory(OOM) Killer。</p></summary>
<category term="ARTS" scheme="https://www.wang7x.com/categories/arts/"/>
<category term="Share" scheme="https://www.wang7x.com/categories/arts/share/"/>
<category term="Linux" scheme="https://www.wang7x.com/tags/linux/"/>
<category term="Operating System" scheme="https://www.wang7x.com/tags/operating-system/"/>
<category term="Memory Management" scheme="https://www.wang7x.com/tags/memory-management/"/>
</entry>
<entry>
<title>Open Source Load Testing Tool Review 2020</title>
<link href="https://www.wang7x.com/2021-01-22-open-source-load-testing-tool-review-2020/"/>
<id>https://www.wang7x.com/2021-01-22-open-source-load-testing-tool-review-2020/</id>
<published>2021-01-21T16:00:00.000Z</published>
<updated>2021-04-22T02:23:46.541Z</updated>
<summary type="html"><blockquote>
<p>Ragnar Lönn, 04 MARCH 2020</p>
<p>原文地址:<a href="https://k6.io/blog/comparing-best-open-source-load-testing-tools">https://k6.io/blog/comparing-best-open-source-load-testing-tools</a></p>
</blockquote>
<h3 id="摘要"><a href="#摘要" class="headerlink" title="摘要"></a>摘要</h3><p>今年想在DevOps平台上集成一些性能测试的工具,方便开发团队自助进行性能测试,调研了一些工具,分享其中一篇文章。</p>
<p>这篇文章的作者分别在17年和20年对市面上的性能测试工具进行了详细的比较和评测,内容非常翔实,他自己也是其中k6工具的作者。</p>
<p>文中参与评测的12款工具的清单如下:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">Apachebench 2.3</span><br><span class="line">Artillery 1.6.0</span><br><span class="line">Drill 0.5.0 (new)</span><br><span class="line">Gatling 3.3.1</span><br><span class="line">Hey 0.1.2</span><br><span class="line">Jmeter 5.2.1</span><br><span class="line">k6 0.26.0</span><br><span class="line">Locust 0.13.5</span><br><span class="line">Siege 4.0.4</span><br><span class="line">Tsung 1.7.0</span><br><span class="line">Vegeta 12.7.0</span><br><span class="line">Wrk 4.1.0</span><br></pre></td></tr></table></figure>
<p>文章主要关注众多测试工具的两方面内容:一是性能表现如何,二是易用性如何。</p></summary>
<category term="ARTS" scheme="https://www.wang7x.com/categories/arts/"/>
<category term="Review" scheme="https://www.wang7x.com/categories/arts/review/"/>
<category term="Load Testing" scheme="https://www.wang7x.com/tags/load-testing/"/>
<category term="Performance Testing" scheme="https://www.wang7x.com/tags/performance-testing/"/>
<category term="Open Source" scheme="https://www.wang7x.com/tags/open-source/"/>
</entry>
<entry>
<title>Guide to UUID in Java</title>
<link href="https://www.wang7x.com/2021-01-17-guide-to-uuid-in-java/"/>
<id>https://www.wang7x.com/2021-01-17-guide-to-uuid-in-java/</id>
<published>2021-01-16T16:00:00.000Z</published>
<updated>2021-04-22T02:24:02.477Z</updated>
<summary type="html"><blockquote>
<p>by baeldung</p>
<p>原文地址:<a href="https://www.baeldung.com/java-uuid">https://www.baeldung.com/java-uuid</a></p>
</blockquote>
<p>最近没怎么写代码,简单复习一下Java的UUID知识点吧,原文来自于baeldung,这个网站有很多Java语言的技巧,经过我长期观察,内容相对各种中文博客是严谨靠谱很多的,可以日常看看,巩固知识。</p>
<h3 id="1-概览"><a href="#1-概览" class="headerlink" title="1.概览"></a>1.概览</h3><p>Java中的UUID是一个128bit的值,通常用十六进制数字加”-“字符表示为长度36位的字符串,例如<code>123e4567-e89b-12d3-a456-556642440000</code>,因为128bit是16字节,而一个字节可以表示为2个十六进制字符,”-“符号纯粹是为了可读性添加的,不实际存储于数据中。</p>
<p>UUID广泛用于表示全局唯一值的场景,但是并不是完全不会重复,只是重复的概率较小,在数据量较大和多服务器环境中要注意UUID可能出现重复。</p></summary>
<category term="ARTS" scheme="https://www.wang7x.com/categories/arts/"/>
<category term="Tip" scheme="https://www.wang7x.com/categories/arts/tip/"/>
<category term="Java" scheme="https://www.wang7x.com/tags/java/"/>
<category term="UUID" scheme="https://www.wang7x.com/tags/uuid/"/>
</entry>
<entry>
<title>Maximizing Developer Effectiveness Review</title>
<link href="https://www.wang7x.com/2021-01-17-maximizing-developer-effectiveness-review/"/>
<id>https://www.wang7x.com/2021-01-17-maximizing-developer-effectiveness-review/</id>
<published>2021-01-16T16:00:00.000Z</published>
<updated>2021-04-22T02:23:55.001Z</updated>
<summary type="html"><blockquote>
<p>Tim Cochran, 06 January 2021</p>
<p>原文地址:<a href="https://martinfowler.com/articles/developer-effectiveness.html">https://martinfowler.com/articles/developer-effectiveness.html</a></p>
</blockquote>
<h3 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h3><p>这篇文章是一系列文章的开篇,作者观察到许多企业在引入新技术后,开发者的效能不增反降,作者认为这是由于新技术的复杂性和认知负担导致的。</p>
<p>通过研究,作者识别了开发者的关键反馈回路(key developer feedback loops),包括开发者每天重复200次的微反馈回路(micro-feedback loops),本系列文章试图引入一个最大化开发者效能的框架,通过优化这些回路提高开发者效能。</p></summary>
<category term="ARTS" scheme="https://www.wang7x.com/categories/arts/"/>
<category term="Review" scheme="https://www.wang7x.com/categories/arts/review/"/>
<category term="Development Effectiveness" scheme="https://www.wang7x.com/tags/development-effectiveness/"/>
<category term="DevOps" scheme="https://www.wang7x.com/tags/devops/"/>
</entry>
<entry>
<title>OutOfMemory的Kafka学习笔记(1)</title>
<link href="https://www.wang7x.com/2021-01-16-leaning-kafka-1/"/>
<id>https://www.wang7x.com/2021-01-16-leaning-kafka-1/</id>
<published>2021-01-15T16:00:00.000Z</published>
<updated>2021-04-22T02:24:13.400Z</updated>
<summary type="html"><h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>Kafka是Apache的顶级消息中间件项目,因为强大的处理能力,被广泛应用于大数据处理和日志采集等领域,发展的前景非常好。</p>
<p>我希望通过对Kafka的学习,深入了解流式数据处理的基本原理,为深入大数据领域的工作奠定基础。</p>
<p>同时也希望能够在金融业务处理中借鉴或引入相关思想和技术。</p>
<h2 id="目标"><a href="#目标" class="headerlink" title="目标"></a>目标</h2><ul>
<li>理解Kafka的原理、架构和关键处理机制</li>
<li>掌握构建、部署和管理Kafka集群的技术</li>
<li>掌握Kafka的参数配置和应用编程</li>
<li>熟悉Kafka关键处理模块的源码</li>
<li>为Kafka开源项目贡献力量</li>
</ul></summary>
<category term="ARTS" scheme="https://www.wang7x.com/categories/arts/"/>
<category term="Share" scheme="https://www.wang7x.com/categories/arts/share/"/>
<category term="Apache Kafka" scheme="https://www.wang7x.com/tags/apache-kafka/"/>
<category term="Distributed Streaming Platform" scheme="https://www.wang7x.com/tags/distributed-streaming-platform/"/>
</entry>
<entry>
<title>Hello World</title>
<link href="https://www.wang7x.com/2016-11-03-hello-world/"/>
<id>https://www.wang7x.com/2016-11-03-hello-world/</id>
<published>2016-11-02T16:00:00.000Z</published>
<updated>2021-04-21T11:25:23.244Z</updated>
<summary type="html"><p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a></summary>
</entry>
</feed>