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

ZFS scrub load average is ridiculously high

· 52CE 我爱测

I have a relatively new box here running Ubuntu with ZFS-on-Linux across an 18-disk array. The first couple of times I did a zpool scrub , it seemed like everything worked nicely, but the last several times I've tried, it complet…

问题原文

原帖链接 · arcticmac · CC BY-SA 3.0

I have a relatively new box here running Ubuntu with ZFS-on-Linux across an 18-disk array. The first couple of times I did a zpool scrub, it seemed like everything worked nicely, but the last several times I've tried, it completely trashes the system - when I can get it to do anything at all, it's reporting a load average of 20-50, and most of the time it's just unresponsive.

This isn't expected behavior is it? Is there some configuration I can change to make this less awful?

Update:

  • Hardware configuration is basically http://www.45drives.com/products/storage/s45-lite.php
  • 18 6TB disks connected via a HighPoint R750 HBA.
  • Ubuntu 14.04 LTS, Linux 3.19 kernel.
  • Pool is currently around 50% full.
  • No deduplication.
  • [Update 2]: disks are arranged in 2 RAIDZ (single-parity) vdevs with 9 disks each.

已采纳解答

原帖链接 · arcticmac · CC BY-SA 3.0

Ended up asking on the ZFS-on-Linux mailing list, and eventually figured out that my problem was that the ZFS ARC was using too much of the system RAM (or more specifically, not leaving enough free). This was resulting in contention over memory between other Kernel tasks and ZFS, with the result that there was a lot of I/O on the system (non-ZFS) disk, and things slowed to a crawl. Interestingly, the system did not report any swap usage and all of the paging going on was reading static pages from disk (presumably libraries and the like), which is why my usual "it's swapping so it will be slow" alarm didn't go off.

I decreased the size of the ARC cache to leave 3-4GB of RAM free, and now things are running much better!

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

资料来源与适用范围

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

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

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