Apple

Apple ได้เปิดตัวระบบไฟล์ใหม่ของทางบริษัท โดยใช้ชื่อระบบไฟล์ว่า Apple File System หรือเขียนย่อเป็น APFS โดยระบบไฟล์ใหม่นี้จะมาแทนระบบไฟล์ Hierachical File System หรือ HFS ของทางบริษัทที่ใช้บน Mac กันมาอย่างยาวนาน และช่วงหลังก็ได้ปรับปรุงเป็น HFS+

สำหรับระบบไฟล์ใหม่ของ Apple ตั้งใจจะใช้ตั้งแต่อุปกรณ์เล็กๆ อย่าง Apple Watch จนถึงคอมพิวเตอร์อย่าง Mac Pro โดย APFS มีฟีเจอร์คร่าวๆ ดังนี้

  • ปรับปรุงการใช้งานกับ Flash, SSD และใช้งานบนฮาร์ดดิสก์แบบเดิมได้ โดยมีการออกแบบ unique copy-on-write โดยใช้ I/O coalescing เพื่อให้ได้ประสิทธิภาพสูงสุดและยังมีความมั่นคงของข้อมูล
  • Space Sharing อนุญาตให้ระบบไฟล์หลายตัวแบ่งปันพื้นที่ว่างภายในที่เก็บข้อมูลได้ คือ APFS จะสามารถเพิ่มและลดขนาดได้โดยไม่ต้องมีการพาร์ทิชั่นฮาร์ดดิสก์ใหม่ เช่น ฮาร์ดดิสก์ขนาด 100GB มีพาร์ทิชั่น A ใช้ 10GB พาร์ทิชั่น B ใช้งาน 20GB พื้นที่ว่างจะถูกแสดงเป็น 70GB ไม่แยกระหว่างพาร์ทิชั่น
  • การโคลนไฟล์และไดเรกทอรี่ เช่น คือไฟล์ที่ถูกโคลนออกไปจะไม่ได้ใช้พื้นที่เพิ่มเติม และถ้าไฟล์ที่ถูกโคลนนั้นถูกแก้ไข ก็จะบันทึกเฉพาะส่วนที่ปรับเปลี่ยนเท่านั้น
  • snapshot คือส่วนที่อ่านได้อย่างเดียว ระบบปฏิบัติการสามารถใช้งานส่วนนี้ในการทำ backup ได้ และสามารถย้อนการเปลี่ยนแปลงกลับไปได้เช่นกัน
    Fast Directory Sizing allows APFS to quickly compute the total space used by a directory hierarchy, and update it as the hierarchy evolves.
  • Fast Directory Sizing คำนวณพื้นที่ทั้งหมดโดยใช้ลำดับชั้นของไดเรกทอรี่ และจะอัพเดตเมื่อลำดับชั้นมีการเติบโต
  • Atomic Safe-Save แบบดั้งเดิมสำหรับบันเดิลและไดเรกทอรี่ คือจะมีการเปลี่ยนชื่อใน transaction ครั้งเดียว

สำหรับรายละเอียดฉบับเต็มของ APFS สามารถอ่านได้จากที่มา โดยตอนนี้ APFS ได้เปิดทดสอบรุ่นพรีวิวสำหรับนักพัฒนาบน macOS Sierra แล้ว

ที่มา - Apple Developer, AppleInsider

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

Clone file แบบแตก branch เก็บ diff มันจะล้ำเกินไปแล้ว
ประหยัดที่สุดๆ แต่ share พื้นที่กันแบบนี้จะมีปัญหาเรื่อง security มั้ยนะ

sonkub Tue, 14/06/2016 - 12:47

เจ๋งจริง
แต่เสียดายที่อยู่ในเมืองของ Apple
เพราะว่า โอกาสที่มันจะถูกนำไปพัฒนาต่อที่ platform อื่นๆมันแทบจะเป็นไปไม่ได้เลย

