ffmpeg HLS 切片这么耗硬盘 I/O 吗?

2020-05-22 02:27:55 +08:00
 holinhot

搞了 3 台机器在切片,i/o 老是告警。(每台两个 ffmpeg 在切)

磁盘响应时间 https://prnt.sc/sl8yel https://prnt.sc/sl8yho https://prnt.sc/sl8yl0

磁盘响应时间( iostat ) https://prnt.sc/sl8yqv https://prnt.sc/sl8yvp https://prnt.sc/sl8yzy

SSD 型号:三星 MZ7LN512

[Created at block.245]
  Unique ID: 3OOL.FBQqHFuJif1
  Parent ID: abAj.GPRb67Bwnc2
  SysFS ID: /class/block/sda
  SysFS BusID: 1:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:17.0/ata2/host1/target1:0:0/1:0:0:0
  Hardware Class: disk
  Model: "SAMSUNG MZ7LN512"
  Vendor: "SAMSUNG"
  Device: "MZ7LN512"
  Revision: "100Q"
  Serial ID: "S2MHxxxxxx"
  Driver: "ahci", "sd"
  Driver Modules: "ahci"
  Device File: /dev/sda
  Device Files: /dev/sda, /dev/disk/by-id/ata-SAMSUNG_MZ7LN512HMJP-00000_S2MHNB0J300937, /dev/disk/by-id/wwn-0x5002538d41d70d31, /dev/disk/by-path/pci-0000:00:17.0-ata-2.0
  Device Number: block 8:0-8:15
  BIOS id: 0x81
  Geometry (Logical): CHS 62260/255/63
  Size: 1000215216 sectors a 512 bytes
  Capacity: 476 GB (512110190592 bytes)
  Geometry (BIOS EDD): CHS 992277/16/63
  Size (BIOS EDD): 1000215216 sectors
  Geometry (BIOS Legacy): CHS 1023/255/63
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #7 (SATA controller)
2351 次点击
所在节点    FFmpeg
5 条回复
beginor
2020-05-22 08:28:56 +08:00
hls 文件很小,完全靠硬盘的 4k 读写
Twain
2020-05-22 09:42:50 +08:00
内存够的话,写内存
aydd2004
2020-05-22 10:42:41 +08:00
也不知道谁发明的这玩意 一个视频切成千把块
holinhot
2020-05-22 13:55:03 +08:00
@Twain 有道理
holinhot
2020-05-22 14:50:25 +08:00
@aydd2004 方便分发

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/674227

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX