大网数据广告活动
服务器运维问答

Use F2FS on RAID0 within HDD?

· 52CE 我爱测

My server contains 128 monitors and that caused many random write IO be submitted. If I use SSD, many writes will make it broken soon. I read some articles about F2FS and know it works better on flash disk and random/small writin…

问题原文

原帖链接 · code_worker · CC BY-SA 4.0

My server contains 128 monitors and that caused many random write IO be submitted. If I use SSD, many writes will make it broken soon.

I read some articles about F2FS and know it works better on flash disk and random/small writing.

There are many random write IO in my server. It always degrade performance in my server.

If I mount F2FS on a HDDs? Does that works better than ext4?

====== UPDATE ======

RAID0 just for performance benchmark, actually I will use RAID5 or RAID6.

After I searched a lot, there're 2 way maybe works:

  1. Cache IO
  2. Queue IO from random IO to sequential IO <-- F2FS supports that

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

Do not use RAID0, a failure of any one drive will kill the array. RAID6, RAID10, even a single drive with no array would be better for availability.


f2fs intends to be friendly to modern solid state devices, and Linux md can go very fast.

However, impossible to make general statements like f2fs on an array is better without data. You need to take into account what your workload is, if the I/O pattern has been benchmarked on a system similar to yours, and what limiting factors exist.

Do a capacity analysis. Estimate things like database queries per second, or how many files are read and written. Measure IOPS with tools like iostat -xz 1. If the r/s and w/s numbers approach the rated capacity of the device, you may need faster disks. Expect roughly 100 IOPS per spinning magnetic, and at least a couple thousand IOPS out of most SSDs. And it makes a different whether disks are connected as SATA or NVMe.

Evaluate the performance of every resource on the system. Fast storage is of limited help if you are CPU or memory bound. Memory is especially useful as cache. Excessive paging out is bad, as the swap file steals storage system performance but isn't as fast as DRAM.

Once you understand the performance of the system now, then you can start evaluating changes to the storage system.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-06-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。