-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
1149 lines (510 loc) · 32.6 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
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zn-Hans">
<head>
<meta name="generator" content="Hugo 0.96.0" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1" />
<meta name="author" content="Huweicai">
<meta name="description" content="[好奇心探索世界 善意假设 做最酷的事情]">
<meta property="og:title" content="Anonymous' Blog" />
<meta property="og:description" content="[好奇心探索世界 善意假设 做最酷的事情]" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://huweicai.com/" />
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-175035126-1');
window.addEventListener('load', function(){
var s = document.createElement('script');
s.src = "https://www.googletagmanager.com/gtag/js?id=UA-175035126-1";
document.body.appendChild(s);
});
</script>
<title>
Anonymous' Blog
</title>
<link rel="canonical" href="https://huweicai.com/">
<link href="https://huweicai.com/css/vendors-extensions/fontawesome/all.min.css" rel="stylesheet">
<link href="https://huweicai.com/css/font.css" rel="stylesheet">
<link href="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<link href="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/mdbootstrap/4.9.0/css/mdb.min.css" rel="stylesheet">
<link href="https://huweicai.com/css/vendors/mdb/style.min.css" rel="stylesheet">
<link href="https://huweicai.com/css/main.css" rel="stylesheet">
<link rel="shortcut icon"
href="https://huweicai.com/img/profile.svg"
>
<link href="https://huweicai.com/index.xml" rel="alternate" type="application/rss+xml" title="Anonymous' Blog" />
<style type="text/css">
@media (min-width: 800px) and (max-width: 850px) {
.navbar:not(.top-nav-collapse) {
background: #000000!important;
}
}
</style>
<link rel="stylesheet" href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.13.0/katex.min.css">
<link rel="stylesheet" href="https://huweicai.com/css/vendors/highlight/github-gist.css">
</head>
<body class="bg-light" data-spy="scroll" data-target="#page-scrollspy" data-offset="90">
<nav class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
<div class="container">
<a class="navbar-brand" href="https://huweicai.com">
<img class="avatar imgRotate" src="https://huweicai.com/img/profile.svg" style="width: 40px!important;height: auto;" class="d-inline-block align-top" alt="" >
<strong> Huweicai</strong>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto ">
<li class="nav-item active ">
<a class="nav-link" href="https://huweicai.com">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item ">
<a class="nav-link" href="https://huweicai.com/about/" >About </a>
</li>
<li class="nav-item ">
<a class="nav-link" href="https://huweicai.com/archives/" >Archives </a>
</li>
</ul>
</div>
</div>
</nav>
<div id="site-header" class="carousel slide carousel-fade" data-ride="carousel" >
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<div class="view" style="background-color: #758bfd; background-repeat: no-repeat; background-size: cover;">
<div class="mask rgba-black-light d-flex justify-content-center align-items-center">
</div>
</div>
</div>
</div>
<div class="carousel-content text-center white-text wow fadeIn">
<div class="row mx-0 headfont mb-5 pb-3">
<div class="col-12 col-sm-5 align-middle">
<a href="https://huweicai.com">
<img class="pull-right avatar avatar-lg imgRotate" src="https://huweicai.com/img/profile.svg" alt="" >
</a>
</div>
<div class="col-12 col-sm-7 text-left pl-5">
<a href="https://huweicai.com">
<h1 class="display-4 mb-2 mt-2 h1" style="width: fit-content">
<strong>Huweicai</strong>
</h1>
</a>
<p class="mb-0 p" style="font-size: 1.250rem; font-weight: 200;">
好奇心探索世界
</p>
<p class="mb-0 p" style="font-size: 1.250rem; font-weight: 200;">
善意假设
</p>
<p class="mb-0 p" style="font-size: 1.250rem; font-weight: 200;">
做最酷的事情
</p>
<div class="mt-2" style="font-size: 2rem; color: white;">
<a href="//github.com/Huweicai" class="hover-neon" target="_blank" rel="noopener"><i class="fab fa-github pr-1" aria-hidden="true"></i></a>
<a href="//linkedin.com/in/you" target="_blank" rel="noopener"><i class="fab fa-linkedin pr-1" aria-hidden="true"></i></a>
<a href="//facebook.com/you" target="_blank" rel="noopener"><i class="fab fa-facebook pr-1" aria-hidden="true"></i></a>
<a href="//google.com/you" target="_blank" rel="noopener"><i class="fab fa-google-plus pr-1" aria-hidden="true"></i></a>
<a href="//twitter.com/you" target="_blank" rel="noopener"><i class="fab fa-twitter pr-1" aria-hidden="true"></i></a>
<a href="//instagram.com/you" target="_blank" rel="noopener"><i class="fab fa-instagram pr-1" aria-hidden="true"></i></a>
<a href="//px500" target="_blank" rel="noopener"><i class="fab fa-500px pr-1" aria-hidden="true"></i></a>
<a href="mailto:[email protected]"><i class="far fa-envelope-open pr-1" aria-hidden="true"></i></a>
<a href="https://huweicai.com/index.xml"><i class="fas fa-rss pr-1" aria-hidden="true"></i></a>
</div>
</div>
</div>
</div>
</div>
<section class="container pt-5 text-center gradient-text ">
<h1 class="display-3"><strong>Hello, World!</strong></h1>
<p style="font-size:1.8rem; color: var(--text-light);">~ Enjoy Today ~</p>
</section>
<main class="post-main-wrapper px-5">
<div class="row">
<div class="col-md-3">
<hr>
<div class="post-meta">
<div class="mb-2">
<a href="https://huweicai.com/categories/">
<span class="font-weight-bold text-uppercase post-meta">
<i class="fas fa-folder-open pr-1" aria-hidden="true"></i>
Categories
</span>
</a>
</div>
<div class="li-x post-meta" style="margin-left: -8px;">
<li class="py-1">
<a href="https://huweicai.com/categories/go">
<span>Go (3)</span>
</a>
</li>
<li class="middot"></li>
<li class="py-1">
<a href="https://huweicai.com/categories/english">
<span>English (1)</span>
</a>
</li>
</div>
</div>
<hr>
<div class="post-meta">
<div class="mb-2">
<a href="https://huweicai.com/tags/">
<span class="font-weight-bold text-uppercase post-meta">
<i class="fas fa-tags pr-1" aria-hidden="true"></i>
Featured Tags
</span>
</a>
</div>
<div class="li-x post-meta tags-md" style="margin-left: -8px;">
<li><a href="https://huweicai.com/tags/linux" role="button"><span>linux (10)</span></a></li>
<li><a href="https://huweicai.com/tags/go" role="button"><span>go (6)</span></a></li>
<li><a href="https://huweicai.com/tags/%E5%AE%B9%E5%99%A8" role="button"><span>容器 (6)</span></a></li>
<li><a href="https://huweicai.com/tags/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F" role="button"><span>操作系统 (6)</span></a></li>
<li><a href="https://huweicai.com/tags/%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80" role="button"><span>编程语言 (6)</span></a></li>
<li><a href="https://huweicai.com/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C" role="button"><span>计算机网络 (6)</span></a></li>
<li><a href="https://huweicai.com/tags/%E5%AD%98%E5%82%A8" role="button"><span>存储 (5)</span></a></li>
<li><a href="https://huweicai.com/tags/cloudnative" role="button"><span>cloudnative (4)</span></a></li>
<li><a href="https://huweicai.com/tags/kubernetes" role="button"><span>kubernetes (4)</span></a></li>
<li><a href="https://huweicai.com/tags/cilium" role="button"><span>cilium (2)</span></a></li>
<li><a href="https://huweicai.com/tags/docker" role="button"><span>docker (2)</span></a></li>
<li><a href="https://huweicai.com/tags/ebpf" role="button"><span>ebpf (2)</span></a></li>
<li><a href="https://huweicai.com/tags/ip" role="button"><span>ip (2)</span></a></li>
<li><a href="https://huweicai.com/tags/java" role="button"><span>java (2)</span></a></li>
<li><a href="https://huweicai.com/tags/kernel" role="button"><span>kernel (2)</span></a></li>
<li><a href="https://huweicai.com/tags/%E5%91%BD%E4%BB%A4%E8%A1%8C" role="button"><span>命令行 (2)</span></a></li>
<li><a href="https://huweicai.com/tags/c++" role="button"><span>c++ (1)</span></a></li>
<li><a href="https://huweicai.com/tags/compiler" role="button"><span>compiler (1)</span></a></li>
<li><a href="https://huweicai.com/tags/cpp" role="button"><span>cpp (1)</span></a></li>
<li><a href="https://huweicai.com/tags/cpu" role="button"><span>cpu (1)</span></a></li>
<li><a href="https://huweicai.com/tags/en" role="button"><span>en (1)</span></a></li>
<li><a href="https://huweicai.com/tags/ethernet" role="button"><span>ethernet (1)</span></a></li>
<li><a href="https://huweicai.com/tags/git" role="button"><span>git (1)</span></a></li>
<li><a href="https://huweicai.com/tags/harbor" role="button"><span>harbor (1)</span></a></li>
<li><a href="https://huweicai.com/tags/http" role="button"><span>http (1)</span></a></li>
<li><a href="https://huweicai.com/tags/innodb" role="button"><span>innodb (1)</span></a></li>
<li><a href="https://huweicai.com/tags/jvm" role="button"><span>jvm (1)</span></a></li>
<li><a href="https://huweicai.com/tags/mysql" role="button"><span>mysql (1)</span></a></li>
<li><a href="https://huweicai.com/tags/pprof" role="button"><span>pprof (1)</span></a></li>
<li><a href="https://huweicai.com/tags/programing" role="button"><span>programing (1)</span></a></li>
<li><a href="https://huweicai.com/tags/python" role="button"><span>python (1)</span></a></li>
<li><a href="https://huweicai.com/tags/redis" role="button"><span>redis (1)</span></a></li>
<li><a href="https://huweicai.com/tags/shell" role="button"><span>shell (1)</span></a></li>
<li><a href="https://huweicai.com/tags/tcp" role="button"><span>tcp (1)</span></a></li>
<li><a href="https://huweicai.com/tags/yuv" role="button"><span>yuv (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E5%8A%9E%E5%85%AC%E6%95%88%E7%8E%87" role="button"><span>办公效率 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E5%9B%BE%E5%83%8F" role="button"><span>图像 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E5%B9%B6%E5%8F%91" role="button"><span>并发 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E6%95%B0%E6%8D%AE%E5%BA%93" role="button"><span>数据库 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F" role="button"><span>文件系统 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E6%97%A5%E5%BF%97" role="button"><span>日志 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E6%9D%83%E9%99%90%E7%AE%A1%E7%90%86" role="button"><span>权限管理 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E7%A1%AC%E4%BB%B6" role="button"><span>硬件 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E7%A3%81%E7%9B%98" role="button"><span>磁盘 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E9%95%9C%E5%83%8F" role="button"><span>镜像 (1)</span></a></li>
<li><a href="https://huweicai.com/tags/%E9%9F%B3%E8%A7%86%E9%A2%91" role="button"><span>音视频 (1)</span></a></li>
</div>
</div>
<hr>
</div>
<div class="col-md-9 mt-3">
<div>
<div class="pagination pagination-outline justify-content-end active-color">
<ul class="pagination pagination-default">
<li class="page-item disabled">
<a aria-disabled="true" aria-label="First" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">««</span></a>
</li>
<li class="page-item disabled">
<a aria-disabled="true" aria-label="Previous" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">«</span></a>
</li>
<li class="page-item active">
<a aria-current="page" aria-label="Page 1" class="page-link" role="button">1</a>
</li>
<li class="page-item">
<a href="https://huweicai.com/page/2/" aria-label="Page 2" class="page-link" role="button">2</a>
</li>
<li class="page-item">
<a href="https://huweicai.com/page/3/" aria-label="Page 3" class="page-link" role="button">3</a>
</li>
<li class="page-item">
<a href="https://huweicai.com/page/4/" aria-label="Page 4" class="page-link" role="button">4</a>
</li>
<li class="page-item">
<a href="https://huweicai.com/page/5/" aria-label="Page 5" class="page-link" role="button">5</a>
</li>
<li class="page-item">
<a href="https://huweicai.com/page/2/" aria-label="Next" class="page-link" role="button"><span aria-hidden="true">»</span></a>
</li>
<li class="page-item">
<a href="https://huweicai.com/page/6/" aria-label="Last" class="page-link" role="button"><span aria-hidden="true">»»</span></a>
</li>
</ul>
</div>
<div class="post-wrapper white-bg post-card">
<a href="https://huweicai.com/multicast/">
<div class="post-header text-center">
<div class="px-4 post-heading">数据的蒲公英——组播</div>
<ul class="post-meta li-x mt-1">
<li>2024-10-22</li>
<li class="middot"></li>
<li>15 minutes read</li>
</ul>
</div>
组播与单播 组播(Multicast,又称群播、多播) 与单播 (Unicast) 都是数据传输的一种方式,如果要映射现实世界中的信息传递方式,单播可以类比为打电话,有人呼出电话然后有人接听,然后他们互相畅谈最后互道再见;而组播则更加类似于广播,电台的主播会在收音机的那一头说话,所有打开收音机的人都可以收到,你也可以随时关闭收音机,只能单方面的听到来自对方的声音。 虽然今天到处都是打电话的人,而我们已经很少能在身边看到广播......
</a>
<div class="post-meta li-x mt-2 div-x">
<div>
</div>
<div>
<div class="li-x div-x post-meta">
<li class="pr-0"><a href="https://huweicai.com/tags/"><i class="fas fa-tags"></i></a></li>
<div class="tags-sm">
<li><a href="https://huweicai.com/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C" role="button">计算机网络 </a></li>
</div>
</div>
</div>
</div>
</div>
<div class="post-wrapper white-bg post-card">
<a href="https://huweicai.com/dynamic-linking/">
<div class="post-header text-center">
<div class="px-4 post-heading">动态链接函数调用是如何实现的</div>
<ul class="post-meta li-x mt-1">
<li>2024-06-30</li>
<li class="middot"></li>
<li>9 minutes read</li>
</ul>
</div>
函数链接 根据函数在编译期间的链接方式, 我们可以将函数分为三种: 直接调用(Direct Call):这是最直接的一种方式,函数地址在编译时就已经确定,调用时直接跳转到目标地址。 静态链接(Static Linking):在编译时将库与程序合并,尽管在单个编译单元内不确定函数的具体地址,但在链接阶段会解析所有符号,最终生成的可执行文件包含所有必要的代码,无需依赖外部库。 动态链接(Dynamic Linking......
</a>
<div class="post-meta li-x mt-2 div-x">
<div>
</div>
<div>
<div class="li-x div-x post-meta">
<li class="pr-0"><a href="https://huweicai.com/tags/"><i class="fas fa-tags"></i></a></li>
<div class="tags-sm">
<li><a href="https://huweicai.com/tags/c++" role="button">c++ </a></li>
<li><a href="https://huweicai.com/tags/compiler" role="button">compiler </a></li>
</div>
</div>
</div>
</div>
</div>
<div class="post-wrapper white-bg post-card">
<a href="https://huweicai.com/c-with-python-intercall/">
<div class="post-header text-center">
<div class="px-4 post-heading">C/C++ & Python 融合之道</div>
<ul class="post-meta li-x mt-1">
<li>2024-01-29</li>
<li class="middot"></li>
<li>8 minutes read</li>
</ul>
</div>
Python 解释器 正如软件系统通常分为定义与实现两部分,编程语言也是。 比如 C++ 标准是由国际标准化组织 ( ISO ) 下属的 ISO/IEC JTC1/SC22/WG21特别工作组制定的,最新标准为 C++ 20 (ISO/IEC 14882:2020),这是定义;而其实现则有 GNU 的 gcc、微软的 visual c++、Apple 发起的 clang 等等,任何人都可以按照定义去实现自己的实现。 Java 规范则是由 Oracle 主导的 JCP 所制定,有 Oracle Java SE、OpenJDK、Corretto、AdoptOpen 等大量......
</a>
<div class="post-meta li-x mt-2 div-x">
<div>
</div>
<div>
<div class="li-x div-x post-meta">
<li class="pr-0"><a href="https://huweicai.com/tags/"><i class="fas fa-tags"></i></a></li>
<div class="tags-sm">
<li><a href="https://huweicai.com/tags/cpp" role="button">cpp </a></li>
<li><a href="https://huweicai.com/tags/programing" role="button">programing </a></li>
<li><a href="https://huweicai.com/tags/python" role="button">python </a></li>
</div>
</div>
</div>
</div>
</div>
<div class="post-wrapper white-bg post-card">
<a href="https://huweicai.com/elf/">
<div class="post-header text-center">
<div class="px-4 post-heading">Executable and Linkable Format</div>
<ul class="post-meta li-x mt-1">
<li>2023-10-07</li>
<li class="middot"></li>
<li>13 minutes read</li>
</ul>
</div>
ELF Executable and Linkable Format,可执行与可链接格式,其一个很熟悉的身份就是 Linux 操作系统的标准可执行文件格式,在 Linux 上运行我们编写的代码时,就需要将其编译成 ELF 格式。 另外它还定义了共享库和核心转储文件的结构和布局。 ELF 文件格式在操作系统中起着重要的作用,它使得我们编写的代码能够被正确地编译、链接和执行。 此外,部分 Unix 系统,如: Solaris、FreeBSD 等也采用 ELF 作为其可执行文件格式。 ELF 文件格式被设计为可扩展和灵活的......
</a>
<div class="post-meta li-x mt-2 div-x">
<div>
</div>
<div>
<div class="li-x div-x post-meta">
<li class="pr-0"><a href="https://huweicai.com/tags/"><i class="fas fa-tags"></i></a></li>
<div class="tags-sm">
<li><a href="https://huweicai.com/tags/linux" role="button">linux </a></li>
</div>
</div>
</div>
</div>
</div>
<div class="post-wrapper white-bg post-card">
<a href="https://huweicai.com/shared-memory/">
<div class="post-header text-center">
<div class="px-4 post-heading">很快的共享内存</div>
<ul class="post-meta li-x mt-1">
<li>2023-08-08</li>
<li class="middot"></li>
<li>8 minutes read</li>
</ul>
</div>
WHY 共享内存 进程间通信有许多种方式,不同的场景有不同的选择。 当通信内容非常简单的时候,可以考虑信号、信号量甚至 flock() 这种最基础的通信方式。 当需要传递不仅仅是信号这种规模的数据时,可以考虑 FIFO、MQ 等内核 API,也非常的简单易用 。 当我们的传输内容再进一步复杂,需要用“协议”去抽象这种复杂度的时候,Unix Domain Socket 会是一个不错的选择,比如常见的 gRPC over UDS;或者牺牲一点网络栈开销,直接使用基于 TCP / UDP 的 Socket 也非常......
</a>
<div class="post-meta li-x mt-2 div-x">
<div>
</div>
<div>
<div class="li-x div-x post-meta">
<li class="pr-0"><a href="https://huweicai.com/tags/"><i class="fas fa-tags"></i></a></li>
<div class="tags-sm">
<li><a href="https://huweicai.com/tags/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F" role="button">操作系统 </a></li>
<li><a href="https://huweicai.com/tags/linux" role="button">Linux </a></li>
</div>
</div>
</div>
</div>
</div>
<div class="post-wrapper white-bg post-card">
<a href="https://huweicai.com/kernel-debug-tips_en/">
<div class="post-header text-center">
<div class="px-4 post-heading">Linux Kernel Debug Tips</div>
<ul class="post-meta li-x mt-1">
<li>2023-01-17</li>
<li class="middot"></li>
<li>9 minutes read</li>
</ul>
</div>
Kernel Kernel undertakes the core Operating System job, which is the foundation of the current software ecosystem.
So, knowing more about how the kernel works will contribute to the construction of our user mode system.
The best method to learn software code is debugging while watching, software = code + data, know more about the runtime data while learning code can help us understand it better.
However the Kernel is not a normal software system, we can’t add breakpoint and debug it through IDE debug button like other normal software, though we can implement it by kgdb + QEMU, it’ still too heavy, and not available for online systems.
This article shares two lightweight kernel debugging tips, helps us observing it runtime status rapidly.
Kernel Module Usally, our codes are runing in user mode. In Linux operating systems, the instruction of user mode program will run in level Ring 3 , they do not have the permission to acces the data in level Ring 0 high memory address space, which means that they can’t snoop the data inside Kernel.
In that case, why not try to run our code inside the Kernel?
It’s possible to edit the source code of kernel, adding log to print the information we concerned, but it’s a long tedious step.......
</a>
<div class="post-meta li-x mt-2 div-x">
<div>
<li><a href="https://huweicai.com/categories/english"><i class="fas fa-folder-open pr-1" aria-hidden="true"></i> english </a></li>
</div>
<div>
<div class="li-x div-x post-meta">
<li class="pr-0"><a href="https://huweicai.com/tags/"><i class="fas fa-tags"></i></a></li>
<div class="tags-sm">
<li><a href="https://huweicai.com/tags/linux" role="button">linux </a></li>
<li><a href="https://huweicai.com/tags/kernel" role="button">kernel </a></li>
<li><a href="https://huweicai.com/tags/ebpf" role="button">ebpf </a></li>
<li><a href="https://huweicai.com/tags/en" role="button">EN </a></li>
</div>
</div>
</div>
</div>
</div>
<div class="post-wrapper white-bg post-card">
<a href="https://huweicai.com/cubefs-with-kubernetes/">
<div class="post-header text-center">
<div class="px-4 post-heading">CubeFS&Kubernetes实践</div>
<ul class="post-meta li-x mt-1">
<li>2022-12-22</li>
<li class="middot"></li>
<li>8 minutes read</li>
</ul>
</div>
Kubernetes (K8S) 是目前容器编排领域事实上的标准,在全球范围内有着广泛的应用。 CubeFS 既可以在 K8S 集群中部署客户端,通过 CSI 接口为 K8S 提供持久卷存储能力,也可以直接将 CubeFS 服务端集群整个部署在 K8S 中。 本文将分别介绍一下如何在 K8S 集群中部署 CubeFS 客户端、服务端,以及一些常见的运维操作和注意事项。 服务端 随着容器化的普及,基础设施全部上 K8S 是未来的趋势,这样所有的资源可以统一调度,且有着云原生庞大生态的加持,基础设施的运维成本也将大幅......
</a>
<div class="post-meta li-x mt-2 div-x">
<div>
</div>
<div>
<div class="li-x div-x post-meta">
<li class="pr-0"><a href="https://huweicai.com/tags/"><i class="fas fa-tags"></i></a></li>
<div class="tags-sm">
<li><a href="https://huweicai.com/tags/%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F" role="button">文件系统 </a></li>
<li><a href="https://huweicai.com/tags/%E5%AD%98%E5%82%A8" role="button">存储 </a></li>
</div>
</div>
</div>
</div>
</div>
<div class="pagination pagination-outline justify-content-end active-color">
<ul class="pagination pagination-default">
<li class="page-item disabled">
<a aria-disabled="true" aria-label="First" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">««</span></a>
</li>
<li class="page-item disabled">