Concept นี้มีมาพักใหญ่ ๆ แล้วครับ Apple น่าจะเอาที่มีอยู่และเป็น
Opensource เช่น btrfs, zfs ใน ที่เริ่มใช้ใน Linux, FreeBSD มาต่อยอดเป็น APFS
เพราะฉะนั้นไม่ตัองกังวลครับ

osmiumwo1f Tue, 14/06/2016 - 14:42

Fast Directory Sizing allows APFS to quickly compute the total space used by a directory hierarchy, and update it as the hierarchy evolves.

มันเกินมาหรือเปล่า เพราะมีตัวที่แปลภาษาไทยแล้วครับ
ปล. สงสัยว่าถ้าโคลนไฟล์แล้วมีการแก้ไขไฟล์ต้นฉบับ มันจะโคลนให้อัตโนมัติเพื่อกันไม่ให้มีผลกับไฟล์โคลนอื่นๆ ที่มาอ้างอิงกับไฟล์นี้หรือเปล่าครับ

ที่ผมหมายถึงคือ สมมุติว่ามีไฟล์ O ที่เก็บ "1234" ไว้ถูกโคลนไปเป็นไฟล์ A แล้วแทนที่ "3" ในไฟล์ A ด้วย "_" ซึ่งเมื่อเปิดไฟล์ A หลังจากที่ถูกแก้แล้วก็จะเห็น "12_4" แล้วอยู่ๆ มีคนไปแก้ไฟล์ O ตรงๆ เลย โดยแทนที่ "12" ด้วย "__" ซึ่งเมื่อเปิดไฟล์ O หลังจากที่ถูกแก้แล้วก็จะเห็น "__34" APFS มันจะจัดการอย่างไรกับการเปลี่ยนแปลงที่เกิดขึ้นกับไฟล์ O เพราะถ้าเมื่อเปิดไฟล์ A หลังจากที่ไฟล์ O ถูกแก้ไขแล้วเห็น "___4" มันแปลว่าการแก้ไขไฟล์ต้นฉบับจะสร้างผลกระทบต่อไฟล์โคลน แต่ถ้าเมื่อเปิดไฟล์ A หลังจากที่ไฟล์ O ถูกแก้ไขแล้วยังเห็น "12_4" เหมือนเดิม แปลว่าการแก้ไขไฟล์ต้นฉบับจะไม่เกิดผลกระทบไฟล์โคลนครับ

ผมเข้าใจว่าต้นฉบับจะต้องถูก freeze นะครับ แล้วโปรแกรมที่แก้ไขไฟล์ไม่ว่าจะเป็นดั้งเดิมหรือสำเนาก็จะบันทึกส่วนที่ปรับเปลี่ยนเหมือนกันทั้งหมด คือมี "1234" ค้างอยู่ในเครื่องไปเลย แล้วมีบันทึกส่วนที่ปรับเปลี่ยนสองชุดคือ 3->_ กับ 12->__ ครับ

ย้ำว่าผมเข้าใจว่ามันเป็นแบบนั้นนะครับ ของจริงอาจไม่ใช่

อธิบายแบบรวบๆ จะได้เป็นประมาณนี้ครับ (สีเทาคือ block ข้อมูล)


(ผมเบลอตอนทำภาพ ข้างล่างต้องเป็น b.txt ไม่ใช่ c.txt)

สำหรับผู้ใช้ทั่วไปแล้ว copy-on-write ดียังไง สมมติว่าบันทึกไฟล์แล้วไฟดับระหว่างบันทึก ในกรณีที่ใช้ระบบเก็บข้อมูลแบบนี้ ไฟล์จะไม่พังครับ อย่างมากคือกลับไปเวอร์ชั่นก่อนหน้าที่เคยบันทึกไว้ได้สำเร็จ ส่วนข้อเสียของ copy-on-write คือทำให้มี fragment เยอะ ทำให้ไม่ค่อยเหมาะกับ disk ที่มีการ seek ครับ