-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
925 lines (504 loc) · 27.4 KB
/
index.html
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
<!DOCTYPE HTML>
<html >
<head>
<meta charset="UTF-8">
<title>chenbiaolong's blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="chenbiaolong">
<meta name="description">
<meta property="og:type" content="website">
<meta property="og:title" content="chenbiaolong's blog">
<meta property="og:url" content="http://chenbiaolong.com/">
<meta property="og:site_name" content="chenbiaolong's blog">
<meta property="og:description">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="chenbiaolong's blog">
<meta name="twitter:description">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/jacman.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/jacman.jpg">
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body>
<header>
<div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="chenbiaolong's blog">chenbiaolong's blog</a></h1>
<h2 class="blog-motto"></h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="Menu">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">首页</a></li>
<li><a href="/archives">存档</a></li>
<li><a href="/about">about</a></li>
<li>
<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="search" id="search" name="q" autocomplete="off" maxlength="20" placeholder="Search" />
<input type="hidden" name="q" value="site:chenbiaolong.com">
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/07/01/svd/" title="SVD(矩阵奇异值分解)简介" itemprop="url">SVD(矩阵奇异值分解)简介</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-07-01T12:39:52.000Z" itemprop="datePublished"> Published Jul 1 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概述">概述</h2>
<p>线性代数方法使我们可以将数据分解为很多分量,然后分析其中的主要分量,奇异值分解(SVD)就是其中的一种矩阵分解技术,它是一种有效的代数特征提取方法,深刻揭示了矩阵的内部结构。目前,奇异值分解在信息检索方面的应用主要是隐含语义检索(Latent Semantic Indexing,LSI)。潜在语义索引可以将文档在向量空间模型中的高维表示,投影到低维的潜在语义空间中,这一方面缩小了检索的规模,另一方面也在一定程度上避免了数据的过分稀疏。本文主要根据下文列出的参考文献进行整理,并加入了一些个人理解。
<p class="article-more-link">
<a href="/2015/07/01/svd/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/机器学习/">机器学习</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/SVD/">SVD</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/07/01/svd/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/07/01/svd/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/06/16/ASM-two/" title="ASM(active shape model)算法简介(二)" itemprop="url">ASM(active shape model)算法简介(二)</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-06-16T09:17:20.000Z" itemprop="datePublished"> Published Jun 16 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概要">概要</h2>
<p>在上一篇文章中,我们利用PCA分析根据训练集得到了形状的平均模型。一个形状可以表示为<span class="math inline">\(X=\bar{X}+Pb\)</span>,<span class="math inline">\(\bar{X}\)</span>为平均形状,从公式可以看出选定不同的<span class="math inline">\(b\)</span>可以得到形状的不同形态。我们将<span class="math inline">\(b\)</span>称为形状参数(shape parameter)。举个例子来说,在人脸识别中,<span class="math inline">\(\bar{X}\)</span>是训练集中各个人的平均脸,表示“完美”的人脸。而<span class="math inline">\(Pb\)</span>表示实际图片中的人脸偏离“完美人脸”的程度。在这篇文章中我们将讨论在一张图片中ASM算法是如何逐步找到特定形状的。
<p class="article-more-link">
<a href="/2015/06/16/ASM-two/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/机器学习/">机器学习</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/ASM/">ASM</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/06/16/ASM-two/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/06/16/ASM-two/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/05/29/ASM-one/" title="ASM(active shape model)算法简介(一)" itemprop="url">ASM(active shape model)算法简介(一)</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-05-29T08:39:24.000Z" itemprop="datePublished"> Published May 29 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概要">概要</h2>
<p>如果您访问该网页时公式显示不正常,请访问<a href="https://zybuluo.com/chenbiaolong/note/104505" target="_blank" rel="external">这个链接</a>阅读</p>
<p>ASM是一种基于点分布模型(Point Distribution Model,PDM)的算法。在PDM中,外形相似的物体,例如人脸、人手、心脏、肺部等的几何形状可以通过若干关键特征点(landmarks)的坐标依次串联形成一个形状向量来表示。ASM算法需要通过人工标定的方法先标定训练集,经过训练获得形状模型,再通过关键点的匹配实现特定物体的匹配。ASM 的优点是 能根据训练数据对于参数的调节加以限制,从而将形状的改变限制在一个合理的范围内。本文将根据ASM的原始论文和一些资料,整理ASM算法的数学原理。</p>
<p class="article-more-link">
<a href="/2015/05/29/ASM-one/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/机器学习/">机器学习</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/ASM/">ASM</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/05/29/ASM-one/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/05/29/ASM-one/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/05/13/决策树学习(二)/" title="决策树学习(二)" itemprop="url">决策树学习(二)</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-05-13T05:40:58.000Z" itemprop="datePublished"> Published May 13 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概述">概述</h2>
<p>在上一篇文章中我们利用信息熵的概念找到了最优的划分属性,当然也是仅仅找到“<strong>一个</strong>”属性而已,虽然利用这个属性划分数据集有着最大的熵减。在现实的机器学习中是不可能只用一个属性就能将数据分类的,因此本文将在上一篇文章的基础上真正构建一颗决策树。熵减越大的属性在该树的节点深度越浅。
<p class="article-more-link">
<a href="/2015/05/13/决策树学习(二)/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/机器学习/">机器学习</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/决策树/">决策树</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/05/13/决策树学习(二)/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/05/13/决策树学习(二)/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/05/12/决策树学习(一)/" title="决策树学习(一)" itemprop="url">决策树学习(一)</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-05-12T06:17:46.000Z" itemprop="datePublished"> Published May 12 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概述">概述</h2>
<p>决策树学习是一种逼近<strong>离散值</strong>目标函数的方法,简单来说它可以被表示为多个的if-then的规则表达式。在本文中先主要介绍决策树的基本概念,主要包括熵的概念以及如何选择最优的数据集划分方式
<p class="article-more-link">
<a href="/2015/05/12/决策树学习(一)/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/机器学习/">机器学习</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/决策树/">决策树</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/05/12/决策树学习(一)/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/05/12/决策树学习(一)/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/04/07/wiki2/" title="Mahout in action分析维基百科数据例子(二)" itemprop="url">Mahout in action分析维基百科数据例子(二)</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-04-07T06:53:18.000Z" itemprop="datePublished"> Published Apr 7 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概要">概要</h2>
<p>这篇文章主要论述我在实现<a href="http://chenbiaolong.com/2015/04/03/wiki1/" target="_blank" rel="external">上一篇文章</a>所述功能时的具体操作过程。因为<code>hadoop</code>现在有两套新旧API接口,因此在实现过程中需要十分注意你import进来的class是属于新的API还是旧的API。本文的所使用的<code>hadoop</code>版本是<code>2.6</code>版本。
<p class="article-more-link">
<a href="/2015/04/07/wiki2/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/大数据/">大数据</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/hadoop/">hadoop</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/04/07/wiki2/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/04/07/wiki2/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/04/03/wiki1/" title="Mahout in action分析维基百科数据例子(一)" itemprop="url">Mahout in action分析维基百科数据例子(一)</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-04-03T08:34:27.000Z" itemprop="datePublished"> Published Apr 3 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概要">概要</h2>
<p>本文主要根据mahout in action第六章分析维基百科链接数据的例子编写。大部分内容是直接翻译的mahout in action,不过不是逐字翻译,加入了一些个人理解。关于本文的前提背景可以参考其他博主翻译的文章: <a href="http://www.cnblogs.com/colorfulkoala/archive/2012/12/16/2820855.html" target="_blank" rel="external">Mahout in action 中文版-6.分布式推荐计算-6.1</a> <a href="http://www.cnblogs.com/colorfulkoala/archive/2012/12/16/2820866.html" target="_blank" rel="external">Mahout in action 中文版-6.分布式推荐计算-6.2</a></p>
<p class="article-more-link">
<a href="/2015/04/03/wiki1/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/大数据/">大数据</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/hadoop/">hadoop</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/04/03/wiki1/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/04/03/wiki1/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/04/01/Hadoop运行包含第三方依赖库的MapReduce作业/" title="Hadoop运行包含第三方依赖库的MapReduce作业" itemprop="url">Hadoop运行包含第三方依赖库的MapReduce作业</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-04-01T09:37:52.000Z" itemprop="datePublished"> Published Apr 1 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概述">概述</h2>
<p>最近打算学习一下利用hadoop搭建机器学习平台,因为mahout这个机器学习库资料比较多,因此就根据《mahout in action》这本书学习了一下如何搭建hadoop+mahout的机器学习平台。 由于mahout in action只是列出了部分代码,具体的环境搭建书上写的并不多。在编写依赖于mahout的MapReduce函数时经常会出现<code>ClassNotFoundException: org.apache.mahout.math.Vector</code>等类似错误。在网上找了很多的资料,但大都是从配置服务器<code>HADOOP_CLASSPATH</code>等角度出发的。这些方法要求将第三方依赖库拷贝到对应的<code>HADOOP_CLASSPATH</code>路径下,或者更改相应的环境变量使<code>hadoop</code>能识别相应的依赖库。这种做法的问题是需要更改服务器的工作环境,当未来应用程序需要更新依赖库时需要替换服务器的jar包。而且,即使我将mahout的两个主要依赖包<code>mahout-core-0.9.jar</code>和<code>mahout-math-0.9.jar</code>加入到对应的<code>HADOOP_CLASSPATH</code>路径依然无法解决<code>ClassNotFoundException</code>问题。
<p class="article-more-link">
<a href="/2015/04/01/Hadoop运行包含第三方依赖库的MapReduce作业/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/大数据/">大数据</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/hadoop/">hadoop</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/04/01/Hadoop运行包含第三方依赖库的MapReduce作业/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/04/01/Hadoop运行包含第三方依赖库的MapReduce作业/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/03/26/搭建Hadoop开发环境/" title="Intellij IDEA 搭建Hadoop开发环境" itemprop="url">Intellij IDEA 搭建Hadoop开发环境</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-03-26T08:01:30.000Z" itemprop="datePublished"> Published Mar 26 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概述">概述</h2>
<p>在linux环境下编译调试java代码比较麻烦,为了方便,我在windows环境下利用 IDEA搭建了Hadoop的开发环境。只要在IDEA环境中导入Hadoop的核心包,就可以在IDEA环境下编译MapReduce程序,配置生成相应的jar包。通过将该jar包导入到linux服务器的hadoop集群,就可以运行相应的MapReduce程序了。在这里我以官方的WordCount程序作为例子。
<p class="article-more-link">
<a href="/2015/03/26/搭建Hadoop开发环境/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/大数据/">大数据</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/hadoop/">hadoop</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/03/26/搭建Hadoop开发环境/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/03/26/搭建Hadoop开发环境/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/02/27/docker实现原理之cgroup/" title="docker实现原理之cgroup" itemprop="url">docker实现原理之cgroup</a>
</h1>
<p class="article-author">By
<a href="http://chenbiaolong.com/about" title="chenbiaolong" target="_blank" itemprop="author">chenbiaolong</a>
<p class="article-time">
<time datetime="2015-02-27T07:11:54.000Z" itemprop="datePublished"> Published Feb 27 2015</time>
</p>
</header>
<div class="article-content">
<h2 id="概要">概要</h2>
<p>cgroups是control groups的缩写,是Linux内核提供的一种可以限制、记录、隔离进程组(process groups)所使用的物理资源(如:cpu,memory,IO等等)的机制。上篇博客写的namespace作用是使linux的全局资源局域化,使各个名字空间的系统环境相互隔离,互不影响。而cgroup可以限制资源使用的最大值,限制当前进程组对外的最大影响(但无法隔离其他进程对自己的影响)。namespace与cgroup相互配合将使容器具备环境隔离和资源限制的能力,再加上镜像提供的根目录环境,使用chroot即可以为容器提供一个隔离的根目录环境。 本文将主要从内核源码的角度分析docker常用的cgroup资源限制功能:cpuset memory 和blkio。
<p class="article-more-link">
<a href="/2015/02/27/docker实现原理之cgroup/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/docker/">docker</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/docker-基础工作原理/">docker 基础工作原理</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="http://chenbiaolong.com/2015/02/27/docker实现原理之cgroup/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/02/27/docker实现原理之cgroup/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<nav id="page-nav" class="clearfix">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">Next<span></span></a>
</nav>
</div>
<div class="openaside"><a class="navbutton" href="#" title="Show Sidebar"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="Hide Sidebar"></a></div>
<aside class="clearfix">
<div class="categorieslist">
<p class="asidetitle">分类</p>
<ul>
<li><a href="/categories/docker/" title="docker">docker<sup>5</sup></a></li>
<li><a href="/categories/大数据/" title="大数据">大数据<sup>4</sup></a></li>
<li><a href="/categories/机器学习/" title="机器学习">机器学习<sup>5</sup></a></li>
<li><a href="/categories/第三方软件/" title="第三方软件">第三方软件<sup>1</sup></a></li>
</ul>
</div>
<div class="tagslist">
<p class="asidetitle">标签</p>
<ul class="clearfix">
<li><a href="/tags/docker-基础工作原理/" title="docker 基础工作原理">docker 基础工作原理<sup>5</sup></a></li>
<li><a href="/tags/hadoop/" title="hadoop">hadoop<sup>4</sup></a></li>
<li><a href="/tags/决策树/" title="决策树">决策树<sup>2</sup></a></li>
<li><a href="/tags/ASM/" title="ASM">ASM<sup>2</sup></a></li>
<li><a href="/tags/spring/" title="spring">spring<sup>1</sup></a></li>
<li><a href="/tags/SVD/" title="SVD">SVD<sup>1</sup></a></li>
<li><a href="/tags/protobuf/" title="protobuf">protobuf<sup>1</sup></a></li>
</ul>
</div>
<div class="linkslist">
<p class="asidetitle">友情链接</p>
<ul>
<li>
<a href="http://wuchong.me" target="_blank" title="Jark's Blog">Jark's Blog</a>
</li>
<li>
<a href="https://www.zybuluo.com/mdeditor" target="_blank" title="在线markdown工具">在线markdown工具</a>
</li>
<li>
<a href="http://lxr.free-electrons.com/ident" target="_blank" title="linux内核代码检索">linux内核代码检索</a>
</li>
</ul>
</div>
</aside>
</div>
</div>
<footer><div id="footer" >
<div class="social-font" class="clearfix">
</div>
<p class="copyright">Powered by <a href="http://zespia.tw/hexo/" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Pacman">Jacman</a> © 2015
<a href="http://chenbiaolong.com/about" target="_blank" title="chenbiaolong">chenbiaolong</a>
<!-- Analytics Begin -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fd945ed3061f3e880f79e49bd827e29c0' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- Analytics End -->
</p>
</div>
</footer>
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>
<script type="text/javascript">
var duoshuoQuery = {short_name:"chenbiaolong"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- Totop Begin -->
<div id="totop">
<a title="Back to Top"><img src="/img/scrollup.png"/></a>
</div>
<script src="/js/totop.js"></script>
<!-- Totop End -->
<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<!--
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
-->
<script type="text/javascript" src="http://cdn.bootcss.com/mathjax/2.5.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!-- MathJax End -->
</body>
</html>