Pod 為 kubernetes 運作的最小單位,一個 Pod 對應到一個 Application (e.g. API Server/data transform service),而當多個 Containers 存在於同一個 Pod 時,這些 Containers 會共享資源及網路,以 yaml 定義並部署建立。
>>> Length of x: 10001 Total elements: 22232223 @timefn: calculate_z_serial_purepython took 12.860910654067993 seconds calculate_z_serial_purepython took 12.861911058425903 seconds
>>> Length of x: 10001 Total elements: 22232223 @timefn: calculate_z_serial_purepython took 13.562626361846924 seconds calculate_z_serial_purepython took 13.562626361846924 seconds Length of x: 10001 ... ... ... ... 2 loops, best of 3: 24.3 sec per loop
Length of x: 10001 Total elements: 22232223 @timefn: calculate_z_serial_purepython took 13.609860897064209 seconds calculate_z_serial_purepython took 13.609860897064209 seconds Command being timed: "python julia_set.py" User time (seconds): 12.53 System time (seconds): 0.50 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:13.03 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 2649264 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 0 Minor (reclaiming a frame) page faults: 516303 Voluntary context switches: 1 Involuntary context switches: 23 Swaps: 0 File system inputs: 0 File system outputs: 0 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0
注意:
Major (requiring I/O) page faults 可顯示出哪些程式由於資料從 RAM 搬移至 DISK,進行磁碟存取而導致運作速度降低。
本書是迪士尼執行長 Robert Iger 所著,書中介紹 Iger 從 ABC 新聞員工到接任 ABC 新聞執行長,接著歷經被迪士尼收購後,一直到擔任迪士尼執行長的心路歷程。 其中最令我印象深刻的是 Iger 對創作的要求與包容,工作之餘時刻提點自己家人的重要,以及其與 Jobs 的金治情誼 - 兩人互動可以看到不同專業領域執行長的思維。