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! บริษัทที่น่าสนใจ

CP AXTRA Public Company Limited - Lotus's company cover
CP AXTRA Public Company Limited - Lotus's
CP AXTRA Lotus's is revolutionizing the retail industry as a Retail Tech company.
Token X company cover
Token X
Blockchain, ICO, Tokenization, Digital Assets, and Financial Service
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.
United Information Highway Co., Ltd. company cover
United Information Highway Co., Ltd.
UIH is Thailand’s leading Digital Infrastructure and Solution Provider for Business
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.
CDG GROUP company cover
CDG GROUP
Provider of IT solutions to public, state, and private sectors in Thailand for over 56 years
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
Gofive company cover
Gofive
“We create world-class software experience”
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.
LTMH TECH company cover
LTMH TECH
LTMH TECH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
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, 06/14/2016 - 12:47

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

chettaphong Tue, 06/14/2016 - 13:21

In reply to by sonkub

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

osmiumwo1f Tue, 06/14/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 ครับ

Apple
public://topics-images/apple_webp.png
SCB10X
public://topics-images/347823389_774095087711602_515970870797767330_n_webp.png
Windows 11
public://topics-images/hero-bloom-logo.jpg
Doom
public://topics-images/doom_logo.png
Huawei
public://topics-images/huawei_standard_logo.svg_.png
Threads
public://topics-images/threads-app-logo.svg_.png
Google Keep
public://topics-images/google_keep_2020_logo.svg_.png
Fortnite
public://topics-images/fortnitelogo.svg_.png
Instagram
public://topics-images/instagram_logo_2022.svg_.png
SCB
public://topics-images/9crhwyxv_400x400.jpg
Microsoft
public://topics-images/microsoft_logo.svg_.png
Basecamp
public://topics-images/bwpepdi0_400x400.jpg
Tinder
public://topics-images/hwizi8ny_400x400.jpg
FTC
public://topics-images/seal_of_the_united_states_federal_trade_commission.svg_.png
Pinterest
public://topics-images/pinterest.png
Palantir
public://topics-images/-nzsuc6w_400x400.png
Gemini
public://topics-images/google_gemini_logo.svg__0.png
AIS Business
public://topics-images/logo-business-2021-1.png
PostgreSQL
public://topics-images/images.png
JetBrains
public://topics-images/icx8y2ta_400x400.png
Krungthai
public://topics-images/aam1jxs6_400x400.jpg
Palworld
public://topics-images/mccyhcqf_400x400.jpg
Bill Gates
public://topics-images/bill_gates-september_2024.jpg
VMware
public://topics-images/1nj4i1gp_400x400.jpg
Take-Two Interactive
public://topics-images/0khle7nh_400x400.jpg
OpenAI
public://topics-images/ztsar0jw_400x400.jpg
Thailand
public://topics-images/flag_of_thailand.svg_.png